A beautiful and material alert dialog in android app

material alert dialog in android

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

624 total views, 2 views today

(Visited 350 times, 1 visits today)

You May Also Like

About the Author: Android Developer

This is Mohammad I am Android Application Developer. I am the founder of Android Tutorial Online blog. I am programming lover and professional blogger from India. I spend most of my time doing programming and helping other programmers. This Android tutorial online blog for learning and share Android code.
My Chatbot
Powered by Replace Me