I need to change the color of both side in android switch button. I tried with android:textColorHighlight
in my xml file but it seems not work. This is my code:
<Switch
android:id="@+id/sdrt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:textColorHighlight="@android:color/holo_green_dark"
android:textOff="0"
android:textOn="1" />
How could I change the background color of both selected and un-selected buttons in android switch?