4

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?

Hazem Farahat
  • 3,790
  • 2
  • 26
  • 42

1 Answers1

12

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

This should to the job.

Flo
  • 27,355
  • 15
  • 87
  • 125
  • Check this question --> http://stackoverflow.com/questions/2322390/android-row-becomes-unclickable-with-button/2323085#2323085 – Flo May 31 '11 at 10:04