I am trying to change the color of "disabled" state in a SwitchCompat. I added this at Styles.xml:
<style name="SwitchTheme" parent="Theme.AppCompat.Light">
<item name="android:colorControlActivated">#148E13</item>
<item name="android:colorSwitchThumbNormal">#FF0000</item>
</style>
When I compile, I get the following error:
error: style attribute 'android:attr/colorSwitchThumbNormal' is private.
If I comment that line, I have no errors, and the app is installed without problem. I have checked this, but I think there are no errors in my xml files, since I would receive an error by commenting that line...I have also no rogue xml files, nor rogue Activities...Have anyone faced this problem? How to fix it, and change my switch disabled color?
Thank you.