saving and restoring scrollbar position

by Stefan » Sat, 14 Mar 2009 02:11:15 GMT

Sponsored Links
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

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

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


Other Threads

1. Http live streaming (Smooth Streaming)


Is it possible with Android media player component watching live streaming
(Live Tv) which serves from  iis smooth streaming server?


2. How to detect device support multi touch without OnTouchListener's event?

I want to get information of how to detect device support multi touch
without OnTouchListener triggers event.
Somebody can help me?


3. Google TV applications

4. How to compare the data in framebuffer

5. Apps2Sd install/update failures on Froyo linked to smdl2tmp1.asec file

6. Uncompressed bitmap

7. SQLite implementation - need help!