【问题标题】:Pull-down-pull-up Expandable ListView下拉-上拉展开式ListView
【发布时间】:2014-01-21 12:25:20
【问题描述】:
【问题讨论】:
标签:
android
listview
widget
expandablelistview
pull-to-refresh
【解决方案1】:
使用下面的代码,这将为您提供 PullToRefreshExpandableListView 的子点击。
PullToRefreshExpandableListView PULL_EXLIST_VIEW;
PULL_EXLIST_VIEW = (PullToRefreshExpandableListView) findViewById(R.id.listView1);
ExpandableListView EXLIST_VIEW = PULL_EXLIST_VIEW.getRefreshableView();
EXLIST_VIEW.setOnChildClickListener(new OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
System.out.println("Child clicked");
return false;
}
});