Skip to content

Instantly share code, notes, and snippets.

@cgollner
Last active October 22, 2015 21:39
Show Gist options
  • Save cgollner/79d8392440f33c666c8d to your computer and use it in GitHub Desktop.
Save cgollner/79d8392440f33c666c8d to your computer and use it in GitHub Desktop.
Preference layout to use with the SwitchCompatPreference.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.SwitchCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:clickable="false"
android:focusable="false" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment