核心模块是使用本库所必需的基础模块。其他模块是对核心模块的扩展。
请注意,自 Material Dialogs 2.x.x 版本起,本库仅支持 Kotlin。最新的 Java 版本是0.9.6.0
,可在此处找到。请注意,0.9.6.0 版本已不受支持,不会对该版本进行错误修复和改进。
core
模块包含了开始使用本库所需的一切内容。它包含了所有核心功能和常规使用功能。
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:core:3.3.1'
}
input
模块包含对核心模块的扩展,例如文本输入对话框。
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:input:3.3.1'
}
files
模块包含对核心模块的扩展,例如文件和文件夹选择器。
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:files:3.3.1'
}
color
模块包含对核心模块的扩展,例如颜色选择器。
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:color:3.3.1'
}
datetime
模块包含用于创建日期、时间和日期时间选择器对话框的扩展功能。
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:datetime:3.3.1'
}
bottomsheets
模块包含将模态对话框转换为底部表单的扩展功能,以及其他功能,例如显示项目网格。也一定要查看此模块的示例项目!
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:bottomsheets:3.3.1'
}
lifecycle
模块包含使对话框与 AndroidX 生命周期协同工作的扩展功能。
dependencies {
...
implementation 'io.github.heart-beats.material-dialogs:lifecycle:3.3.1'
}