Android—去掉ExpandableListView的箭头图标
来源:互联网 发布:java jdbc连接池使用 编辑:程序博客网 时间:2024/05/16 23:40
用到ExpandableListView时有个箭头图标系统自带的在你自定义布局也不能去掉只要设置一个属性即可,如下:
settingLists.setGroupIndicator(null); ~~~~~~~~~~~~~~~~~此处就是设置自定义的箭头图标的。置空则没有了。
也可以自定义(但是位置还是在那个地方不推荐)如下:
首先,自定义一个expandablelistviewselector.xml文件,具体内容如下:
Java代码
<?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/expandablelistviewindicatordown" />
<item android:drawable="@drawable/expandablelistviewindicator" />
</selector>
加一句代码如下:
settingLists.setGroupIndicator(this.getResources().getDrawable(R.layout.expandablelistviewselector));
0 0
- Android—去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉或自定义ExpandableListView的箭头图标
- Android—去掉expandablelistview左边的图标
- 去掉ExpandableListView的系统自带的箭头图标
- 去掉ExpandableListView左边的箭头
- ExpandableListView 去掉默认的箭头
- Android中替换ExpandableListView控件前面的箭头图标
- Android中替换ExpandableListView控件前面的箭头图标
- Android中替换ExpandableListView控件前面的箭头图标
- 去掉ExpandableListView前的向下箭头
- 去掉快捷方式图标上的箭头
- 去掉windows图标上的箭头
- 工作日志-3
- 新人报到
- nginx使用ssl模块配置HTTPS支持
- linux shell脚本 mysql多行命令执行
- 今天开张咯
- Android—去掉ExpandableListView的箭头图标
- Android学习笔记——ListView
- JVM总结
- Nginx Location配置总结
- Android调用系统相机拍照,并且模仿实现水印相机简单功能
- iphone-67-长按uitableview的row,实现reorder
- JS获取表单元素的value
- Linux NFS服务器的安装与配置
- 欢迎使用CSDN-markdown编辑器