n179911 wrote: > Is there anyway to force ListView to rebuild/repaint itself? > i.e. re-get item from the ListAdapter (it can be a CursorAdapter or > ArrayAdapter) and then repaint the all the list view which are > visible?
For ArrayAdapter, modify the contents of the list through the adapter itself (e.g., call add() on the ArrayAdapter), and it will automatically update the UI. For CursorAdapter, requery() the underlying Cursor, and it will automatically update the UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---