I have a LinearLayout that I\'ve styled to look like a button, and it contains a few text/ImageView elements. I would like to make the whole
LinearLayout
button
I used the first and second answer. But my linearlayout has images and text with background color, so i had to change "background" to "foreground"
linearlayout
android:foreground="?android:attr/selectableItemBackground" android:clickable="true"