Ale*_*kiy 6 android styles colors expandablelistview
如何改变expandableListView的箭头颜色?我不想用图标.只是改变颜色.
不幸的是,我所看到的一切都说你需要使用自定义drawable,就像这样
<ExpandableListView
android:id="@+id/expandableList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:groupIndicator="@drawable/custom_expandable" />
Run Code Online (Sandbox Code Playgroud)
然后进去 custom_expandable.xml
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/up_arrow"
android:state_empty="true" />
<item android:drawable="@drawable/down_arrow"
android:state_expanded="true" />
</selector>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7565 次 |
| 最近记录: |