开发者

Doing work on demand in a ViewFlipper

开发者 https://www.devze.com 2023-01-15 23:53 出处:网络
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 download开发者_JAVA百科ing logic?

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 download开发者_JAVA百科ing logic?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消