我想在Android中获取创建自定义的 ExpandableListView,但是当我点击Child Item时,没有返回值。点击事件的代码如下:
mExpandableListView.setOnChildClickListener(new OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
Toast.makeText(getBaseContext(), "Child clicked",
Toast.LENGTH_SHORT).show();
return true;
}
});
为什么没有返回值呢?