Loading

ExpandableListView实现子Item的点击事件

在继承的BaseExpandableListAdapter的ExpandableListView的Adapter中,重写以下方法

@Override
public boolean isChildSelectable(int groupPosition, int childPosition) {
    return true;
}

然后设置ExpandableListView的 setOnChildClickListener。即可实现子Item的点击事件

posted @ 2017-01-02 16:30  辉灬  阅读(4600)  评论(0编辑  收藏  举报