I have a gallery with 7 images. how can i got the position when stop the scrolling of gallery?
THANK YOU
I have a gallery with 7 images. how can i got the position when stop the scrolling of gallery?
THANK YOU
Are you using an Adapter with the Gallery? If so, then AdapterView has a getSelectedItemPosition() function that returns an int.
You can subclass the ImageAdapter class and add a function that returns a private int which is always updated to the index of the last 'clicked' image; thus giving you the position of the current image.