为ExpandableListView这个控件自定义箭头
来源:互联网 发布:三维弯管机编程软件 编辑:程序博客网 时间:2024/06/07 14:52
系统中的ExpandableListView这个控件的箭头不好看,不能满足我们需求,需要自定义箭头样式
1.要在<ExpandableListView></ExpandableListView>布局里加上android:groupIndicator="@drawable/image",其中image是我们自定义的一个selector类型的布局文件。
2.image.xml文件加上<item android:state_expanded="false"
android:drawable="@drawable/down_arrow"/>
<item android:state_expanded="true"
android:drawable="@drawable/up_arrow"/>
0 0
- 为ExpandableListView这个控件自定义箭头
- 去掉或自定义ExpandableListView的箭头图标
- 自定义Android中Expandablelistview中的下拉箭头
- android 自定义箭头控件
- Android中替换ExpandableListView控件前面的箭头图标
- Android中替换ExpandableListView控件前面的箭头图标
- Android中替换ExpandableListView控件前面的箭头图标
- ExpandableListView--------可展开的ListView(自定义箭头)
- ExpandableListView 箭头靠右
- ExpandableListView的箭头问题
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView左边的箭头
- 去掉ExpandableListView的箭头图标
- 设置ExpandableListView右边的箭头
- 设置ExpandableListView右边的箭头
- 去掉ExpandableListView的箭头图标
- 设置ExpandableListView右边的箭头
- iOS 数据持久化之使用NSUserDefaults存储数据
- 4.4 StoneWall
- 【主席树】 BZOJ 2653 middle
- markdown基本语法
- 栈帧
- 为ExpandableListView这个控件自定义箭头
- 第27章 字符集设置
- WP8最大的败笔就是只能用Win8做开发
- View的setOnClickListener的添加方法
- Mysql 本地登陆和密码登陆
- 技术人员为什么要写博客
- citrix receiver 添加账户报错:无法使用此服务地址添加您的账户
- C++常用库函数atoi,itoa,strcpy,strcmp的实现
- 设计模式