Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
 
 

Repository files navigation

SwitchPreferenceCompat

Build Status Stories in Ready Bountysource Maven Central Download

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

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages