SwitchPreferenceCompat
yongjhih
42
Visit GitHub RepoCheckboxes

SwitchPreferenceCompat (Deprecated)

Build Status Stories in Ready Bountysource Maven Central Download

Use support-v7-preferences instead

Allow easy to use SwitchCompat as preference.

SwitchPreferenceCompat

Usage

<CheckBox
    android:key="example_checkbox"
    android:title="@string/pref_title_example"
    android:summary="@string/pref_description_example"
    android:defaultValue="true" />

to

<com.cgollner.unclouded.preferences.SwitchPreferenceCompat
    android:key="example_checkbox"
    android:title="@string/pref_title_example"
    android:summary="@string/pref_description_example"
    android:defaultValue="true" />

Installation

build.gradle:

dependencies {
    compile 'com.infstory:switch-preference-compat:1.0.+'
}

Requirement

  • Theme.AppCompat

build.gradle:

dependencies {
    compile 'com.android.support:appcompat-v7:21.+'
}

Credit

  • @ChristianGollner

This SwitchPreferenceCompat is imported from https://plus.google.com/+ChristianGollner/posts/badausxo1J6

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT