当前位置: 动力学知识库 > 问答 > 编程问答 >

Android: change color of spinner's popup scrollbar

问题描述:

How can I change the color of the spinner's popup scrollbar?

For some reason the color of the scrollbar is currently white on a white background, it is not visible.

网友答案:
add android:scrollbarThumbVertical="@drawable/yourdawable //in your spinner 

yourdrawable.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">

    <gradient android:startColor="your color" android:endColor="your color"
        android:angle="45"/>

    <corners android:radius="6dp" />

</shape>
网友答案:

I found this solution for changing the scrollbar color globally:

How can I change the color of the scrollbar in Android?

分享给朋友:
您可能感兴趣的文章:
随机阅读: