title: Android Switch widget textOn and textOff not working in Lollipop
body: <p>The behavior of the switch widget changed in Lollipop (5.0).</p>
  
  <pre><code>    &lt;Switch
          android:id="@+id/switcher"
          android:layout_width="wrap_content"
          android:layout_height="0dp"
          android:layout_marginBottom="16dp"
          android:layout_marginRight="8dp"
          android:layout_marginEnd="8dp"
          android:layout_toEndOf="@id/another_view"
          android:layout_toRightOf="@id/another_view"
          android:layout_alignParentRight="true"
          android:layout_alignParentEnd="true"
          android:layout_alignParentBottom="true"
          android:textOff="@string/disabled"
          android:textOn="@string/enabled"
          android:fontFamily="sans-serif-condensed"
          /&gt;
  </code></pre>
  
  <p>Rendered switch when targetSdkVersion=19:</p>
  
  <p><img src="https://i.stack.imgur.com/kjQ7b.png" alt="enter image description here"></p>
  
  <p>Rendered switch when targetSdkVersion=21:</p>
  
  <p><img src="https://i.stack.imgur.com/Ekoez.png" alt="enter image description here"></p>
  
  <p>Note that preview rendering in Android Studio still produces a switch with text, but the switch loses it's text when an apk built with targetSdkVersion=21 is run on a device with Lollipop (Nexus 5). Running an apk built with targetSdkVersion=19 on the same Lollipop device renders the switch properly with text as expected.</p>
  
  <p>Why? Any suggested workarounds?</p>