Blue highlight over an ImageView when the user taps it
问题 I have a LinearLayout "card" with an ImageView and a TextView. I want the card to be highlighted when the user taps it. See http://www.youtube.com/watch?v=Yx1l9Y7GIk8&feature=share&t=15m17s for an example. This is easily done for the TextView by setting android:background="@drawable/blue_highlight" . Below is res/drawable/blue_highlight.xml: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_selected="true" android