Sunday, June 12, 2011

[android-developers] How to mark an element visually in ListView the user clicked on?

I have a ListView with a custom adapter. I'd like to visually mark the
list element the user clicked on by changing it's background
permanently (until the user clicks on another element that is). How do
I achieve that? I believe that there's a built-in feature inside
LisView for this, but I had no luck finding it yet.

By default ListView animates the background color of the list-element
clicked, I just want that modified color to "stay". I've already set
the ListView's ChoiceMode to single choice, but it doesn't affect it
visually.

Thanks

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate