Material Design Hub

Friday, February 27, 2015

SweetAlert Dialog android library

9:43 AM

SweetAlert Dialog 


 Android Library


Description:-  SweetAlert for Android, a beautiful and clever alert dialog.

Min SDK;- 9 (Android 2.3–2.3.2 Gingerbread)

watch the demo 




How To Use SweetAlert Dialog  Library :- The simplest way to use SweetAlertDialog is to add the library as aar dependency to your build.

Maven
<dependency>
  <groupId>cn.pedant.sweetalert</groupId>
  <artifactId>library</artifactId>
  <version>1.3</version>
  <type>aar</type>
</dependency>
Gradle
repositories {
    mavenCentral()
}

dependencies {
    compile 'cn.pedant.sweetalert:library:1.3'
}
Usage

SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Loading");
pDialog.setCancelable(false);
pDialog.show();
Please Join our Facebook  Group and Page

Facebook group: Android controls

Facebook page: Android Controls

Subscribe YouTube channel: Click here

SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

1 Comment

  1. Really, I was looking just for this... But common people like me, strongly require a noobie's tutorial on how to actually install and make it work. I've found none anywhere. Also, I wonder why this is not on XDA, nor why it isn't as popular as it should be

    ReplyDelete