You could also use the Adapter.notifyDatasetChanged() method to do this. On Dec 24, 1:14 am, Mark Murphy <[email protected]> wrote: > Agus wrote: > > What's the functional difference between these listview methods: > > invalidate() and invalidateViews() ? > > Which one is faster to refresh a listview? > > Hopefully neither. > > If you are using an ArrayAdapter as your adapter, modify the contents of > the ArrayAdapter directly (via add(), insert(), and remove()) and the > list will update automatically. > > If you are using a CursorAdapter as your adapter, call requery() on the > Cursor, and the list will update automatically. > > If you are using some other built-in adapter class, figure out the right > way to update the adapter's contents, and the list will update > automatically. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Training:http://commonsware.com/training
-- 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

