I'm having trouble adjusting the look of the Android Switch widget. I have custom xml drawings that I want to use for the thumb (the small part of the button that usually says โOnโ or โOffโ), And the track (the background on which the slide is a slide). When I install only the thumb using android: thumb, it works fine. When I set the track (regardless of whether the thumb is set), the switch completely disappears, and I just have the text.
Here is my code when only the thumb is applied:
<com.blahblahblah.blah.CustomSwitch android:id="@+id/switch_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textOff="Off" android:textOn="On" android:text="Something Awesome" android:textColor="@android:color/black" android:thumb="@drawable/custom_switch_thumb" />
Here's what it looks like in the preview window:

And with the track used:
<com.blahblahblah.blah.CustomSwitch android:id="@+id/switch_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textOff="Off" android:textOn="On" android:text="Something Awesome" android:textColor="@android:color/black" android:track="@color/track_color" />
Preview window with track used:

For reference, I am using Android Studio 0.2.3 on OSX 10.7.5.
source share