ExpandableListView的下拉图标替换
2011-07-11 11:17
435 查看
ExpandableListView的小图标有个状态,一个是不点击的情况,一个是点击后展开的情况,用xml配置如下:<?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/narrow_select" />
<item android:drawable="@drawable/narrow" />
</selector>Java的代码如下:ExpandableListView listView = getExpandableListView();listView.setGroupIndicator(this.getResources().getDrawable(R.drawable.group_icon_selector));
http://yutinglong.iteye.com/blog/836710
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_expanded="true" android:drawable="@drawable/narrow_select" />
<item android:drawable="@drawable/narrow" />
</selector>Java的代码如下:ExpandableListView listView = getExpandableListView();listView.setGroupIndicator(this.getResources().getDrawable(R.drawable.group_icon_selector));
http://yutinglong.iteye.com/blog/836710
相关文章推荐
- ExpandableListView小图标替换
- ExpandableListView的下拉收起图标无法对齐
- 替换ExpandableListView右边箭头Group Indicator(小图标)
- 替换ExpandableListView右边箭头Group Indicator(小图标)
- ExpandableListView小图标替换
- ExpandableListView小图标替换
- Android中替换ExpandableListView控件前面的箭头图标
- ExpandableListView自带箭头图标去除和替换
- Android中替换ExpandableListView控件前面的箭头图标
- ExpandableListView(二)替换箭头图标被拉伸的问题
- ExpandableListView替换图标
- Android中替换ExpandableListView控件前面的箭头图标
- ExpandableListView(二)替换箭头图标被拉伸的问题
- android ExpandableListView 下拉图标记的替换
- 可下拉的PinnedHeaderExpandableListView的实现
- 去掉ExpandableListView的箭头图标
- 时光轴timeline实现和listview的下拉缩放和baraction的图标控制和下拉刷新和listveiw动画
- 可下拉的PinnedHeaderExpandableListView的实现
- ExpandableListView+Dialog实现弹出二级下拉列表选项。可自由用于Activity和Fragment中
- ExpandableListView可扩展的下拉列表简单的使用