I know how to add an onClick listener to a LinearLayout to make the whole layout a click target, but I\'d like to have the LinearLayout get highlighted when tapped just like a l
I ran into this and this is what I came up with. In your layout, set the background to a drawable resource:
...
Then in drawable, add clickable.xml as so:
Then it's up to you whether or not you want to add a click handler in your activity.