开源软件名称(OpenSource Name):jenzz/Android-MaterialPreference开源软件地址(OpenSource Url):https://github.com/jenzz/Android-MaterialPreference开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):DEPRECATEDAndroid-MaterialPreference is deprecated. No more development will be taking place. Use Google's official support libraries instead com.android.support:preference-v7 and com.android.support:preference-v14. If you need some assistance in building a fully Material Design settings screen, here is a great series of blog articles on this topic: Android - MaterialPreference
Screenshots
UsageIn your settings XML file that describes your preferences (must be located in <com.jenzz.materialpreference.PreferenceCategory
android:title="Material Category">
<com.jenzz.materialpreference.Preference
android:title="Material Preference"
android:summary="Material Summary" />
<com.jenzz.materialpreference.CheckBoxPreference
android:title="Material CheckBoxPreference"
android:summaryOn="Material CheckBox Summary On"
android:summaryOff="Material CheckBox Summary Off" />
</com.jenzz.materialpreference.PreferenceCategory> That's it. You can use all the attributes you know from the original preferences. You're probably wondering why there are only Material Design versions
of Theming
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="mp_colorAccent">#bada55</item>
</style> Also note that the ExampleCheck out the sample project for an example implementation. DownloadGrab it via Gradle: compile 'com.jenzz:materialpreference:1.3' LicenseThis project is licensed under the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论