SwitchPreferenceCompat Library

Allow easy to use SwitchCompat as preference

License

License

Categories

Categories

FST Data Data Formats Serialization
GroupId

GroupId

com.infstory
ArtifactId

ArtifactId

switch-preference-compat
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

SwitchPreferenceCompat Library
Allow easy to use SwitchCompat as preference
Project URL

Project URL

https://github.com/yongjhih/SwitchPreferenceCompat
Source Code Management

Source Code Management

https://github.com/yongjhih/SwitchPreferenceCompat

Download switch-preference-compat

How to add to project

<!-- https://jarcasting.com/artifacts/com.infstory/switch-preference-compat/ -->
<dependency>
    <groupId>com.infstory</groupId>
    <artifactId>switch-preference-compat</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.infstory/switch-preference-compat/
implementation 'com.infstory:switch-preference-compat:1.0.0'
// https://jarcasting.com/artifacts/com.infstory/switch-preference-compat/
implementation ("com.infstory:switch-preference-compat:1.0.0")
'com.infstory:switch-preference-compat:aar:1.0.0'
<dependency org="com.infstory" name="switch-preference-compat" rev="1.0.0">
  <artifact name="switch-preference-compat" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.infstory', module='switch-preference-compat', version='1.0.0')
)
libraryDependencies += "com.infstory" % "switch-preference-compat" % "1.0.0"
[com.infstory/switch-preference-compat "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 21.+
com.android.support » support-v4 jar 21.+

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.0