ExpandableListView mExpandableListView = (ExpandableListView) findViewById(R.id.expandableListView1);
mExpandableListView.setOnChildClickListener(new OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
//TODO
Toast.makeText(list.this, "byebyeworld", 1).show();
return true;
}
});
android 为ExpandableListView中child设置监听器
最新推荐文章于 2021-06-03 07:11:02 发布