I have a GridView on Android I populate with custom images. When the user clicks on an image, it goes to a different activity. This works perfectly.
The only thing I would like to fix is that whenever the user makes the selection, the GridView scrolls back to top. I would like to stay on the same position, so when the user goes back to the activity with the GridView, it shows the last scroll position.
Is it possible?
I tried putting a listener on scroll events, but obviously, last captured event is a scroll to the top so I can’t use that to move back the scroll where it’s supposed to be.
Thanks in advance!
Update: forgot to mention a very important point. I am stuck with API 7. So I don’t have smoothScrollToPosition.
Try something like the following: