I'm using Expandable List view. In my app both the group and child have content. So I need to start activity on groupClicked as well as on Child clicked. As the default action (given in android) when I click on a group the group expands.
I want to add a action on the group indicator button. So that, when the group is clicked the activity will start and when the group indicator button is clicked the child will be shown.
> a group
child 1
child 2...
How can I do that ?
Thank You
as far as I know, It is not possible to add any action on default button of expandable list.
you can set groupIndicator to null and then add a button to your group layout and handle whatever you want on the button onclicklistener
this link may help you to handle multiple listeners on one list item
CustomListView Example
and this one for ExpandableListView:
ExpandableListView Example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With