原 ExpandableListView的用法
2015-09-30 20:10
405 查看
原 ExpandableListView的用法
发表于2年前(2014-03-04 15:09) 阅读(8340) | 评论(2) 5人收藏此文章, 我要收藏赞3
10月17日南京OSC源创会第40期开始报名,精美礼品等你到现场拿
android ExpandableListView BaseExpandableListAdapter
ExpandableListView组件是android中一个比较常用的组件,当点击一个父item的时候可以将它的子item显示出来,像手机QQ中的好友列表就是实现的类型效果。使用ExpandableListView组件的关键就是设置它的adapter,这个adapter必须继承BaseExpandbaleListAdapter类,所以实现运用ExpandableListView的核心就是学会继承这个BaseExpanableListAdapter类。
下面是一个小demo:
activvity_main.xml:
?
?
?
?
相关文章推荐
- Socket.IO学习之基础入门
- 汇编笔记 CALL(1)
- ocp-9
- ocp-8
- ANR异常产生的原因及其解决办法
- 【错误处理】mysql远程连接ERROR 2003 (HY000): Can't connect to MySQL server on '10.211.55.6' (113)
- 找出数组中第K大的数
- URAL - 1966 - Cycling Roads(并检查集合 + 判刑线相交)
- ocp-7
- 剑指offer—二进制中1的个数
- effective c++ 复制对象时勿忘每一个成分
- 实现只响应第一次按钮单击,第二次不响应
- 当数据类型为long的变量后面没有L加会有什么后果
- 意图(Intent)讲解1:安卓使用意图(Intent)通用方法传递数据
- 个人博客作业2--代码规范和代码复审
- DNS子域授权及view(三)
- 欢迎使用CSDN-markdown编辑器
- ocp-006
- grunt-contrib-cssmin使用指南
- 代码复审