A bugfix release, which fixes the following issues:
- Fixed an issue that may cause the dialog that is passed to the
DialogPreference
'sonDialogClosed
-method to be null.
A bugfix release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 5.2.3, which fixes some minor issues.
A feature release, which introduces the following changes:
- A
ColorStateList
can now be used to specify the text color of aListPreference
's orMultiChoiceListPreference
's list items. - Updated the dependency "AndroidUtil" to version 2.1.0.
- Updated the dependency "AndroidMaterialDialog" to version 5.2.0.
A minor release, which introduces the following changes:
- The minimum width and height of the widget of a
CheckBoxPreference
orSwitchPreference
are now set to 0. - Updated AppCompat support library to version 1.1.0.
A feature release, which introduces the following changes:
- Added the preference
CheckBoxPreference
. - The classes
CheckBoxPreference
andSwitchPreference
extend the new classAbstractCompoundButtonPreference
.
A bugfix release, which fixes the following issues:
- Fixed a possible
NullPointerException
in theAbstractListPreference
'sindexOf
-method (#21). - Updated dependency "AndroidUtil" to version 2.0.2.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 5.1.6.
A bugfix release, which fixes the following issues:
- Fixed a crash when clicking the positive button of an
EditTextPreference
(#20).
A minor release, which introduces the following changes:
- Updated dependency "AndroidUtil" to version 2.0.1.
- Updated dependency "AndroidMaterialDialog" to version 5.1.5.
- Updated dependency "AndroidMaterialValidation" to version 3.0.1.
A bugfix release, which fixes the following issues:
- Updated dependency "AndroidMaterialDialog" to version 5.1.4. This fixes the appearance of
DialogPreference
s on devices with xhdpi screens.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 5.1.3.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 5.1.2.
A feature release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 5.1.1.
- Removed the functionality to set the disabled text color of the buttons of a
DialogPreference
's dialog. As an alternative, aColorStateList
can now be specified as the text color. - The
EditTextPreference
now uses anEditTextDialog
as provided by the updated dependency "AndroidMaterialDialog".
A minor release, which introduces the following changes:
- The
TextView
of the layoutaction_preference
now used the color?attr/colorAccent
as its text color by default.
A minor release, which introduces the following changes:
- The class
AbstractTwoStatePreference
now implements the interfaceCheckable
. - The view of a
AbstractTwoStatePreference
is now selected based on whether the preference is checked or not. - Removed
final
modifiers from the lifecycle methods of preferences. - Removed the ability to set a disabled text color from the
ActionPreference
. It now supports to set aColorStateList
as the text color instead. - Omitted the use of deprecated methods.
A major release, which introduces the following changes:
- Migrated the library to Android X.
- Replaced AppCompat themes with MaterialComponent themes.
- Updated dependency "AndroidUtil" to version 2.0.0.
- Updated dependency "AndroidMaterialDialog" to version 5.0.0. This causes the background of a
DialogPreference
's dialog to be styled according to the Material Design 2 guidelines. - Updated dependency "AndroidMaterialValidation" to version 3.0.0.
- Updated targetSdkVersion to 28.
- Added methods for setting the typeface of a
DialogPreference
's title, message, items and buttons. - The
ColorPalettePreference
's dialog now takes the whole available vertical space (see #19).
A minor release, which introduces the following changes:
- The attribute
textAllCaps
is applied to the title of anActionPreference
.
A bugfix release, which fixes the following issues:
- Fixed an issue that prevented preferences that depend on an
AbstractTwoStatePreference
from being notified about value changes.
A bugfix release, which fixes the following issues:
- The title, message and content of a
DialogPreference
's dialog are now scrollable by default, if not enough space is available. - Fixed wrong default style being used by individual preferences.
- Fixed visual glitches regarding the preview of the
ColorPickerPreference
.
A minor release, which introduces the following changes:
- Updated AppCompat v7 support library to version 27.1.1.
- Updated v14 Preference support library to version 27.1.1.
- Updated the dependency "AndroidMaterialDialog" to version 4.3.4.
- Updated the dependency "AndroidMaterialValidation" to version 2.1.6.
- Updated the dependency "AndroidUtil" to version 1.20.3.
A major release, which provides the following changes:
- Migrated the library to use the v14 Preference support library as the Android SDK's default preference classes will be deprecated in Android P.
- Updated the dependency "AndroidMaterialDialog" to version 4.3.3.
A feature release, which introduces the following changes:
- Added the class
Preference
, which supports to use vector drawables and tinting them even on pre-Lollipop devices. - (Tinted) Support vector drawables can now be used for the (header) icon of a
DialogPreference
's dialog even on pre-Lollipop devices. - Updated dependency "AndroidMaterialDialog" to version 4.3.1.
- Updated dependency "AndroidUtil" to version 1.20.1.
A minor release, which introduces the following changes:
- Updated
targetSdkVersion
to API level 27 (Android 8.1). - Updated dependency "AndroidUtil" to version 1.19.0.
- The data structure
ListenerList
is now used for managing event listeners.
A minor release, which introduces the following changes:
- All of the library's preferences now extend the class
AbstractPreference
. It provides aperformClick
-method.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialValidation" to version 2.1.4. This fixes crashes on older devices when using an
EditTextPreference
.
A feature release, which introduces the following changes:
- Added a setter method and theme attributes for customizing the padding of a preference's dialog.
- Added a setter method and a theme attribute for customizing the left and right margin of the divider, which is located above the buttons of a preference's dialog.
- Added setter methods and a theme attribute for setting the window background of a preference's dialog. This allows customize the dialog's shape.
- Added setter methods and theme attributes for specifying the scrollable area of a preference's dialog.
- It is now possible to use custom views for displaying the header of a preference's dialog.
- Fixed an issue, which prevented the switch of a
SwitchPreference
from being adapted when clicking the preference's background. - Revised the layout of an
ActionPreference
. It now uses anImageView
to display the preference's icon and can therefore be used together with arbitrary preferences. - Updated
targetSdkVersion
to API level 26 (Android 8.0). - Updated AppCompat v7 support library to version 27.0.2.
- Updated dependency "AndroidUtil" to version 1.18.3. The library now uses the class
AbstractDataBinder
of this dependency instead of shipping its own implementation. - Updated dependency "AndroidMaterialDialog" to version 4.2.1. In particular, this solves an issue, which caused the background of dialogs to be black on pre-Lollipop devices.
A minor release, which introduces the following changes:
- Updated
targetSdkVersion
to API level 25 (Android 7.1). - Updated AppCompat v7 support library to version 25.1.0.
- Updated dependency "AndroidUtil" to version 1.12.3.
- Updated dependency "AndroidMaterialDialog" to version 4.0.1. This fixes a crash on tablets in portrait mode.
- Updated dependency "AndroidMaterialValidation" to version 2.0.5.
A major release, which introduces the following features:
- It is now possible to use custom views for displaying the title, message or buttons of a preference's dialog.
- The library now uses version 4.0.0 of the dependency "AndroidMaterialDialog".
- This enables to use show or hide the dialogs of preferences by using animations.
- It also enables to specify the size and location of a preference's dialog.
- It allows to show the dialog of preferences fullscreen.
A bugfix release, which fixes the following issues:
- Updated dependency "AndroidMaterialDialog" to version 3.6.10. This fixes a problem with themes not being applied.
A feature releae, which introduces the following features:
- Added the preference
ActionPreference
, which acts as a button and displays a centered title. - It is now possible to set the hint of an
EditTextPreference
'sEditText
widget. - It is now possible to set the hints of an
ResolutionPreference
'sEditText
widgets.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.6.8.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.6.7.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.6.6.
A minor release, which introduces the following changes:
- Updated
targetSdkVersion
to API level 24 (Android 7.0). - Updated AppCompat v7 support library to version 24.2.0.
- Updated dependency "AndroidUtil" to version 1.11.1.
- Updated dependency "AndroidMaterialDialog" to version 3.6.4.
- Updated dependency "AndroidMaterialValidation" to version 2.0.4.
A feature release, which introduces the following features:
- The class
AbstractDialogPreference
has been renamed toDialogPreference
and is not abstract anymore. It can be used to show simple dialogs (optionally) containing a header, title, message and buttons. - A
setOnClickListener
-method, which allows to register a listener, which is notified, when a button of a preference's dialog is clicked, has been added to the classDialogPreference
. - A
setOnShowListener
-method, which allows to register a listener, which is notified, when a preference's dialog is shown, has been added to the classDialogPreference
. - A
setOnDismissListener
-method, which allows to register a listener, which is notified, when a preference's dialog is dismissed, has been added to the classDialogPreference
. - A
setOnCancelListener
-method, which allows to register a listener, which is notified, when a preference's dialog is canceled, has been added to the classDialogPreference
. - A
setOnKeyListener
-method, which allows to register a listener, which is notified, when a key is dispatched to a preference's dialog, has been added to the classDialogPreference
.
A bugfix release, which introduces the following changes:
- Updated dependency "AndroidMaterialValidation" to version 2.0.3. This fixes a crash when showing an
EditTextPreference
's dialog on devices with API level less than 16.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.6.3.
A feature release, which introduces the following changes:
- The
showDialogDividersOnScroll
-method is now available for all preferences, which show a dialog. - Replaced
setWidth
- andsetHeight
-methods of theResolutionPreference
with asetResolution
-method, which allows to set both values at once. This prevents inconsistencies where only one of both values is set. - Updated dependency "AndroidMaterialDialog" to version 3.6.0.
- Updated dependency "AndroidUtil" to version 1.11.0.
A bugfix release, which fixes the following issues:
A bugfix release, which introduces the following changes:
- The
OnPreferenceChangeListener
of aSwitchPreference
is now invoked, when the preference`s switch is toggled.
A feature release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.5.0. Therefore the possibility to specify, whether the divider, which is located above the custom view of a preference's dialog, should be shown, or not, is not available anymore.
- Added the possibility to set, whether the dividers, which are located above and below the list view of a
ListPreference
's orMultiChoiceListPreference
's dialog, should be shown when the list view is scrolled, or not.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.4.2.
- When no theme is specified using the theme attribute
preferenceDialogTheme
or the XML attributecustom:dialogThemeResource
, the light theme is now used instead of the dark one for the preference's dialogs.
A feature release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.4.1. This introduces the dialogs of preferences to appear slightly different.
- Theming the dialogs of preferences is now properly supported by either globally specifying a theme using the theme attribute
preferenceDialogTheme
, or by specifying a theme using the XML attributecustom:dialogThemeResource
on a per-preference basis. - It is now possible to show a divider above the button bar and/or custom view of a preference's dialog.
- The possibility to specify the control color of a
ListPreference
orMultiChoiceListPreference
has been removed as it caused problems.
A feature release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.3.0. This enables the dialog of preferences to contain a header.
- Updated AppCompat v7 support library to version 23.4.0.
A feature release, which introduces the following changes:
- It is now possible to select negative numbers using a
NumberPickerPreference
(#12) or aSeekBarPreference
. - Updated dependency "AndroidUtil" to version 1.4.11.
A bugfix release, which introduces the following changes:
- Updated dependency "AndroidUtil" to version 1.4.7, because the previous version conflicted with the Android design library.
A bugfix release, which introduces the following changes:
- Fixed faulty positions and sizes of
DialogPreferences
' widgets introduced by the previous release. - Updated dependency "AndroidUtil" to version 1.4.6.
A minor release, which introduces the following changes:
- Updated dependency "AndroidMaterialDialog" to version 3.2.3.
A minor release, which introduces the following changes:
- Updated dependency "AndroidUtil to version 1.4.5.
- Updated dependency "AndroidMaterialDialog" to version 3.2.2.
- Updated dependency "AndroidMaterialValidation" to version 3.0.2.
A minor release, which introduces the following changes:
- Updated dependency "AndroidUtil" to version 1.4.4.
- Updated dependency "AndroidMaterialDialog" to version 3.2.1 (this increases the width of a preference's dialog on smartphones).
- Updated AppCompat support library to version 23.2.1 (this prevents the example app from crashing because of a bug in the previous version. See here for details: https://code.google.com/p/android/issues/detail?id=201817).
A minor release, which introduces the following changes:
- The library is from now on distributed under the Apache License version 2.0.
- Updated dependency "AndroidUtil" to version 1.4.3.
- Updated dependency "AndroidMaterialDialog" to version 3.1.1.
- Updated dependency "AndroidMaterialValidation" to version 2.0.1.
- Updated AppCompat support library to version 23.2.0.
- Minor changes of the example app.
A minor release, which introduces the following changes:
- Version 3.1.0 of the library "AndroidMaterialDialog" is now used.
A minor release, which introduces the following changes:
- Implemented enhancement #6 by updating to version 3.0.1 of the library "AndroidMaterialDialog".
A minor release, which introduces the following changes:
- Version 3.0.0 of the library "AndroidMaterialDialog" is now used.
A major release, which introduces the following changes:
- The project has been migrated from the legacy Eclipse ADT folder structure to Android Studio. It now uses the Gradle build system and the library as well as the example app are contained by one single project.
- The library can now be added to Android apps using the Gradle dependency
com.github.michael-rapp:android-material-preferences:2.0.0
A minor release, which introduces the following changes:
- The number of columns and preview size, which is used to show colors in the dialog of a
ColorPalettePreference
has been adapted on tablets.
A feature release, which introduces the following new features:
- Added a preference, which allows to select multiple values from a list (
MultiChoiceListPreference
). - Previews of the
ColorPalettePreference
are now created asynchronously. - Round previews of the
ColorPalettePreference
are now rendered antialiased when using no border.
A feature release, which introduces the following changes:
- The library does now rely on version 1.2.0 of the library "AndroidMaterialDialog".
- Additional setter/getter methods and XML attributes have been added in order to support greater customization of preferences' dialogs. All dialog preferences do now allow to specify the message color and background of their dialogs and the
ListPreference
furthermore allows to specify the color of the list items and controls.
A feature release, which introduces the following new features:
- The preferences
NumberPickerPreference
andDigitPickerPreference
do now allow to set an unit, which is used for printing textual representations of the preferences' current numbers. - The preference
NumberPickerPreference
does now support to set the step size, the preference's number should be increased or decreased by when moving its selector wheel. - Some attributes have been renamed for greater consistency between the library's preferences.
- Fixed issue #3
A feature release, which introduces the following new features:
- Added a preference, which allows to choose a color from a predefined color palette (
ResolutionPreference
). - Added a preference, which provides a toggleable option using a
Switch
widget (SwitchPreference
). - Minor implementation and API changes for greater consistency with the Android SDK's built-in preferences.
A feature release, which introduces the following new features:
- Added a preference, which allows to enter two-dimensional image or video resolutions using two
EditText
widgets (ResolutionPreference
).
A feature release, which introduces the following new features:
- An
EditTextPreference
can now be validated by using the library "AndroidMaterialValidation".
A bugfix release, which fixes the following issues:
A feature release, which introduces the following new features:
- Validators can now be added to an
EditTextPreference
in order to validate the entered text and show error messages if needed. - Added a preference, which allows to choose a decimal number via a
NumberPicker
widget (NumberPickerPreference
). - Added a preference, which allows to choose a decimal number using multiple
NumberPicker
widgets, which allow to choose each digit individually (DigitPickerPreference
).
The first stable release, which initially provides the following preferences, which are designed according to Android 5's Material Design guidelines even on pre-Lollipop devices:
- A preference, which allows to enter a text via an
EditText
widget (EditTextPreference
). - A preference, which allows to select a value from a list (
ListPreference
). - A preference, which allows to choose a floating point value or an integer value from a continuous range via a
SeekBar
widget (SeekBarPreference
).