ExpandableListView的默认行为是在单击其标题时折叠组。是否可以不点击显示它?始终在不点击
的情况下展示孩子答案 0 :(得分:2)
尝试使用此代码
ExpandableListView mExpandableListView = (ExpandableListView) findViewById(R.id.exListview);
int count = viewAdapter.getGroupCount();
for (int position = 1; i <= count; position++)
{
mExpandableListView.expandGroup(position - 1);
}