Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a button to the ExpandableListView Group item

I am customizing an ExapndableListView,, I am trying to add a Button to the Group Item,,

The problem is that if the button is focussable the group does't expand on click. I want the group to expand normally and the button to be clicked normally.

Anybody knows how I could accomplish that?

like image 736
Hazem Farahat Avatar asked Dec 17 '22 13:12

Hazem Farahat


1 Answers

Set the button not focusable. button.setFocusable(false)

This should to the job.

like image 151
Flo Avatar answered Dec 19 '22 03:12

Flo