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

Commit 1f913fb

Browse files
2 parents 082259a + 2de2571 commit 1f913fb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In addition to all of those, I've disabled the truncating of the text of all the
2020

2121
Import
2222
======
23-
Via gradle (as shown here: https://jitpack.io/#AndroidDeveloperLB/MaterialPreferenceLibrary/1 ) :
23+
Via gradle (as shown here: https://jitpack.io/#AndroidDeveloperLB/MaterialPreferenceLibrary/2 ) :
2424

2525
allprojects {
2626
repositories {
@@ -32,7 +32,7 @@ Via gradle (as shown here: https://jitpack.io/#AndroidDeveloperLB/MaterialPrefer
3232
}
3333

3434
dependencies {
35-
compile 'com.github.AndroidDeveloperLB:MaterialPreferenceLibrary:1'
35+
compile 'com.github.AndroidDeveloperLB:MaterialPreferenceLibrary:2'
3636
}
3737

3838
Sample
@@ -57,14 +57,13 @@ Notes
5757
1. About the **actionBar**, all this library does is to simply put a Toolbar at the top of the PreferenceActivity, and you need to use the Toolbar instead of the ActionBar.
5858
2. Not all preferences were imported.
5959
3. Sadly, **reflection** was used for 2 functions of "PreferenceManager" which aren't public (yet the framework's classes have full access to it) : "unregisterOnActivityDestroyListener", "registerOnActivityDestroyListener". Those functions seem to be used only for dismissing the dialogs when the activity is being destroyed. Just in case something goes wrong, I've made the code ignore (and write in the logs) in case they are unreachable.
60-
4. **Preference icon** is missing, but I think it should be easy to add it. The reason it was missing is because I need to use the internal class that extends ImageView for it, which has "minWidth" and "minHeight", yet those are missing from old APIs, so I would need to import the entire code of ImageView... However, I'm sure there is a better way.
61-
5. Not tested on **PreferenceFragment** (yet), but you can try it using these libraries and see if you can support even older APIs :
60+
4. Not tested on **PreferenceFragment** (yet), but you can try it using these libraries and see if you can support even older APIs :
6261
https://github.com/Machinarius/PreferenceFragment-Compat
6362
https://github.com/kolavar/android-support-v4-preferencefragment
64-
6. In order to add **action items**, you need to do it completely via code, without using XML. Otherwise, on some Android versions (or all?), the action items will all gather inside the overflow menu item.
65-
7. Some **attributes** should be used using Android's framework, and some using mine. Sorry for the confusion.
66-
8. **Preference selection** obviously can't have ripples, but it should at least be possible to have Kitkat style selection for pre-Kitkat versions.
67-
9. Sadly, it **doesn't support all kinds of preferences**. Currently, those are missing:
63+
5. In order to add **action items**, you need to do it completely via code, without using XML. Otherwise, on some Android versions (or all?), the action items will all gather inside the overflow menu item.
64+
6. Some **attributes** should be used using Android's framework, and some using mine. Sorry for the confusion.
65+
7. **Preference selection** obviously can't have ripples, but it should at least be possible to have Kitkat style selection for pre-Kitkat versions.
66+
8. Sadly, it **doesn't support all kinds of preferences**. Currently, those are missing:
6867
- RingtonePreference
6968
- MultiSelectListPreference
7069
- others ?

0 commit comments

Comments
 (0)