您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: