I have an ExpandableListView and everything is ok. I have a checkbox in each child row that I want to toggle when I click on a child row as below:
expandableListView.setOnChildClickListener(new OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
CheckBox checkBox = (CheckBox) v.findViewById(R.id.checkBox1);
checkBox.toggle();
return true;
}
});
The problem is that program never enters inside onChildClick() event handler. Any Idea?