Thanks I will do that. There seems to be api for selectedIndex etc - but not sure what they're for??
How can I find the hi-light color (based on the current active theme). On Friday, January 25, 2013 1:46:06 PM UTC-5, TreKing wrote: > > > On Fri, Jan 25, 2013 at 11:53 AM, dashman <erjd...@gmail.com <javascript:> > > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en