A beautiful and material alert dialog in android app

material alert dialog in android

AlertDialog for Android, a beautiful and material alert dialog to use in your android app.

material alert dialog in android

Setup

The simplest way to use AlertDialog is to add the library as dependency to your build.

Gradle

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

Step 2. Add the dependency

Usage

Show material progress

You can customize progress bar dynamically with materialish-progress methods via KAlertDialog.getProgressHelper():

  • resetCount()
  • isSpinning()
  • spin()
  • stopSpinning()
  • getProgress()
  • setProgress(float progress)
  • setInstantProgress(float progress)
  • getCircleRadius()
  • setCircleRadius(int circleRadius)
  • getBarWidth()
  • setBarWidth(int barWidth)
  • getBarColor()
  • setBarColor(int barColor)
  • getRimWidth()
  • setRimWidth(int rimWidth)
  • getRimColor()
  • setRimColor(int rimColor)
  • getSpinSpeed()
  • setSpinSpeed(float spinSpeed)

A basic message:

A title with a text under:

A error message:

A warning message:

A success message:

A message with a custom icon:

Bind the listener to confirm button:

Show the cancel button and bind listener to it:

Change the dialog style upon confirming:

GitHub

TutorialsAndroid/KAlertDialog

246

AlertDialog for Android, a beautiful and material to use in your app. — Read more latest commit to the master branch on 3-25-2019Download as zipping

 6,654 total views,  1 views today

(Visited 3,556 times, 1 visits today)