colorcontrolactivated android studio 4 code example
Example: colorcontrolactivated android studio 4
<!-- style -->
<style name="SwitchColor" parent="Theme.AppCompat.Light.NoActionBar">
<!-- active thumb & track color -->
<item name="colorControlActivated">@color/pink</item>
<!-- inactive thumb color -->
<item name="colorSwitchThumbNormal">#f1f1f1</item>
<!-- inactive track color -->
<item name="android:colorForeground">#42221f1f</item>
</style>
<!-- layout -->
android:theme="@style/SwitchColor"