医生分类二级菜单实现

整体采用listview+fragment实现。fragment中也是listview.
对于能够点击添加加载更多,仿qq联系人分组效果我们使用expandablelistview实现。
http://blog.sina.com.cn/s/blog_b37dcd9701017s61.html
数据因为是不会变化的我们就采用书粗储存,父view数组,子view二维数组。

关于他的使用,和listview类似。
首先在allitemenabled()方法中设置全部可点击返回true.
adapter不同。
在getchild count 和getgroupcount中返回分组的shumu。
然后在getchildview 和 getgroupview中返回布局和内容。
在ongtoupclick 和 onchildclick中调用,处理点击事件。

你可能感兴趣的:(医生分类二级菜单实现)