afollestad/material-dialogs


😍 A beautiful, fluid, and extensible dialogs API for Kotlin & Android. https://af.codes

Download


Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}
	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.afollestad:material-dialogs:3.3.0'
	}
	<dependency>
	    <groupId>com.github.afollestad</groupId>
	    <artifactId>material-dialogs</artifactId>
	    <version>3.3.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.afollestad" % "material-dialogs" % "3.3.0"
        
        

                            
    :dependencies [[com.github.afollestad/material-dialogs "3.3.0"]]
        
        

Readme


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.

<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/main/art/basic_with_buttons.png" width="250px" />
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.

<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/main/art/input.png" width="250px" />
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.

<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/main/art/file_chooser.png" width="250px" />
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.

<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/main/art/color_chooser.png" width="250px" />
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.

<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/main/art/datetimepicker.png" width="500px" />
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!

<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/main/art/bottomsheet_customview.png" width="250px" />
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'
}