NickName:zer0stimulus Ask DateTime:2013-03-01T23:39:30 Android: android:textOn and android:textOff on Switch not working Changing the android:textOn and android:textOff attributes of Switch does not work on my S3. The label on my switch always shows "ON" and "OFF". Switch Documentation <Switch xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textOn="@string/on" android:textOff="@string/off" android:includeFontPadding="false"/> Copyright Notice:Content Author:「zer0stimulus」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/15161417/android-androidtexton-and-androidtextoff-on-switch-not-working Answers Rawkode 2013-03-01T15:53:12 I just tested this on a Samsung Galaxy S3, and it works just fine.\n\nHere's my XML\n\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:tools=\"http://schemas.android.com/tools\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\"\n tools:context=\".MainActivity\" >\n\n <ToggleButton\n android:id=\"@+id/toggleButton1\"\n android:layout_width=\"wrap_content\"\n android:layout_height=\"wrap_content\"\n android:layout_above=\"@+id/switch1\"\n android:layout_centerHorizontal=\"true\"\n android:layout_marginBottom=\"16dp\"\n android:textOn=\"CHANGEMEON\"\n android:textOff=\"CHANGEMOFF\"\n android:text=\"ToggleButton\" />\n\n</RelativeLayout>\n",