Sunday, August 14, 2011

[android-developers] Clickable (when select it shows Orange) items within a ListView

The Contact listing in Android is a great example. It's a listview of
Contacts, and the items on each row are separated by vertical lines.
The rightmost item is a Phone icon and when you touch it, it selects
by showing Orange, just like if you select the main row of any
ListView. Does anyone know how that is done? Is it just an attribute
of the layout item. ie, if the row is a LinearLayout with an
ImageView in the rightmost cell, do you set an attribute on the
ImageView or do you set an attribute of the LinearLayout?

Hoping this is an easy one. Still experimenting with it myself.

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

No comments:

Post a Comment