Yes, there is a way to update the item's UI without rebuilding the entire list. Your click handler receives a view, and you can take from there.
But scrolling artifacts (and a crash) show that your code doesn't work right when listview recycles views. Unless you're going to disable scrolling, that will need to be fixed... -- Kostya Vasilyev 03.07.2011 22:06 пользователь "NikolaMKD" <[email protected]> написал: > So there is no way to update the child views programically ? List view > have textview and 2 buttons, when the list is populated only textview > is visible, the 2 buttons are invisible. I tried one way, it worked > but only for the first items, but when you scroll it, it threw NPE. > > On Jul 3, 7:50 pm, Kostya Vasilyev <[email protected]> wrote: >> Notify rebuilds the list. >> >> If there is any state that may have changed since the getView was called, >> it's up to your code to restore it. >> >> Change your data items from strings to a richer data structure, and use them >> to save and restore visibility. >> >> Also, try scrolling your list view up and down, before making those fixes. >> You may see the visibility change back to invisible, caused by the same bug. >> >> -- > > -- > 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 -- 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

