茴香豆的第五种写法---设置ExpandableListView系统自带图标按下效果
2013-09-16 22:47
513 查看
1 编写groupindicator_selector.xml如下:
再次指定ExpandableListView展开和收缩时的不同图标
2 在布局文件中为<ExpandableListView指定groupIndicator
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_expanded="true" android:drawable="@drawable/right" /> <item android:drawable="@drawable/down" /> </selector>
再次指定ExpandableListView展开和收缩时的不同图标
2 在布局文件中为<ExpandableListView指定groupIndicator
<ExpandableListView android:id="@+id/expandableListView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:groupIndicator="@drawable/groupindicator_selector" />
相关文章推荐
- 茴香豆的第五种写法---设置ExpandableListView系统自带图标按下效果
- 茴香豆的第五种写法---设置ExpandableListView系统自带图标按下效果
- 茴香豆的第五种写法---取消ExpandableListView系统自带图标
- 茴香豆的第五种写法---取消ExpandableListView系统自带图标
- 茴香豆的第五种写法---改变ExpandableListView系统自带图标显示位置
- 茴香豆的第五种写法---改变ExpandableListView系统自带图标显示位置
- 去掉ExpandableListView的系统自带的箭头图标
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- ExpandableListView自带箭头图标去除和替换
- Delphi 中 listview 根据文件扩展名 设置系统图标
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)[转]
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- ListView,Item中的TextView设置跑马灯效果;
- ExpandableListView实现手风琴效果
- ExpandableListView实例(二)_两种方式实现QQ中组后面显示子条目数量效果
- 关于ExpandableListView设置分组各种事件中背景切换错误混乱问题