On Mon, Apr 25, 2011 at 12:06 AM, Lowell Kirsh <[email protected]> wrote:

> What pattern should I use to be associating the checked state with the
> backing object rather than its index within the list?


You should have an adapter that feeds data to your list containing the
actual objects your GUI is manipulating and representing. When you check a
check box, it updates the state of the associated item. When you list is
filtered, it should be querying the state of the corresponding object - not
the CheckBox that happens to be at that location.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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