ExpandableListView.setOnChildClickListener获取不到点击事件 (

来源:互联网 发布:php 日期格式 编辑:程序博客网 时间:2024/06/05 03:19
1.

在ExpandableListView的adapter中有个isChildSelectable默认返回false,改为true即可:

 @Override
 
public boolean isChildSelectable(intgroupPosition, int childPosition) {
 
   returntrue;
 
}


2.ExpandableListView.setOnChildClickLinserner(this);

0 0