ExpandableListView的小图标有个状态

[代码] [Java]代码

1 expandableView.setGroupIndicator(this.getResources().getDrawable(R.drawable.ic));

[代码] res/drawable/ic.xml

1 <?xml version="1.0" encoding="utf-8"?>
2 <selector xmlns:android="http://schemas.android.com/apk/res/android">
3 <item android:state_expanded="true"   
4 android:drawable="@drawable/icon" />
5   
6 <item    
7 android:drawable="@drawable/grid_view_01" />
8   
9 </selector>

你可能感兴趣的:(ExpandableListView的小图标有个状态)