You don't really have to go through notifyDataSetChanged to update the UI.

If you know that the set of items stays the same (i.e. only their data changed), you can iterate the listview's children and update them bypassing the adapter.

-- Kostya

09.12.2011 14:10, yanguoc...@gmail.com пишет:
Thanks. But seems hard to maintain focus in a listview before and
after the latyout pass. I check the source code of listview, it did
something that may broke the focus in layout pass.

On Dec 9, 5:46 am, lbendlin<l...@bendlin.us>  wrote:
you will need to remember (per row) which item has focus, and when the list
adapter reloads you will have to apply that knowledge and set
requestFocus() to the appropriate item.

--
Kostya Vasilyev

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

Reply via email to