如何更改过度滚动边缘和过度滚动发光的颜色 [英] How to change the color of overscroll edge and overscroll glow

查看:99
本文介绍了如何更改过度滚动边缘和过度滚动发光的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改过度滚动边缘和过度滚动发光的颜色,或如何更改android版本5.0棒棒糖的白色(默认颜色)?

How to Change color of over-scroll edge and over-scroll glow or how to change the white color (default color) of android release 5.0 lollipop?

推荐答案

过度滚动发光颜色会继承整个应用程序中android:colorPrimary设置的原色值.但是,如果您需要指定其他值,则只需使用android:colorEdgeEffect(仅适用于API 21及更高版本).

The overscroll glow color inherits the primary color value set by android:colorPrimary in your entire app. But If you need to specify different value simply use android:colorEdgeEffect (only available for API 21 and above).

<style name="MyAppTheme" parent="...">
   <item name="android:colorEdgeEffect">@color/my_color</item>
</style>

这篇关于如何更改过度滚动边缘和过度滚动发光的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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