title: Android - Switch track not drawn when turned off
body: <p>I am using <code>android.widget.Switch</code> in a part of my app. The problem is that the track is not drawn when its turned off.</p>
  
  <p>I did a little bit of debugging and found that the track is in fact there but, is just a translucent white, and hence will not show up against my white background.</p>
  
  <p>Please see the picture below. First is when its ON, Second is when its OFF, and Third is OFF which black background on parent.</p>
  
  <p>What I am wondering is; is using 'Switch' really this tricky? or am I missing something? I prefer not to use any custom drawable for track or the thumb.</p>
  
  <p>UPDATE:
  I see that this is happening since I am using <code>android:Theme.DeviceDefault.Wallpaper.NoTitleBar</code> as my theme. If I use <code>android:Theme.DeviceDefault.Light</code>, there is no such issue. But unfortunately I need to stick with first theme.
  Can anybody tell me how can I customize <code>android:Theme.DeviceDefault.Wallpaper.NoTitleBar</code> so that I can probably solve this issue?</p>
  
  <p><a href="https://i.stack.imgur.com/ZhOkm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZhOkm.png" alt="First is when its ON, Second is when its OFF, and Third is OFF with black background on parent."></a></p>