I have some TextViews, EditTexts and Buttons in a linear layout. If I touch/click any side of the LinearLayout it goes to the next activity. I have tried setting onClick listeners for all elements in the LinearLayout. This works but is there any way to write code for touching any area of the LinearLayout to go next activity without needing to add the onClick handler for all elements? Because there are more elements in the layout. Please assist me.
I have some TextViews, EditTexts and Buttons in a linear layout. If I touch/click
Share
Try setting onClick listener event for the linerlayout from code as below