I have this Switchbutton
<Switch
android:id="@+id/switch"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="some text"
android:textColor="@color/foreground" />
How can I change the color of the button when the button is checked from default to my color?
Update:
I've tried this solution: Change "on" color of a Switch
but when I change from Switch to SwitchCompat, I can't see any Switch Buttons more
FYI I use <style name="AppTheme" parent="Theme.Leanback">