Hi,

I have a GridView in my activity, and I want to save current scroll position
while user goes to another place and restore it while user comes back. I try
to use GridView.getScrollY and GridView.scrollTo methods, but getScrollY
method always return 0 instead of right scroll position. Am I using this
method in a wrong way?

Could anyone who can teach me how to retrieve the scroll position in a
GridView?

I searched the Internet found that someone said we can use
getSelectedItemPosition and setSelection methods, but this requires user to
select at least one item, how about the case that no items is selected?

Thanks a lot!

Alex

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to