How to get which image (its position) is on focus in an Image Gallery?

Posted by Spredzy on Stack Overflow See other posts from Stack Overflow or by Spredzy
Published on 2010-05-11T11:32:58Z Indexed on 2010/05/11 11:34 UTC
Read the original article Hit count: 237

Filed under:
|
|

Hi all,

I am playing around with the Gallery widget.

I would like to know how can we get the position of the image on focus in the gallery.

For example having several pictures in my gallery, if I tap my finger to the right, pictures will come and go until it stop to one.

How one can get the position of this one picture that is currently on focus ?

I don't know if I was clear enough, if there is anything you want me to add do not hesitate. Thank you,

© Stack Overflow or respective owner

Related posts about android

Related posts about gallery