Expandablelistview自动扩展-Android

Expandablelistview自动扩展-Android,android,expandablelistview,Android,Expandablelistview,我有一个带有项目的可扩展列表视图。我想自动扩展组,这样就不必单击它。有人能帮我做这件事吗?谢谢。用这个 用这个做这个 我在ExpandableListView中只有一个组,然后使用yourListView.expandGroup(0);私有列表createGroupList(){ArrayList result=new ArrayList();for(int i=0;i

我有一个带有项目的可扩展列表视图。我想自动扩展组,这样就不必单击它。有人能帮我做这件事吗?谢谢。

用这个

用这个做这个


我在ExpandableListView中只有一个组,然后使用yourListView.expandGroup(0);私有列表createGroupList(){ArrayList result=new ArrayList();for(int i=0;i<1;++i){//15个组…….HashMap m=new HashMap();m.put(“组项”,“更新”);//键及其值。result.add(m);}返回(列表)结果;}我在ExpandableListView中只有一个组,然后使用yourListView.expandGroup(0);私有列表createGroupList(){ArrayList result=new ArrayList();for(int i=0;i<1;++i){//15个组…….HashMap m=new HashMap();m.put(“组项”,“更新”);//键及其值。result.add(m);}返回(列表)结果;}
yourListView.expandGroup(groupPosition);