Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 508ce7a

Browse files
2 parents 6ec5615 + 418b09f commit 508ce7a

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,27 @@ Supported preferences are:
1414
- **SwitchPreference**
1515
- **TwoStatePreference**
1616
- **CheckBoxPreference**
17+
- Partial support for (inner) **PreferenceScreen**. It's partial since I can't extend from it (and can't give it to you to be used), so what I did is to at least set the same layout for all PreferenceScreen classes.
1718

1819
In addition to all of those, I've disabled the truncating of the text of all the supported preferences, so that translated text will still be fully shown. Do try ot make them short though.
1920

21+
Import
22+
======
23+
Via gradle (as shown here: https://jitpack.io/#AndroidDeveloperLB/MaterialPreferenceLibrary/1 ) :
24+
25+
allprojects {
26+
repositories {
27+
jcenter()
28+
maven {
29+
url "https://jitpack.io"
30+
}
31+
}
32+
}
33+
34+
dependencies {
35+
compile 'com.github.AndroidDeveloperLB:MaterialPreferenceLibrary:1'
36+
}
37+
2038
Sample
2139
==================================
2240
Just check the code (it has a sample inside), or see how it works on my app, here:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:1.2.3'
9-
9+
classpath 'com.github.dcendents:android-maven-plugin:1.2'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
1212
}

material_preferences_library/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
23

34
android {
45
compileSdkVersion 22

0 commit comments

Comments
 (0)