您的位置:首页 > 其它

ExpandableListView 设置默认展开

2014-03-17 11:22 225 查看
1、先实例化一个ExpandableListView对象,例如mExpandableListView

2、然后mExpandableListView.setAdapter(exlvAdapter);

3、//遍历所有group,将所有项设置成默认展开

int groupCount = mExpandableListView.getCount();

for (int i=0; i<groupCount; i++) {

mExpandableListView.expandGroup(i);

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: