On Thu, Aug 25, 2011 at 5:52 AM, rajesh nair <[email protected]> wrote:
> I have a list view, when I click on a item it gets highlighted and then
> return backs to the non highlighted state
> I would like to keep the highlighting on until I have selected another menu
> item or until I have exited the list view

In the case where the ListView is adjacent to something else (e.g.,
another fragment in a tablet), and the ListView item that was tapped
is context for the adjacent information, you accomplish this via the
"activated" state:

http://stackoverflow.com/questions/6588750/change-colour-of-activated-list-item-background-on-honeycomb
http://stackoverflow.com/questions/5274982/compatibility-lib-fragments-activated-and-a-headache

Anywhere else, please do not do this.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.9 Available!

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