MaterialStyledDialogs

Additional

Language
Kotlin
Version
3.0.2 (Aug 2, 2020)
Created
Feb 8, 2016
Updated
Aug 2, 2020
Owner
Javier Santos (javiersantos)
Contributors
Javier Santos (javiersantos)
Colin White (colinrtwhite)
Kelvin Wandera (wankevow)
Tomer Rosenfeld (rosenpin)
Farhad BR (beigirad)
Yoav Franco (Frayo44)
Marc Auberer (marcauberer)
Lam Fung (chkfung)
8
Activity
Badge
Generate
Download
Source code
APK file

Promotion

MaterialStyledDialogs

Android Library

Android Library that shows a beautiful and customizable Material designed dialog with header. Based on material-dialogs and inspired by this dribbble.

How to include

Add the repository to your project build.gradle:

repositories {
    jcenter()
    maven {
        url "https://jitpack.io"
    }
}

And add the library to your module build.gradle:

AndroidX

dependencies {
    implementation 'com.github.javiersantos:MaterialStyledDialogs:3.0.1'
}

Pre AndroidX (no longer supported)

dependencies {
    implementation 'com.github.javiersantos:MaterialStyledDialogs:2.2'
}

Usage

Basic Dialog

A basic dialog will show the provided title (optional) and description, using your primary color as the header background. You have access to methods such as setTitle(), setContent(), setIcon(), setCancelable(), dismiss(), etc. Customizations are explained below.

MaterialStyledDialog.Builder(this)
 .setTitle("Awesome!")
 .setDescription("What can we improve? Your feedback is always welcome.")
 .show()
Java Sample
new MaterialStyledDialog.Builder(this)
 .setTitle("Awesome!")
 .setDescription("What can we improve? Your feedback is always welcome.")
 .show();

or using the builder...

val dialog =MaterialStyledDialog.Builder(this)
 .setTitle("Awesome!")
 .setDescription("What can we improve? Your feedback is always welcome.")
 .build()
dialog.show()



Java Sample
MaterialStyledDialog dialog = new MaterialStyledDialog.Builder(this)
 .setTitle("Awesome!")
 .setDescription("What can we improve? Your feedback is always welcome.")
 .build();
...
dialog.show();