Issue
I have a vertical LinearLayout in my app where every row should get a more complex sub-view consisting of an image and two lines of text. Now I want to make the complete row clickable in order to start an other action. This means the whole thing should react on a click: the base view which holds the other elements, the image and even the two lines of text.
My question: what is the best approach for this? I can't use a simple button for the complete row and as far as I know I can't set an onClick-Handler for view/image/labels?
Any idea how this could be done?
Thanks!
Solution
You just need to add clickable tag true in xml to your main view eg relativelayout or linearlayout. That will work
Answered By - Harminder Singh
Answer Checked By - Mildred Charles (JavaFixing Admin)