更改ListView的ScrollBar/FastScroll颜色? [英] Change ListView's ScrollBar/FastScroll color?

查看:95
本文介绍了更改ListView的ScrollBar/FastScroll颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序整个都有一个橙色主题,但是ScrollBar/FastScroll显示为绿色.我已经尝试了很多搜索,但是找不到任何改变方法.它只是保持原样.

My app has an orange theme all over but the ScrollBar/FastScroll is appearing green. I've tried to search a lot but can't find any way to change this. It just stays the way it is.

我找到了一个"android:fastScrollTextColor"属性,但该属性更改了气泡内B的颜色.而且我找不到任何属性来更改此气泡或气泡旁边的滚动条的颜色.

I found a "android:fastScrollTextColor" property but that changes the color of the B inside the bubble. And I can't find any property to change the color of this bubble or the ScrollBar next to it.

如果情况有所不同,我将使用从此处获得的自定义PinnedHeaderListView a>模仿棒棒糖通讯录应用程序中的粘性标头.

In case it makes a difference I'm using the custom PinnedHeaderListView that I got from here to mimic the sticky headers in the lollipop contacts app.

推荐答案

滚动条拇指颜色设置为应用程序主题中的android:colorAccent属性.您确定设置正确并正确吗?

Scrollbar thumb color is set to the android:colorAccent attribute in your app theme. You are sure that is set and is correct, right?

请注意,如果您使用的是AppCompat,则必须从属性中排除android:前缀.

Note that if you're using AppCompat, you will have to exclude the android: prefix from the attribute.

您可以在此处找到有关可用颜色属性的更多信息.

You can find more information on available color attributes here.

这篇关于更改ListView的ScrollBar/FastScroll颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆