[英]Thinner Android SwitchCompat
If you are using Material design then you have to set your accent color that is handling color or your controls: 如果使用的是Material design,则必须设置处理颜色的强调色或控件:
<item name="colorAccent">@color/accent</item>
And if you want only for particular view then create a new style and add this items (colorControlNormal, colorControlActivated,colorControlHighlight, and colorSwitchThumbNormal) with colors like above code. 而且,如果只想使用特定的视图,则可以创建一种新样式,并使用上述代码的颜色添加此项(colorControlNormal,colorControlActivated,colorControlHighlight和colorSwitchThumbNormal)。
Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.