Hazem Farahat
Hazem Farahat

Reputation: 3790

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?

Upvotes: 4

Views: 4257

Answers (1)

Flo
Flo

Reputation: 27455

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

This should to the job.

Upvotes: 12

Related Questions