读书人

expandablelistview 设立默认展开第一

发布时间: 2012-06-26 10:04:13 作者: rapoo

expandablelistview 设置默认展开第一组

?? ?? ExAdapter adapter;
?? ?? ExpandableListView exList;

?

?????? adapter=new ExAdapter(DiseaseDetail.this);
??????? exList = (ExpandableListView) findViewById(R.id.list2);
??? ??? exList.setAdapter(adapter);
??? ??? exList.expandGroup(0);

读书人网 >移动开发

热点推荐