I want to load a URL when a certain view in my ViewFlipper is shown. How can I determine that X view is being shown, so I can perform the URL downloading logic?
A:
How can I determine that X view is being shown
Use the getDisplayedChild()
method; it returns an integer which represents the base-zero index of the displayed view. What to do with that index is up to you.
Cristian
2010-09-09 03:54:48