On Fri, Jan 25, 2013 at 11:53 AM, dashman <[email protected]> wrote:

> I have a ListView with a ListAdapter.
>
> When the user clicks on a row - i'd like to show that row as selected
> (i.e. hilighted).
>
> actually make it a toggle.
>
> how do i do that.
>

Keep the "selection state" as part of your data model. Your getView for the
adapter then changes the highlight depending on whether the item is
selected or not.

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