Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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" />
@kunpark168
Copy link

kunpark168 commented May 3, 2017

how to set color when checked ?

@abunayem
Copy link

abunayem commented Aug 27, 2017

when i set android:clickable="false" didn't change the state on click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment