去掉ExpandableListView的箭头图标
来源:互联网 发布:ubuntu 安装 交换分区 编辑:程序博客网 时间:2024/05/01 01:13
用到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
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的箭头图标
- 去掉或自定义ExpandableListView的箭头图标
- Android—去掉ExpandableListView的箭头图标
- 去掉ExpandableListView的系统自带的箭头图标
- 去掉ExpandableListView左边的箭头
- ExpandableListView 去掉默认的箭头
- 去掉ExpandableListView前的向下箭头
- Android—去掉expandablelistview左边的图标
- 去掉快捷方式图标上的箭头
- 去掉windows图标上的箭头
- 去掉快捷方式图标上的箭头
- XP去掉快捷方式图标的小箭头
- 如何去掉快捷方式图标上面的箭头
- Android 一键清理动画
- android闹钟开发(四)--音乐播放与音量调节
- android屏幕适配
- MySQL数据库插入中文出现“Incrrect Strng value '\xE9\x9C\x82'"错误
- 字典树 详解
- 去掉ExpandableListView的箭头图标
- Android设置RadioButton在文字的右边
- LoadRunner设置检查点的几种方法介绍
- BUPT Summer Journey #test7 E
- 64位Linux上编译32位软件
- 清除浮动的方法
- poj 1656 Counting Black
- mantle相关,待研究
- android setTag (int key, Object tag)抛出IllegalArgumentException的问题