title: How to create this toggle button?
body: <p>How can I create a toggle button that looks like this?</p>
  
  <p><a href="https://i.stack.imgur.com/GIbis.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GIbis.png" alt=""></a></p>
  
  <p>Currently I have the below:</p>
  
  <pre><code>        &lt;RadioGroup
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"
          android:layout_weight="1"&gt;
  
          &lt;ToggleButton
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textOff="@string/toggle_button_boy_add_baby"
              android:textOn="toggle_button_boy_add_baby" /&gt;
  
          &lt;ToggleButton
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textOff="@string/toggle_button_girl_add_baby"
              android:textOn="@string/toggle_button_girl_add_baby" /&gt;
  
          &lt;ToggleButton
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textOff="@string/toggle_button_unsure_add_baby"
              android:textOn="@string/toggle_button_unsure_add_baby" /&gt;
  
      &lt;/RadioGroup&gt;
  </code></pre>
  
  <p>Any tips or advice would be much appreciated. Thank you.</p>