afollestad /material-dialogs
😍 A beautiful, fluid, and extensible dialogs API for Kotlin & Android.
★ 19,530⑂ 3,062👁 0⑃ 279● 0▤ 92
-1
日增长
19,530
stars
3,062
forks
0
watchers
279
prs
0
issues
92
releases
README
Material Dialogs
View Releases and Changelogs
---
!Showcase
Modules
The core module is the fundamental module that you need in order to use this library. The others
are extensions to core.
Please note that since Material Dialogs 2.x.x, this library only supports Kotlin. The latest Java version is 0.9.6.0 and can be found here. Note that 0.9.6.0 is unsupported, bugs & improvements will not be made to that version.
Core

Core Tutorial and Samples
The core module contains everything you need to get started with the library. It contains all
core and normal-use functionality.
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:core:3.3.0'
}
Input

Input Tutorial and Samples
The input module contains extensions to the core module, such as a text input dialog.
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:input:3.3.0'
}
Files

Files Tutorial and Samples
The files module contains extensions to the core module, such as a file and folder chooser.
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:files:3.3.0'
}
Color

Color Tutorial and Samples
The color module contains extensions to the core module, such as a color chooser.
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:color:3.3.0'
}
DateTime

DateTime Tutorial and Samples
The datetime module contains extensions to make date, time, and date-time picker dialogs.
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:datetime:3.3.0'
}
Bottom Sheets

Bottom Sheets Tutorial and Samples
The bottomsheets module contains extensions to turn modal dialogs into bottom sheets, among
other functionality like showing a grid of items. Be sure to checkout the sample project for this,
too!
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:bottomsheets:3.3.0'
}
Lifecycle

Lifecycle Tutorial and Samples
The lifecycle module contains extensions to make dialogs work with AndroidX lifecycles.
gradle
dependencies {
...
implementation 'com.afollestad.material-dialogs:lifecycle:3.3.0'
}Latest release
3.3.0 3.3.0 2020-02-18Added md_line_spacing_body global theme attribute, which sets a global default for message line spacing. See 1903. Added some assertions and sanity checks to avoid choice list adapter out of bounds crashes. See 1906. Corner radius should not apply to the bottom of bottom sheet dialogs. See 1941. Fix dialog titles being cut off with custom fonts. See 1936. If noVerticalPadding is set with customView(...), padding is not applied to the bottom of the content ScrollView if scrollable is enabled. Resolves 1834. Input dialog styling is not enforced by the dialog. The global default for