| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Note : This library is not developed anymore, as there is an official way to support old Android versions with preferences that have same material design style, by using PreferenceFragmentCompat : https://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat
Allows to have a nice Material-Design look&feel for API 14 (even below if you use release 10 of the library) and above for the PreferenceActivity, including most commonly used preferences and also showing the actionBar. All the dialogs are using the support library's dialogs, including accent-color. You can even choose which theme to use.
Supported preferences are:
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.
Via gradle :
allprojects {
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
}
dependencies {
compile 'com.github.AndroidDeveloperLB:MaterialPreferenceLibrary:###'
}
where "###" is the number as shown here: https://jitpack.io/#AndroidDeveloperLB/MaterialPreferenceLibrary/ .
Just check the code (it has a sample inside), or see how it works on my app, here:
Here's a demo of how the library performs on both Gingerbread and Lollipop, including how the native preferences look and behave:
Contribution is appreciated. Please try to be "loyal" to the original code of Android, as I've tried.
This library needs:
That's it.
Android's code ?
It's Apache2 . Do with it what you wish. Credits are appreciated :)
| Back | FazBrowse Home | New Git URL |