在使用ExpandableListView setOnChildClickListener事件不触发。
1.adapter 里
public boolean isChildSelectable(int groupPosition, int childPosition){
//这里必须返回true
return true;
}
2.如果列表项里使用的TextView,检查是否使用了android:textIsSelectable="true"属性,
去掉该属性就能正常影响
在使用ExpandableListView setOnChildClickListener事件不触发。
1.adapter 里
public boolean isChildSelectable(int groupPosition, int childPosition){
//这里必须返回true
return true;
}
2.如果列表项里使用的TextView,检查是否使用了android:textIsSelectable="true"属性,
去掉该属性就能正常影响