I am referring to the blue ON/OFF styling as seen in the default Android Settings app on ICS phones. It can also be seen here: http://android-developers.blogspot.com/2012/02/and
As easy as: My xml-v14/preferences.xml
xml-v14/preferences.xml
<SwitchPreference android:key="@string/feature_id" android:title="@string/feature_title" />
For compatibility: My xml/preferences.xml
xml/preferences.xml
<CheckBoxPreference android:key="@string/feature_id" android:title="@string/feature_title" />