android - 如何更改 expandableListView 箭头的颜色?

标签 android colors styles expandablelistview

<分区>

如何更改可扩展ListView 的下拉箭头的颜色?

最好只改变颜色,这样动画就不会丢失。

最佳答案

不幸的是,我所看到的一切都表明您需要使用自定义可绘制对象,就像这样

<ExpandableListView 
    android:id="@+id/expandableList"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:groupIndicator="@drawable/custom_expandable" />

然后在 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>

关于android - 如何更改 expandableListView 箭头的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32254612/

相关文章:

javascript - WEBGL 改变颜色为三 Angular 形

php - CKEditor <p> 标签和删除填充

c# - 在不丢失信息的情况下将 ARGB 转换为 RGB

android - 进程 'command '/Users/rodrigovieira/Library/Android/sdk/ndk-bundle/ndk-build'' 以非零退出值 2 完成

java - 拉动刷新 RecyclerVIew 适配器不工作

android - 如何创建自定义主题并在 Android 应用程序中使用它?

emacs - 在空白模式下更改字符的颜色

c# - 创建自定义 WPF 控件并将 DataTemplate 设置为依赖属性

wpf - 如何在WPF中绑定(bind)逆 bool 属性?

java - Android SQLite CursorIndexOutOfBounds