Skip to content
Leonardo D. Palma edited this page Mar 27, 2025 · 7 revisions

Welcome to the Documentation of the MaterialAlertDialog library.

A dialog is a type of modal window that appears in front of app content to provide critical information or ask for a decision. Dialogs disable all app functionality when they appear, and remain on screen until confirmed, dismissed, or a required action has been taken.

Dialogs are purposefully interruptive, so they should be used sparingly.

Add dependency

As a first step, add a dependency to this library to your project. How to do that is described in the usage section of this repository. Gradle is the recommended way of using this library as a dependency.

Gradle

  • Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:
allprojects {
  repositories {
      maven { url 'https://jitpack.io' }
      }
  }
  • Step 2. Add the dependency
dependencies {
    implementation 'com.github.leodan11:MaterialAlertDialog:{latest_version}'
}

Clone this wiki locally