做出的效果是QQ好友分组+ListView分组
实现代码如下:
有三个XML文件:
<ExpandableListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/res_layout_ExpandableListView"
></ExpandableListView>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/res_layout_list"
></ListView>