This repository has been archived by the owner on Sep 3, 2023. It is now read-only.
Releases: afollestad/material-dialogs
Releases · afollestad/material-dialogs
0.8.5.5
- Added
chooseButton()
to theFileChooserDialog.Builder
. - Updated for AppCompat 23.2.0, updated the Gradle plugin.
FileChooserDialog
sorts folders to the top.- The
FileChooserDialog.Builder
andFolderChooserDialog.Builder
have an optionaltag(String)
setter. The dialog callbacks have been changed to pass the dialog instance, so you can retrieve this tag. - Fixes for input dialog keyboard show/hide logic,
- Other fixes and improvements.
0.8.5.4
- The
ColorChooserDialog
only accepts alpha numeric characters in the custom color input field. - Added ID/tag values to
MaterialSimpleListItem
. - The
TintHelper
can tint the cursor ofEditText
's. - Bug fixes to permission requests in the
FileChooserDialog
. - Added
canceledOnTouchOutside()
to the Builder. - Lots of other misc bug fixes and tweaks.
0.8.5.3
- Added a
FileChooserDialog
, which is likeFolderChooserDialog
but allows file selection. See the README and sample project for usage. - You can now use icons with the Material preferences.
- Added
app:useStockLayout
option for the preference classes. Setting it to true will override using the custom Material preference layout provided by this library. - Re-enabled JavaDoc generation.
- Other bug fixes and improvements, including a few for the preference classes.
0.8.5.2
- Added
getIconView()
toMaterialDialog
. - Many, many fixes to all of the preference classes. If you use them, make sure you update! (if I were to go into detail, the amount of list items in these release notes would more than double)
- If no preselected color is set in the
ColorChooserDialog
, it will default to the presets view rather than the custom view.
0.8.5.1
- Lots of bug fixes to the
ColorChooserDialog
.- Its state is maintained correctly though device orientation changes.
- The RGB labels are updated initially in the custom color chooser.
- A cancel button is shown in the custom chooser too, not only the preset chooser.
- Fixed an issue with permissions in the
FolderChooserDialog
below API 15. - Updated Proguard rules to avoid issues with progress dialogs.
- Added
linkColor()
and associated variants to the dialogBuilder
. Added amd_link_color
global theming attribute to go along with it. - Items accepts varargs of Strings in addition to arrays like before. E.g., you can use
.items("Hello", "Hi", "Hey")
rather than.items(new String[] { "Hello", "Hi", "Hey" })
. - Enabled JavaDoc generation for JitPack.
- Other bug fixes and error avoidances.
0.8.5.0
- Added an alpha chooser to the
ColorChooserDialog
(in custom color selection, not for presets). It can be disabled withallowUserColorInputAlpha(false)
. - Long pressing preset colors in the
ColorChooserDialog
will show the color hex in a tooltip. - Fixed a crash when
allowUserColorInput()
is set to false in aColorChooserDialog
in accent mode. inputRange()
annotations are fixed, passing -1 or 0 for the max length indicates no max length.- Fixed the RTL mode for the default Material preference layouts.
- Added
getListView()
method toMaterialListPreference
. - Fixed some issues with radio buttons having the wrong selection states in multi-select list dialogs.
- If you set a custom layout to a Material preference from XML (using
android:layout
), your layout won't be overridden with this library's preference layout. - If you set a min length to an input dialog, but no max length, the counter label is hidden (so it doesn't display x/-1).
- Other bug and crash fixes/avoidance.
0.8.4.2
- Lots of fixes to selection logic in the
ColorChooserDialog
. - The
ColorChooserDialog
now by default allows users to specify colors using a hexadecimal string or RGB values, in addition to the preset values. This feature can be disabled; see User Color Input. - Other misc bug fixes and improvements.
Release 0.8.4.0
This is mostly a visual update.
- @pluscubed found and confirmed the news of AppCompat 23.1.0's dialogs now having proper limitations on their width for tablets, so we removed our own custom logic for that. This will help with consistency. Note that everything done in this library tries to very closely mimic what the design guidelines display, which even stock dialogs do not do the best.
- Tweaked padding below the titles in list dialogs a little bit, there was too much before.
- A default custom layout is used for the Material preferences in preference screens, so that the text lines up with the content inset of your Activities (where the back arrow is in your toolbar). Try out the sample to see this in action!
- If you copied how the sample project displayed preferences before, you should remove the
android:layout
attribute from your preference XML and let them use Material Dialogs' improved version.
- If you copied how the sample project displayed preferences before, you should remove the
- Google libs 23.1.0.
- Updated the art in the README!
Release 0.8.3.0
colorControlHighlight
is used for the default button ripple color instead ofcolorControlActivated
.- Renamed
itemColor(int)
toitemsColor(int)
, along with the resource and attribute variations for consistency with other method names. The original ones will still work for a while, they're just marked as deprecated. - Added a new
itemsIds()
API (see Assigning IDs to List Item Views), which allows you to assign IDs to views in list dialogs. - Each
ColorChooserDialog
variant (primary, accent, or custom colors) use a different Fragment tag, so you can differentiate between them. Added a staticfindVisible(Context, String)
method toColorChooserDialog
which allows you to retrieve a visible color chooser dialog (see Finding Visible Dialogs). - The
ColorChooserDialog
won't crash when using custom colors with no sub colors, only top level colors. - Added headers and organization to the sample project's UI, making it easier to explore what this library can do. ButterKnife is also used to avoid the need to manually set click listeners to all the buttons, further improving readability of the sample code.
- Normal lists, single choice lists, and multi choice lists will look better when their items have multiple lines of text. Although it is discouraged from UX perspective.
MaterialProgressBar
is now a Gradle dependency instead of integrating its classes into the library code to make it easier to keep them up to date. These classes are only supported and used above API 14.- Other fixes and tweaks throughout.
Release 0.8.2.0
ButtonCallback
has been deprecated.MaterialDialog.Builder
now hasonPositive()
,onNeutral()
,onNegative()
, andonAny()
methods that allow you to receive callbacks for all or specific action buttons. These methods all use aninterface
instead of anabstract class
for the callback, so classes can now implement the interface.- Lots of improvements and fixes to
MaterialSimpleListAdapter
andMaterialSimpleListItem
. There's some new features and the layouts were much improved. See the Simple List Dialogs section in the README for details and examples. - The
ColorChooserDialog
now allows you to specify custom colors. See the Color Chooser Dialogs section in the README for details and examples. - The
MaterialEditTextPreference
will no longer receive two preference changed events when you press the positive action button. - The
FolderChooserDialog
now respects the value specified for the choose button in theBuilder
. - The library no longer forces the use of Support Library v23 in your apps, it will work with older versions.
- Simplified the sample, especially
MainActivity
, using ButterKnife.
The library has passed 4,000 stars, thanks everyone!