I have a list item with a button inside.
When the button is shown, the list item is not clickable anymore. To make it clickable again, I have replaced the button with a
You can create an xml file that contains the clicked behavior of the view. Create an xml file, custom_button.xml (or whatever you want to call it) and fill it with this code:
You can then change the
android:color=""
To
android:drawable=""
And assign them to any drawable resources you have in your drawable folder. Then in the xml file for your layout containing the view, add:
android:background="custom_button"