How to get ViewFlipper's current child position

后端 未结 4 1201
刺人心
刺人心 2021-02-12 01:40

I have added a bunch of images to a ViewFlipper and now I am performing an onClick event in the flipper. For this I would like to know the current child position so that I can p

4条回答
  •  眼角桃花
    2021-02-12 02:06

    Make use of indexOfChild().

    Check this Post

    How can I programmatically display a ViewFlipper's second child?

    May this works for you.

提交回复
热议问题