material-dialogs README

The project's README from github.com/afollestad/material-dialogs. As one markdown file: README.md.

Material Dialogs

View Releases and Changelogs

Android CI Codacy Badge License


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

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.

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:core:3.3.0'
}

Input

Input

Input Tutorial and Samples

The input module contains extensions to the core module, such as a text input dialog.

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:input:3.3.0'
}

Files

Files

Files Tutorial and Samples

The files module contains extensions to the core module, such as a file and folder chooser.

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:files:3.3.0'
}

Color

Color

Color Tutorial and Samples

The color module contains extensions to the core module, such as a color chooser.

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:color:3.3.0'
}

DateTime

DateTime

DateTime Tutorial and Samples

The datetime module contains extensions to make date, time, and date-time picker dialogs.

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:datetime:3.3.0'
}

Bottom Sheets

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!

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:bottomsheets:3.3.0'
}

Lifecycle

Lifecycle

Lifecycle Tutorial and Samples

The lifecycle module contains extensions to make dialogs work with AndroidX lifecycles.

dependencies {
  ...
  implementation 'com.afollestad.material-dialogs:lifecycle:3.3.0'
}

material-dialogs (afollestad/material-dialogs)

Searching Database…

19.5K ·GitHub
archived
这是什么?Material Dialogs 是面向 Kotlin 和 Android 的对话框 API——一个让你在应用中展示美观、流畅、可扩展对话框的库。
它是加到我 Android 应用里的库,还是一个独立应用?它是一个库,不是独立应用:在你的 Android 项目中依赖它的各个模块,然后通过它的 API 来展示对话框。core 模块是基础,其他模块都是对它的扩展。
怎么把它加到我的 Android 项目里?从 core 模块开始——入门所需的全部内容和日常使用的功能都在里面。每个模块都附有自己的教程和示例。
它支持 Java 吗,还是只能用 Kotlin?只支持 Kotlin——从 2.x.x 版本开始,这个库不再支持 Java。最后一个兼容 Java 的版本是 0.9.6.0,该版本已无人维护,不会再有修复。
这个项目还在维护吗?不在了——GitHub 仓库已经归档,开发已停止,bug 也不会再修。它仍然可以在你的应用里正常使用,但别指望有更新。
我需要是 Android 开发者才能用它吗?是的——你要在 Android 项目的 Kotlin 代码里调用它,所以它面向的是 Android(Kotlin)开发者,而不是最终用户。
它在 Android 之外的地方能运行吗,比如 iOS 或网页?不能——它是一个 Android 库,只存在于 Android 应用里,所以 Android 是它唯一支持的平台。
除了普通提示框,还有哪些类型的对话框?扩展模块提供了文本输入对话框、文件和文件夹选择器、颜色选择器,以及日期、时间和日期时间选择器,还有底部弹窗;另外还有一个 lifecycle 模块,让对话框能配合 AndroidX 生命周期使用。
对话框能以底部弹窗的形式显示吗?可以——bottomsheets 模块能把模态对话框变成底部弹窗,还能以网格形式展示一组列表项。
Creator
afollestad
Size
259.6 MB
Stars
19.5K
Age
11y
Commits · 90 Days