title: Custom switch in Android with text in track
body: <p>I have a custom switch. I want the text (on/off) to be in the track and not in the thumb. </p>
  
  <p>I was thinking of setting a selector with text in drawable and setting it as track of the switch. But I cannot set text in a shape. Any ideas how I can do this?</p>
  
  <p>I also want to add some padding to the track, I dont want the thumb to touch the track.
  This is kind of how I want it to look:</p>
  
  <p><a href="https://i.stack.imgur.com/0IWTQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0IWTQ.png" alt="I want the switch to be kind of like this"></a></p>
  
  <p>This is the shape of my track:</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle"
  android:visible="true"
  android:useLevel="false"&gt;
  &lt;corners
      android:radius="20dp" /&gt;
  &lt;size
      android:width="48dp"
      android:height="21dp" /&gt;
  &lt;stroke
      android:color="#bfbfbf"
      android:width="6dp"/&gt;
  </code></pre>
  
  <p></p>