Beautiful, what do I use to set it though? ListView. ? On Wed, Jan 20, 2010 at 5:47 PM, Joshua Frank <frankjos...@gmail.com> wrote:
> 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 <droi...@gmail.com> 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 android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- 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