That's how ListView works. You cannot make any assumption about the content of the views. You always need to rebind them in getView().
On Tue, Jun 16, 2009 at 3:02 PM, Andrea Cardinale<[email protected]> wrote: > > Hi to everyone. This what I'm experiencing. > I have a ListView and a custom adapter associated to it and an array > binded to the list. > I have an element in the array, so in my activity I see an elment and > an association of this type, where view1 is the view the adpater > return for the first element. > view1 -> Item1 > > I add a second item to the array call notifyDatasetChanged and I get > view1 -> Item1 > view2 -> Item2 > fine. View1 is the existing view (can see it from the identifier) and > View2 is a new one. > > But when I add the third item I get something like > view3 -> Item1 > view2 -> Item2 > view1 -> item3 > Still I can see that view1 and view2 are the one I had before and > view3 is the new one. But what happened with the order? > If I keep adding item the view seems to appear in different position > without any specific rule. > Any idea? > Thanks > > Andrea > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

