SwitchCompat修改颜色

android.support.v7.widget.SwitchCompat修改颜色
在Style中添加

<!-- Active thumb color & Active track color(30% transparency) -->
<item name="colorControlActivated">@color/appPrimaryGreen_1</item>
<!-- Inactive thumb color -->
<item name="colorSwitchThumbNormal">@color/appPrimaryGreen_1</item>
<!-- Inactive track color(30% transparency) -->
<item name="android:colorForeground">@color/gray</item>   

详情点击这里

你可能感兴趣的:(style,switch,样式,颜色,compat)