Re: [android-developers] List View Item Strange Behavior

2010-04-09 Thread Agus
You are using convertView object which is a recycled view. On Thu, Apr 8, 2010 at 2:42 AM, Binesy wrote: > Hi, > > I have been having some strange behavior when refreshing a listview > from a button in a list item. Say you have a list of 4 items, indexes > 0-3 and you click on item 4, and print

Re: [android-developers] List View Item Strange Behavior

2010-04-08 Thread ~ TreKing
On Thu, Apr 8, 2010 at 4:42 AM, Binesy wrote: > Why is this happening and how can I fix it? > The ListView will re-use views it uses, as you see by the convertView. These are not guaranteed to be in the same order as you scroll the list and items are cycled, AFAIK. My guess is your items are be

Re: [android-developers] List View Item Strange Behavior

2010-04-08 Thread ~ TreKing
On Thu, Apr 8, 2010 at 4:42 AM, Binesy wrote: > 3 is printed correctly, then i refresh the list. > Refresh the list how? Also, what's the point of the Container class? AFAICT, it's completely redundant and unnecessary.

[android-developers] List View Item Strange Behavior

2010-04-08 Thread Binesy
Hi, I have been having some strange behavior when refreshing a listview from a button in a list item. Say you have a list of 4 items, indexes 0-3 and you click on item 4, and print the index. 3 is printed correctly, then i refresh the list. I click on item 4 again, but this time index 0 is prin