I am having trouble customizing the look of an Android Switch widget. I have custom xml drawables that I want to use for the thumb (the little button part that usually says On or Off) and the track (the background that the thumb slides across). When I set just the thumb using android:thumb, it works fine. When I set the track (whether or not the thumb is set), the switch disappears entirely and I'm left with only the text showing.

Here is my code when just the thumb is applied:

&lt;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" /&gt;


Here is what it looks like in the preview window:



And with the track applied:

&lt;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" /&gt;


Preview window with track applied:



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


Question: Spice definition of resistor/capacitor
Answer: Google search found that Micro-Cap Spice simulator does allow for .define keyword to be used.

I understand that .define could be omitted from the code you showed with the following change:

il   0 98 dc 0 ac 0 pwl (0s 1720.0a 692s 1726.0a 1385s 1716.0a 2077s 1720.0a 2770s 1726.0a 3463s 1724.0a 4155s 1712.0a 4848s 1720.0a 5540s 1724.0a 6233s 1718.0a 6925s 1728.0a 7618s 1718.0a ....)
...
c01  1 0 [6926.0 6233.4 7618.6] ic= 89.974
r01  1 2 [0.16661 0.149949 0.183271]


However, I've never seen this kind of syntax with square brackets (it neither seems to be supported by Micro-Cap). My guesses for this syntax are:


Parameters value to be swept in simulation. If this is the case then I'd expect the simulator to sweep the value of \$r01\$ for each value of \$c01\$
As suggested by Andy Aka this could be a part of Monte-Carlo analysis syntax. However, if there are no additional Monte-Carlo commands in this file - I'd say that this is not the case.
Some kind of randomization syntax - the value of the component will be generated randomly from the distribution characterized by the numbers in the brackets.


I can try to narrow down the options (or provide additional ones) if you provide some more information.

Hope this helps.