title: How to style ToggleButton so that the background color is WHITE?
body: <p>I have tried the following</p>
  
  <pre><code>View view = (View) findViewById (id);
  view.setBackgroundColor (Color.WHITE);
  </code></pre>
  
  <p>The above destroys the property of the ToggleButton. I can no longer make out if it is TextView or ToggleButton. Clicking the button produces onClick but the UI change to show the selected bar is absent.</p>
  
  <pre><code>ToggleButton btn = (ToggleButton) findViewById (id);
  btn.setBackgroundColor (Color.WHITE);
  </code></pre>
  
  <p>This also produces the same error. Using XML styling also causes the same error. I am using Android Studio v1.0.2 and the target is a lollipop emulator. I tried the same thing in 4.4.4 mobile. I see the same behavior.</p>
  
  <p>I don't want to use images. Kindly don't suggest that to me. I have gone through the threads that are available in stackoverflow - nothing works for me. </p>
  
  <p>Can anyone help me?</p>