>            v.setBackgroundResource(R.color.todo_item_highlighted);

Here's your problem. Views are reused by ListView (so if you change
the background of item #1, it might be reused as item #4 later), this
type of change must be done from the Adapter's getView() method.

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

Reply via email to