{"id":18925832,"url":"https://github.com/michael-rapp/androidmaterialpreferences","last_synced_at":"2025-04-15T13:32:16.751Z","repository":{"id":57727885,"uuid":"44459978","full_name":"michael-rapp/AndroidMaterialPreferences","owner":"michael-rapp","description":"Provides various \"Material Design\"-styled preferences","archived":false,"fork":false,"pushed_at":"2020-02-13T21:33:42.000Z","size":14686,"stargazers_count":82,"open_issues_count":1,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T22:05:11.996Z","etag":null,"topics":["android","dialogpreference","material-design","preferences"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-rapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-18T00:34:56.000Z","updated_at":"2025-03-15T23:17:20.000Z","dependencies_parsed_at":"2022-08-30T09:10:59.384Z","dependency_job_id":null,"html_url":"https://github.com/michael-rapp/AndroidMaterialPreferences","commit_stats":null,"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialPreferences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialPreferences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialPreferences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialPreferences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-rapp","download_url":"https://codeload.github.com/michael-rapp/AndroidMaterialPreferences/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249080263,"owners_count":21209497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","dialogpreference","material-design","preferences"],"created_at":"2024-11-08T11:13:35.535Z","updated_at":"2025-04-15T13:32:16.310Z","avatar_url":"https://github.com/michael-rapp.png","language":"Java","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X75YSLEJV3DWE"],"categories":[],"sub_categories":[],"readme":"# AndroidMaterialPreferences - README\n\n[![API-Level](https://img.shields.io/badge/API-14%2B-orange.svg)](https://android-arsenal.com/api?level=14) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X75YSLEJV3DWE)\n\n\"AndroidMaterialPreferences\" is an Android-library, which provides various preferences, which are designed according to Android 5's Material Design guidelines even on pre-Lollipop devices.\n\n![](doc/images/example.png)\n\n![](doc/images/example2.png)\n\n![](doc/images/example3.png)\n\nThe library provides the following preferences:\n\n- A preference, which allows to show simple dialogs (`DialogPreference`).\n- A preference, which allows to enter a text via an `EditText` widget (`EditTextPreference`).\n- A preference, which allows to select a value from a list (`ListPreference`).\n- A preference, which allows to select multiple values from a list (`MultiChoiceListPreference`).\n- A preference, which allows to choose a floating point value or an integer value from a continuous range via a `SeekBar` widget (`SeekBarPreference`).\n- A preference, which allows to choose a decimal value using a `NumberPicker` widget (`NumberPickerPreference`).\n- A preference, which allows to choose a decimal value, consisting of individual digits of which each can be chosen using a `NumberPicker` widget (`DigitPickerPreference`).\n- A preference, which allows to choose an image or video resolution via two `EditText` widgets (`ResolutionPreference`).\n- A preference, which allows to choose a color from a predefined color palette (`ColorPalettePreference`).\n- A preference, which provides a toggleable option using a `Switch` widget (`SwitchPreference`).\n- A preference, which provides a toggleable option using a `CheckBox` widget (`CheckBoxPreference`.\n- A preference, which acts as a button and shows a centered title (`ActionPreference`).\n\nPrior to version 4.0.0 this library relied on the Android SDK's preference classes such as `android.preference.Preference`. As these classes are deprecated starting with Android P, the library has been migrated to use the v14 Preference support library in version 4.0.0 and later.\n\n## License Agreement\n\nThis project is distributed under the Apache License version 2.0. For further information about this license agreement's content please refer to its full version, which is available at http://www.apache.org/licenses/LICENSE-2.0.txt.\n\nPrior to version 2.0.4 this library was distributed under the GNU Lesser General Public License version 3.0 (GLPLv3).\n\n## Download\n\nThe latest release of this library can be downloaded as a zip archive from the download section of the project's Github page, which is available [here](https://github.com/michael-rapp/AndroidMaterialPreferences/releases). Furthermore, the library's source code is available as a Git repository, which can be cloned using the URL https://github.com/michael-rapp/AndroidMaterialPreferences.git.\n\nAlternatively, the library can be added to your Android app as a Gradle dependency by adding the following to the respective module's `build.gradle` file:\n\n```groovy\ndependencies {\n    compile 'com.github.michael-rapp:android-material-preferences:5.3.2'\n}\n```\n\nBefore version 2.0.0 this project was hosted on [Sourceforge](https://sourceforge.net/projects/androidmaterialpreferences). These older versions used the legacy Eclipse ADT folder structure and are not available as Gradle artifacts.\n\n## Examples\n\nThe following examples provide a quick overview on how to use the preferences, which are provided by the library, in your own Android app. This project also contains the source code of an example app, which implements use cases of the library for demonstration purposes, as well as a more detailed documentation in the Wiki and auto-generated javadoc files.\n\n*Since version 5.0.0 the library requires to use [AndroidX](https://developer.android.com/jetpack/androidx/) instead of the older AppCompat support libraries. Make sure that you have [migrated](https://developer.android.com/jetpack/androidx/migrate) your app to AndroidX and that you are using one of the Material component themes instead of the AppCompat ones, e.g. `Theme.MaterialComponents.Light.DarkActionBar` instead of `Theme.AppCompat.Light.DarkActionBar`.*\n\n### Specifying a theme\n\nMost of the preferences, which are provided by the library show a dialog when the respective preference is clicked. The theme, which should be used for the dialogs, can be specified by using the theme attribute `preferenceDialogTheme`. The library comes with a predefined dark and light theme. When no theme is specified, the light theme is used by default. It can be referenced by using the resource id `@style/MaterialDialog.Light`, the dark theme corresponds to the id `@style/MaterialDialog` instead. In order specify the theme, which should be used, the attribute `preferenceDialogTheme` has to be overwritten in the theme of your app. By extending either one of default themes, which are provided by the library, custom theme attributes such like the attribute `colorAccent`, which is used to specify the default text color of a dialog's buttons, can be overwritten. The following example illustrates how this can be achieved by showing a sample `res/values/styles.xml` file:\n\n```xml\n\u003cresources\u003e\n\n    \u003cstyle name=\"AppTheme\" parent=\"@style/Theme.MaterialComponents.Light.DarkActionBar\"\u003e\n        \u003citem name=\"colorPrimary\"\u003e@color/color_primary\u003c/item\u003e\n        \u003citem name=\"colorPrimaryDark\"\u003e@color/color_primary_dark\u003c/item\u003e\n        \u003citem name=\"colorAccent\"\u003e@color/color_accent\u003c/item\u003e\n        \u003citem name=\"preferenceDialogTheme\"\u003e@style/CustomLightTheme\u003c/item\u003e\n    \u003c/style\u003e\n\n    \u003cstyle name=\"CustomLightTheme\" parent=\"@style/MaterialDialog.Light\"\u003e\n        \u003citem name=\"colorAccent\"\u003e@color/color_accent\u003c/item\u003e\n    \u003c/style\u003e\n\n\u003c/resources\u003e\n```\n\nIf the theme of one of the preferences used in the app should differ from those used by the other ones, the attribute `custom:dialogThemeResource` can be used when specifying the preference as a XML resource. The examples shown below illustrate the use of this attribute.\n\n### Showing a header\n\nAll preferences, which show a dialog, when they are clicked, can show a header at the top of their dialog. The header may contain a background color or image as well as an icon. In order to show such a header, the following XML attributes have to be added to the XML resource, which is used to declare the preference:\n\n```xml\ncustom:showDialogHeader=\"true\"\ncustom:dialogHeaderBackground=\"@drawable/dialog_header_background\"\ncustom:dialogHeaderIcon=\"@drawable/dialog_header_icon\"\n```\n\nA preference's dialog, which contains such a header, may look like shown in the screenshot below:\n\n![](doc/images/example-header-preference.png)\n\n### SeekBarPreference\n\nThe XML code below shows how to declare a `SeekBarPreference` as part of a `PreferenceScreen`. The example contains all of the preference's custom attributes.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.SeekBarPreference \n        android:defaultValue=\"33.336\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogMessage=\"@string/seek_bar_preference_dialog_message\" \n        android:dialogTitle=\"@string/seek_bar_preference_dialog_title\" \n        android:key=\"@string/seek_bar_preference_key\" \n        android:max=\"150\" \n        android:summary=\"@array/seek_bar_preference_summaries\" \n        android:title=\"@string/seek_bar_preference_title\" \n        custom:decimals=\"2\" \n        custom:floatingPointSeparator=\".\" \n        custom:min=\"25\" \n        custom:showProgress=\"true\" \n        custom:showValueAsSummary=\"false\" \n        custom:unit=\"Unit\"\n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe following screenshot shows how a `SeekBarPreference` may look like:\n\n![](doc/images/example-seek-bar-preference.png)\n\n### EditTextPreference\n\nThe example below shows how the attributes of an `EditTextPreference` can be specified within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.EditTextPreference \n        android:defaultValue=\"DefaultText\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogMessage=\"@string/edit_text_preference_dialog_message\" \n        android:dialogTitle=\"@string/edit_text_preference_dialog_title\" \n        android:key=\"@string/edit_text_preference_key\" \n        android:summary=\"@string/edit_text_preference_summary\" \n        android:title=\"@string/edit_text_preference_title\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe picture shown below show the appearance of a `EditTextPreference`:\n\n![](doc/images/example-edit-text-preference.png)\n\n### ListPreference\n\nThe example illustrates how the attributes of a `ListPreference` can be specified, if the preference should be declared within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.ListPreference \n        android:defaultValue=0 \n        android:entries=\"R.array.list_preference_entries\" \n        android:entryValues=\"R.array.list_preference_entry_values\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogItemColor=\"@android:color/black\" \n        android:dialogItemControlColor=\"@android:color/black\" \n        android:dialogMessage=\"@string/list_preference_dialog_message\" \n        android:dialogTitle=\"@string/list_preference_dialog_title\" \n        android:key=\"@string/list_preference_key\" \n        android:summary=\"@array/list_preference_summary\" \n        android:title=\"@string/list_preference_title\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe screenshot below illustrates the appearance of a `ListPreference`:\n\n![](doc/images/example-list-preference.png)\n\n### MultiChoiceListPreference\n\nThe following XML code shows how the attributes of a `MultiChoiceListPreference` can be specified, if the preference should be declared within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.MultiChoiceListPreference \n        android:defaultValue=\"R.array.multi_choice_list_preference_entry_values\" \n        android:entries=\"R.array.multi_choice_list_preference_entries\" \n        android:entryValues=\"R.array.multi_choice_list_preference_entry_values\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogItemColor=\"@android:color/black\" \n        android:dialogItemControlColor=\"@android:color/black\" \n        android:dialogMessage=\"@string/multi_choice_list_preference_dialog_message\" \n        android:dialogTitle=\"@string/multi_choice_list_preference_dialog_title\" \n        android:key=\"@string/multi_choice_list_preference_key\" \n        android:summary=\"@array/multi_choice_list_preference_summary\" \n        android:title=\"@string/multi_choice_list_preference_title\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe screenshot, which is shown in the following, illustrates how a `MultiChoiceListPreference` may look like:\n\n![](doc/images/example-multi-choice-list-preference.png)\n\n### NumberPickerPreference\n\nThe following example illustrates how of a `NumberPickerPreference` can be specified via XML for use within a `PreferenceScreen`.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.NumberPickerPreference \n        android:defaultValue=\"25\" \n        custom:min=\"0\" \n        android:max=\"100\" \n        custom:useInputMethod=\"true\" \n        custom:wrapSelectorWheel=\"false\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogMessage=\"@string/number_picker_preference_dialog_message\" \n        android:dialogTitle=\"@string/number_picker_preference_dialog_title\" \n        android:key=\"@string/number_picker_preference_key\" \n        android:summary=\"@array/number_picker_preference_summary\" \n        android:title=\"@string/number_picker_preference_title\" \n        custom:unit=\"Unit\" \n        custom:stepSize=\"5\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe screenshot below illustes how a `SeekBarPreference` may look like:\n\n![](doc/images/example-number-picker-preference.png)\n\n### DigitPickerPreference\n\nThe following example illustrates how of a `DigitPickerPreference` can be declared within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.DigitPickerPreference \n        android:defaultValue=\"25\" \n        custom:numberOfDigits=\"2\" \n        custom:useInputMethod=\"true\" \n        custom:wrapSelectorWheel=\"false\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogMessage=\"@string/digit_picker_preference_dialog_message\" \n        android:dialogTitle=\"@string/digit_picker_preference_dialog_title\" \n        android:key=\"@string/digit_picker_preference_key\" \n        android:summary=\"@array/digit_picker_preference_summary\" \n        android:title=\"@string/digit_picker_preference_title\" \n        custom:unit=\"Unit\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe image shown below shows the appearance of a `DigitPickerPreference`:\n\n![](doc/images/example-digit-picker-preference.png)\n\n### ResolutionPreference\n\nThe following XML code shows how of a `ResolutionPreference` can be declared within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.ResolutionPreference \n        android:defaultValue=\"1024x768\" \n        custom:unit=@string/resolution_preference_unit \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogMessage=\"@string/resolution_preference_dialog_message\" \n        android:dialogTitle=\"@string/resolution_preference_dialog_title\" \n        android:key=\"@string/resolution_preference_key\" \n        android:summary=\"@array/resolution_preference_summary\" \n        android:title=\"@string/resolution_preference_title\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nThe following screenshot illustrates the appearance of a `ResolutionPreference`:\n\n![](doc/images/example-resolution-preference.png)\n\n### ColorPalettePreference\n\nThe following XML structure illustrates how a `ColorPalettePreference` can be specified within a XML resource file.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.ColorPalettePreference \n        android:defaultValue=\"@color/red\" \n        custom:showPreview=\"true\" \n        custom:previewSize=\"@dimen/preview_size\" \n        custom:previewShape=\"square\" \n        custom:previewBorderWidth=\"@dimen/preview_border_width\" \n        custom:previewBorderColor=\"@color/preview_border_color\" \n        custom:previewBackground=\"@drawable/preview_background\" \n        custom:colorFormat=\"rgb\" \n        custom:dialogPreviewSize=\"@dimen/dialog_preview_size\" \n        custom:dialogPreviewShape=\"square\" \n        custom:dialogPreviewBorderWidth=\"@dimen/dialog_preview_border_width\" \n        custom:dialogPreviewBorderColor=\"@color/dialog_preview_border_color\" \n        custom:dialogPreviewBackground=\"@drawable/dialog_preview_background\" \n        custom:numberOfColumns=\"2\" \n        custom:colorPalette=\"@array/color_palette\" \n        android:dialogTitleColor=\"@android:color/black\" \n        android:dialogMessageColor=\"@android:color/black\" \n        android:dialogButtonTextColor=\"@android:color/black\" \n        android:dialogBackground=\"@android:color/white\" \n        android:dialogMessage=\"@string/color_palette_preference_dialog_message\" \n        android:dialogTitle=\"@string/color_palette_preference_dialog_title\" \n        android:key=\"@string/color_palette_preference_key\" \n        android:summary=\"@array/color_palette_preference_summary\" \n        android:title=\"@string/color_palette_preference_title\" \n        custom:showValueAsSummary=\"false\" \n        custom:dialogThemeResource=\"@style/MaterialDialog\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\nA `ColorPalettePreference` may look like shown in the screenshot below:\n\n![](doc/images/example-color-palette-preference.png)\n\n### SwitchPreference\n\nThe following XML code shows how a `SwitchPreference` can be declared within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.SwitchPreference \n        android:defaultValue=\"true\" \n        android:summaryOn=@string/summary_on \n        android:summaryOff=@string/summary_off \n        android:disableDependentsState=true \n        android:switchTextOn=@string/switch_text_on \n        android:switchTextOff=@string/switch_text_off \n        android:key=\"@string/switch_preference_key\"\n        android:summary=\"@array/switch_preference_summary\" \n        android:title=\"@string/switch_preference_title\" \n        custom:showValueAsSummary=\"false\" /\u003e \n\n\u003c/PreferenceScreen\u003e\n```\n\n### CheckBoxPreference\n\nThe following example shows how a `CheckBoxPreference` can be declared within a XML resource.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cPreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n    \u003cde.mrapp.android.preference.CheckBoxPreference\n        android:defaultValue=\"true\"\n        android:summaryOn=@string/summary_on\n        android:summaryOff=@string/summary_off\n        android:disableDependentsState=true\n        android:key=\"@string/switch_preference_key\"\n        android:summary=\"@array/switch_preference_summary\"\n        android:title=\"@string/switch_preference_title\"\n        custom:showValueAsSummary=\"false\" /\u003e\n\n\u003c/PreferenceScreen\u003e\n```\n\n## Contact information\n\nFor personal feedback or questions feel free to contact me via the mail address, which is mentioned on my [Github profile](https://github.com/michael-rapp). If you have found any bugs or want to post a feature request please use the [bugtracker](https://github.com/michael-rapp/AndroidMaterialPreferences/issues) to report them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rapp%2Fandroidmaterialpreferences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-rapp%2Fandroidmaterialpreferences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rapp%2Fandroidmaterialpreferences/lists"}