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

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

Reply via email to