title: How to change the background color of the toggle button on Android
body: <p>I tried to change the background color of the toggle button using XML file as white color, but the toggle button is totally damaged. It looks like all the button was covered with white.</p>
  
  <p>There is no indication of ON or OFF on the toggle button when I have changed the color of the toggle button to white. Is there is another way to change the background which will not damage the indication of the toggle button?</p>
  
  <pre><code>&lt;ToggleButton android:id="@+id/togglebutton"
                android:layout_width="100px"
                android:layout_height="46px"
                android:background="#ffffff"
                android:layout_above ="@+id/save"
                android:textOn="DAY"
                android:textOff="NIGHT" /&gt;
  </code></pre>
  
  <p>This is how my XML code look for the toggle button.</p>