You can do somthing like this:

setSelection(n)

where n is the last selected location.
I like to save this value in the preferences.

@Override
        public boolean performItemClick(View view, int position, long id) {
                myMethodToSave(position);
                return true;
        }

On Wed, Jan 20, 2010 at 1:04 PM, Tommy <[email protected]> wrote:
> Hi Devs,
>
> I'm trying to figure out how to save the location my ListView is
> scrolled to. Currently I am saving the ArrayList of the ListView. When
> the user comes back to the screen I reload the ArrayList but can't
> figure out how to make it scroll to the last location.
>
> --
> 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
>



-- 
Joshua Frank
-- 
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