0

ExpandableListView 的默认行为是在单击标题时折叠组。不点击就可以显示吗?始终显示孩子而不点击

4

1 回答 1

2

尝试使用此代码

ExpandableListView mExpandableListView = (ExpandableListView) findViewById(R.id.exListview);
int count = viewAdapter.getGroupCount();
for (int position = 1; i <= count; position++)
{
    mExpandableListView.expandGroup(position - 1);
}
于 2012-11-08T04:36:14.503 回答