ExpandableListView 下拉图标记的替换
<?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/new_select" />
<item android:drawable="@drawable/default_select" />
</selector>
ExpandableListView listView = getExpandableListView();
listView.setGroupIndicator(this.getResources().getDrawable(R.drawable.group_icon_selector));
本文介绍如何为ExpandableListView设置组指示器,并通过XML定义不同状态下的图标样式,如展开与默认状态的图标替换。
182

被折叠的 条评论
为什么被折叠?



