ExpandableListView 的默认行为是在单击组的标题时折叠该组。不点击就能显示吗?始终向 child 展示而不点击
最佳答案
尝试使用此代码
ExpandableListView mExpandableListView = (ExpandableListView) findViewById(R.id.exListview);
int count = viewAdapter.getGroupCount();
for (int position = 1; i <= count; position++)
{
mExpandableListView.expandGroup(position - 1);
}
关于java - 显示可扩展列表子项而不触摸标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13282408/