[Nexus 4 Themes and Apps] donjamal:
Changing the switch:

in framework-res.apk\res\values\styles.xml, change both holo and holo.light Switch CompoundButton

===================================================================================

General:

track is the background of the switch, thumb is the switch itself (that you slide over). TextOn & TextOff are the

strings displayed in both states of the switch. padding is pedding

<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_dark</item>
<item name="switchMinWidth">96.0dip</item>
<item name="switchPadding">8.0dip</item>
<item name="thumbTextPadding">8.0dip</item>
</style>

======================================================================================================

chaning the track (background):

from res\drawable\ open switch_track_holo_dark and ~_light.xml's

to have a different background for when the switch is in different states, add:

<item android:state_checked="true" android:drawable="@drawable/switch_bg_on_holo_light" />

- for the switch on

<item android:state_checked="false" android:drawable="@drawable/switch_bg_on_holo_light" />

- for the switch off

<item android:drawable="@drawable/switch_bg_holo_light" />

- this is the default background, so if you specify only

off or on states, the rest will be the default.

======================================================================================================

changing width of switch:

<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_dark</item>
<item name="switchMinWidth">56.0dip</item> [B][COLOR="Red"]<-- this is the overall width of the switch[/COLOR][/B]
<item name="switchPadding">8.0dip</item> [COLOR="red"][B]<-- with this[/B][/COLOR]
<item name="thumbTextPadding">8.0dip</item> [COLOR="red"][B]<-- and this, you can change the width of the switch thumb[/B][/COLOR]
</style>

======================================================================================================

Switch text:

<style name="Widget.CompoundButton.Switch" parent="@style/Widget.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
</style>

======================================================================================================

change color of these to make the text disappear (transparent) or change color:

<style name="TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">@color/secondary_text_holo_dark</item>
</style>

<style name="TextAppearance.Holo.Light.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">@color/primary_text_holo_dark</item>
</style>

======================================================================================================