Reputation:
I have Expandable listview Which contain button, When I click on button the click event is not triggering because button focus is set to false. First I have set button focus false in the xml layout and then based on the existing posts I have changed that and set focusable to false dynamically. But the in the two scenario's button is not clickable. I have tried setting focusable false after setting the onclickListener to the button in the getGroupView method method but the still the button is not click.. Any help Appriciated.
Upvotes: 3
Views: 424
Reputation: 20155
If the button is in the group row then 1. set Focusable true in your xml file for button 2.set focusable to false after setting the onClickListener for the button 3. and the important one is in your grouprow.xml file try to set
android:descendantFocusability="blocksDescendants"
for the View group. This should work.
Upvotes: 6