On Fri, Apr 8, 2011 at 11:37 PM, win <[email protected]> wrote:

> to make it clear, i manage  to do all those thing axcept for the
> button action. i don't know how to capture the checked and unchecked
> item..can anyone here help me with the code.
>

First, "CheckBox" is the name of a standard widget - you should not name
your Activity that.

Second, when working with a list of data, you usually represent the data
with your own data type that has the properties displayed in the list. In
this case you might have a "Guest" class, which would have a boolean
"attending" property. Each entry in the list would represent one Guest and
would reflect the data stored in a Guest instance. When you want to show all
attending or all not attending, you iterate through your list of Guests and
find the ones with the relevant data. You also probably want to look at the
Filter and Filterable interfaces in the docs to filter your listview based
on some criteria.

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