Hi, I have an ExpandableListView with lots of elements in it. I need to remember how much the list is scrolled, save it and later on restore the list scrolled at the same position. Because of that I have two problems:
First: how to get the scrolled coordinates? I tried with getScrollX() and getScrollY(), but they are always returning (0,0) . I also tried getGlobalVisibleRect(), no success either. Second: Once I have the coordinates how do I restore them? Again I tried using the provided scrollTo() and scrollBy() functions (not with real values cause i can't get them). The list is scrolled, great, but the scrollbar stays in its initial position, not great at all. I again also tried requestRectangleOnScreen, but again no success either. This tasks seems to me that should not be so difficult to accomplish, but nevertheless I have no idea how to. Any help will be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---