Ok thanks. I'll give that a try and see if it works

On Apr 8, 6:57 pm, "~ TreKing" <[email protected]> wrote:
> On Thu, Apr 8, 2010 at 4:42 AM, Binesy <[email protected]> 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 being re-arranged and you're seeing the behavior
> you're seeing since you're not updating the tag on the button where you
> store in the index.
>
> I would recommend you completely update the view you're getting even if
> there is an existing convertView.
> In this case just do c.button.setTag(position) after the if / else clause
> instead of inside the if clause.
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to