在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AndroidDeveloperLB/MaterialPreferenceLibrary开源软件地址(OpenSource Url):https://github.com/AndroidDeveloperLB/MaterialPreferenceLibrary开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):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 MaterialPreferenceLibraryAllows 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. ImportVia gradle :
where "###" is the number as shown here: https://jitpack.io/#AndroidDeveloperLB/MaterialPreferenceLibrary/ . SampleJust check the code (it has a sample inside), or see how it works on my app, here: ScreenshotsHere's a demo of how the library performs on both Gingerbread and Lollipop, including how the native preferences look and behave: Notes
Contribution is appreciated. Please try to be "loyal" to the original code of Android, as I've tried. RequirementsThis library needs:
That's it. ThanksAndroid's code ? LicenseIt's Apache2 . Do with it what you wish. Credits are appreciated :) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论