When you use the Gallery class, and view pictures on it, it ‘snaps’. What method is called when this happens?
Based on my observation, this is what happens on getView() method of an Adapter
- Gallery displays image 1
- User touches the screen and slowly gestures to go to the next image 2
- Adapter.getView() is called.
- User cancels the gesture so the Gallery displays image 1 (‘snaps’ to image 1)
- Adapter.getView() is not called anymore.
Thanks!
Problem solved. I used setOnItemSelectedListener and the method
is what I need