[
  {
    "path": "README.md",
    "content": "Sweet Alert Dialog\n===================\nSweetAlert for Android, a beautiful and clever alert dialog\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Sweet%20Alert%20Dialog-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1065)\n\n[中文版](https://github.com/pedant/sweet-alert-dialog/blob/master/README.zh.md)\n\nInspired by JavaScript [SweetAlert](http://tristanedwards.me/sweetalert)\n\n[Demo Download](https://github.com/pedant/sweet-alert-dialog/releases/download/v1.1/sweet-alert-sample-v1.1.apk)\n\n## ScreenShot\n![image](https://github.com/pedant/sweet-alert-dialog/raw/master/change_type.gif)\n\n## Setup\nThe simplest way to use SweetAlertDialog is to add the library as aar dependency to your build.\n\n**Maven**\n\n    <dependency>\n      <groupId>cn.pedant.sweetalert</groupId>\n      <artifactId>library</artifactId>\n      <version>1.3</version>\n      <type>aar</type>\n    </dependency>\n\n**Gradle**\n\n    repositories {\n        mavenCentral()\n    }\n\n    dependencies {\n        compile 'cn.pedant.sweetalert:library:1.3'\n    }\n\n## Usage\n\nshow material progress\n\n    SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);\n    pDialog.getProgressHelper().setBarColor(Color.parseColor(\"#A5DC86\"));\n    pDialog.setTitleText(\"Loading\");\n    pDialog.setCancelable(false);\n    pDialog.show();\n\n![image](https://github.com/pedant/sweet-alert-dialog/raw/master/play_progress.gif)\n\nYou can customize progress bar dynamically with materialish-progress methods via **SweetAlertDialog.getProgressHelper()**:\n- resetCount()\n- isSpinning()\n- spin()\n- stopSpinning()\n- getProgress()\n- setProgress(float progress)\n- setInstantProgress(float progress)\n- getCircleRadius()\n- setCircleRadius(int circleRadius)\n- getBarWidth()\n- setBarWidth(int barWidth)\n- getBarColor()\n- setBarColor(int barColor)\n- getRimWidth()\n- setRimWidth(int rimWidth)\n- getRimColor()\n- setRimColor(int rimColor)\n- getSpinSpeed()\n- setSpinSpeed(float spinSpeed)\n\nthanks to the project [materialish-progress](https://github.com/pnikosis/materialish-progress) and [@croccio](https://github.com/croccio) participation.\n\nmore usages about progress, please see the sample.\n\nA basic message：\n\n    new SweetAlertDialog(this)\n        .setTitleText(\"Here's a message!\")\n        .show();\n\nA title with a text under：\n\n    new SweetAlertDialog(this)\n        .setTitleText(\"Here's a message!\")\n        .setContentText(\"It's pretty, isn't it?\")\n        .show();\n\nA error message：\n\n    new SweetAlertDialog(this, SweetAlertDialog.ERROR_TYPE)\n        .setTitleText(\"Oops...\")\n        .setContentText(\"Something went wrong!\")\n        .show();\n\nA warning message：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .show();\n\nA success message：\n\n    new SweetAlertDialog(this, SweetAlertDialog.SUCCESS_TYPE)\n        .setTitleText(\"Good job!\")\n        .setContentText(\"You clicked the button!\")\n        .show();\n\nA message with a custom icon：\n\n    new SweetAlertDialog(this, SweetAlertDialog.CUSTOM_IMAGE_TYPE)\n        .setTitleText(\"Sweet!\")\n        .setContentText(\"Here's a custom image.\")\n        .setCustomImage(R.drawable.custom_img)\n        .show();\n\nBind the listener to confirm button：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog.dismissWithAnimation();\n            }\n        })\n        .show();\n\nShow the cancel button and bind listener to it：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setCancelText(\"No,cancel plx!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .showCancelButton(true)\n        .setCancelClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog.cancel();\n            }\n        })\n        .show();\n\n**Change** the dialog style upon confirming：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog\n                    .setTitleText(\"Deleted!\")\n                    .setContentText(\"Your imaginary file has been deleted!\")\n                    .setConfirmText(\"OK\")\n                    .setConfirmClickListener(null)\n                    .changeAlertType(SweetAlertDialog.SUCCESS_TYPE);\n            }\n        })\n        .show();\n\n[more android tech shares: pedant.cn](http://www.pedant.cn)\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2014 Pedant(http://pedant.cn)\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n\n\n"
  },
  {
    "path": "README.zh.md",
    "content": "Sweet Alert Dialog\n===================\nAndroid版的SweetAlert，清新文艺，快意灵动的甜心弹框\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Sweet%20Alert%20Dialog-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1065)\n\n[English Version](https://github.com/pedant/sweet-alert-dialog/blob/master/README.md)\n\n灵感来源于JS版[SweetAlert](http://tristanedwards.me/sweetalert)\n\n[Demo下载](https://github.com/pedant/sweet-alert-dialog/releases/download/v1.1/sweet-alert-sample-v1.1.apk)\n\n## 运行示意图\n![image](https://github.com/pedant/sweet-alert-dialog/raw/master/change_type.gif)\n\n## 安装\n使用SweetAlertDialog最简单的办法就是像下面这样添加项目依赖。\n\n**Maven**\n\n    <dependency>\n      <groupId>cn.pedant.sweetalert</groupId>\n      <artifactId>library</artifactId>\n      <version>1.3</version>\n      <type>aar</type>\n    </dependency>\n\n**Gradle**\n\n    repositories {\n        mavenCentral()\n    }\n\n    dependencies {\n        compile 'cn.pedant.sweetalert:library:1.3'\n    }\n\n## 如何开始\n显示Material进度样式\n\n    SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);\n    pDialog.getProgressHelper().setBarColor(Color.parseColor(\"#A5DC86\"));\n    pDialog.setTitleText(\"Loading\");\n    pDialog.setCancelable(false);\n    pDialog.show();\n\n![image](https://github.com/pedant/sweet-alert-dialog/raw/master/play_progress.gif)\n\n你可以通过**SweetAlertDialog.getProgressHelper()**调用materialish-progress中下面这些方法，来动态改变进度条的样式\n- resetCount()\n- isSpinning()\n- spin()\n- stopSpinning()\n- getProgress()\n- setProgress(float progress)\n- setInstantProgress(float progress)\n- getCircleRadius()\n- setCircleRadius(int circleRadius)\n- getBarWidth()\n- setBarWidth(int barWidth)\n- getBarColor()\n- setBarColor(int barColor)\n- getRimWidth()\n- setRimWidth(int rimWidth)\n- getRimColor()\n- setRimColor(int rimColor)\n- getSpinSpeed()\n- setSpinSpeed(float spinSpeed)\n\n感谢[materialish-progress](https://github.com/pnikosis/materialish-progress)项目以及[@croccio](https://github.com/croccio)的参与。\n\n更多关于进度条的用法，请参见样例代码。\n\n只显示标题：\n\n    new SweetAlertDialog(this)\n        .setTitleText(\"Here's a message!\")\n        .show();\n\n显示标题和内容：\n\n    new SweetAlertDialog(this)\n        .setTitleText(\"Here's a message!\")\n        .setContentText(\"It's pretty, isn't it?\")\n        .show();\n\n显示异常样式：\n\n    new SweetAlertDialog(this, SweetAlertDialog.ERROR_TYPE)\n        .setTitleText(\"Oops...\")\n        .setContentText(\"Something went wrong!\")\n        .show();\n\n显示警告样式：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .show();\n\n显示成功完成样式：\n\n    new SweetAlertDialog(this, SweetAlertDialog.SUCCESS_TYPE)\n        .setTitleText(\"Good job!\")\n        .setContentText(\"You clicked the button!\")\n        .show();\n\n自定义头部图像：\n\n    new SweetAlertDialog(this, SweetAlertDialog.CUSTOM_IMAGE_TYPE)\n        .setTitleText(\"Sweet!\")\n        .setContentText(\"Here's a custom image.\")\n        .setCustomImage(R.drawable.custom_img)\n        .show();\n\n确认事件绑定：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog.dismissWithAnimation();\n            }\n        })\n        .show();\n\n显示取消按钮及事件绑定：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setCancelText(\"No,cancel plx!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .showCancelButton(true)\n        .setCancelClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog.cancel();\n            }\n        })\n        .show();\n\n确认后**切换**对话框样式：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog\n                    .setTitleText(\"Deleted!\")\n                    .setContentText(\"Your imaginary file has been deleted!\")\n                    .setConfirmText(\"OK\")\n                    .setConfirmClickListener(null)\n                    .changeAlertType(SweetAlertDialog.SUCCESS_TYPE);\n            }\n        })\n        .show();\n\n[更多Android原创技术分享见: pedant.cn](http://www.pedant.cn)\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2014 Pedant(http://pedant.cn)\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n\n\n"
  },
  {
    "path": "build.gradle",
    "content": "buildscript {\n    repositories {\n        mavenCentral()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:0.14.1'\n    }\n}\n\next {\n    compileSdkVersion = 21\n    buildToolsVersion = \"19.1.0\"\n}\n\nallprojects {\n    repositories {\n        mavenCentral()\n    }\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Tue Dec 02 17:43:17 CET 2014\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-2.2.1-all.zip"
  },
  {
    "path": "gradle.properties",
    "content": "VERSION_NAME=1.3\nVERSION_CODE=4\nGROUP=cn.pedant.sweetalert\n\nPOM_DESCRIPTION=SweetAlert for Android, a beautiful and clever alert dialog.\nPOM_URL=https://github.com/pedant/sweet-alert-dialog\nPOM_SCM_URL=https://github.com/pedant/sweet-alert-dialog\nPOM_SCM_CONNECTION=scm:git@github.com:pedant/sweet-alert-dialog.git\nPOM_SCM_DEV_CONNECTION=scm:git@github.com:pedant/sweet-alert-dialog.git\nPOM_LICENCE_NAME=The MIT License\nPOM_LICENCE_URL=http://opensource.org/licenses/MIT\nPOM_LICENCE_DIST=repo\nPOM_DEVELOPER_ID=pedant\nPOM_DEVELOPER_NAME=Pedant\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# For Cygwin, ensure paths are in UNIX format before anything is touched.\nif $cygwin ; then\n    [ -n \"$JAVA_HOME\" ] && JAVA_HOME=`cygpath --unix \"$JAVA_HOME\"`\nfi\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >&-\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >&-\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "library/build.gradle",
    "content": "apply plugin: 'com.android.library'\n\nversion = VERSION_NAME\ngroup = GROUP\n\nandroid {\n    compileSdkVersion rootProject.ext.compileSdkVersion\n    buildToolsVersion rootProject.ext.buildToolsVersion\n\n    defaultConfig {\n        minSdkVersion 9\n    }\n\n    lintOptions {\n        abortOnError false\n    }\n}\n\ndependencies {\n    compile 'com.pnikosis:materialish-progress:1.0'\n}\n\napply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'"
  },
  {
    "path": "library/gradle.properties",
    "content": "POM_NAME=SweetAlertDialog-Library\nPOM_ARTIFACT_ID=library\nPOM_PACKAGING=aar"
  },
  {
    "path": "library/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\npackage=\"cn.pedant.SweetAlert\"\nandroid:versionCode=\"2\"\nandroid:versionName=\"1.1\">\n\n<uses-sdk android:minSdkVersion=\"9\" android:targetSdkVersion=\"17\"/>\n\n<application />\n\n</manifest>"
  },
  {
    "path": "library/src/main/java/cn/pedant/SweetAlert/OptAnimationLoader.java",
    "content": "package cn.pedant.SweetAlert;\n\nimport android.content.Context;\nimport android.content.res.Resources;\nimport android.content.res.XmlResourceParser;\nimport android.util.AttributeSet;\nimport android.util.Xml;\nimport android.view.animation.*;\nimport org.xmlpull.v1.XmlPullParser;\nimport org.xmlpull.v1.XmlPullParserException;\n\nimport java.io.IOException;\n\npublic class OptAnimationLoader {\n\n    public static Animation loadAnimation(Context context, int id)\n            throws Resources.NotFoundException {\n\n        XmlResourceParser parser = null;\n        try {\n            parser = context.getResources().getAnimation(id);\n            return createAnimationFromXml(context, parser);\n        } catch (XmlPullParserException ex) {\n            Resources.NotFoundException rnf = new Resources.NotFoundException(\"Can't load animation resource ID #0x\" +\n                    Integer.toHexString(id));\n            rnf.initCause(ex);\n            throw rnf;\n        } catch (IOException ex) {\n            Resources.NotFoundException rnf = new Resources.NotFoundException(\"Can't load animation resource ID #0x\" +\n                    Integer.toHexString(id));\n            rnf.initCause(ex);\n            throw rnf;\n        } finally {\n            if (parser != null) parser.close();\n        }\n    }\n\n    private static Animation createAnimationFromXml(Context c, XmlPullParser parser)\n            throws XmlPullParserException, IOException {\n\n        return createAnimationFromXml(c, parser, null, Xml.asAttributeSet(parser));\n    }\n\n    private static Animation createAnimationFromXml(Context c, XmlPullParser parser,\n                                                    AnimationSet parent, AttributeSet attrs) throws XmlPullParserException, IOException {\n\n        Animation anim = null;\n\n        // Make sure we are on a start tag.\n        int type;\n        int depth = parser.getDepth();\n\n        while (((type=parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)\n                && type != XmlPullParser.END_DOCUMENT) {\n\n            if (type != XmlPullParser.START_TAG) {\n                continue;\n            }\n\n            String  name = parser.getName();\n\n            if (name.equals(\"set\")) {\n                anim = new AnimationSet(c, attrs);\n                createAnimationFromXml(c, parser, (AnimationSet)anim, attrs);\n            } else if (name.equals(\"alpha\")) {\n                anim = new AlphaAnimation(c, attrs);\n            } else if (name.equals(\"scale\")) {\n                anim = new ScaleAnimation(c, attrs);\n            }  else if (name.equals(\"rotate\")) {\n                anim = new RotateAnimation(c, attrs);\n            }  else if (name.equals(\"translate\")) {\n                anim = new TranslateAnimation(c, attrs);\n            } else {\n                try {\n                    anim = (Animation) Class.forName(name).getConstructor(Context.class, AttributeSet.class).newInstance(c, attrs);\n                } catch (Exception te) {\n                    throw new RuntimeException(\"Unknown animation name: \" + parser.getName() + \" error:\" + te.getMessage());\n                }\n            }\n\n            if (parent != null) {\n                parent.addAnimation(anim);\n            }\n        }\n\n        return anim;\n\n    }\n}\n"
  },
  {
    "path": "library/src/main/java/cn/pedant/SweetAlert/ProgressHelper.java",
    "content": "package cn.pedant.SweetAlert;\n\nimport android.content.Context;\n\nimport com.pnikosis.materialishprogress.ProgressWheel;\n\npublic class ProgressHelper {\n    private ProgressWheel mProgressWheel;\n    private boolean mToSpin;\n    private float mSpinSpeed;\n    private int mBarWidth;\n    private int mBarColor;\n    private int mRimWidth;\n    private int mRimColor;\n    private boolean mIsInstantProgress;\n    private float mProgressVal;\n    private int mCircleRadius;\n\n    public ProgressHelper(Context ctx) {\n        mToSpin = true;\n        mSpinSpeed = 0.75f;\n        mBarWidth = ctx.getResources().getDimensionPixelSize(R.dimen.common_circle_width) + 1;\n        mBarColor = ctx.getResources().getColor(R.color.success_stroke_color);\n        mRimWidth = 0;\n        mRimColor = 0x00000000;\n        mIsInstantProgress = false;\n        mProgressVal = -1;\n        mCircleRadius = ctx.getResources().getDimensionPixelOffset(R.dimen.progress_circle_radius);\n    }\n\n    public ProgressWheel getProgressWheel () {\n        return mProgressWheel;\n    }\n\n    public void setProgressWheel (ProgressWheel progressWheel) {\n        mProgressWheel = progressWheel;\n        updatePropsIfNeed();\n    }\n\n    private void updatePropsIfNeed () {\n        if (mProgressWheel != null) {\n            if (!mToSpin && mProgressWheel.isSpinning()) {\n                mProgressWheel.stopSpinning();\n            } else if (mToSpin && !mProgressWheel.isSpinning()) {\n                mProgressWheel.spin();\n            }\n            if (mSpinSpeed != mProgressWheel.getSpinSpeed()) {\n                mProgressWheel.setSpinSpeed(mSpinSpeed);\n            }\n            if (mBarWidth != mProgressWheel.getBarWidth()) {\n                mProgressWheel.setBarWidth(mBarWidth);\n            }\n            if (mBarColor != mProgressWheel.getBarColor()) {\n                mProgressWheel.setBarColor(mBarColor);\n            }\n            if (mRimWidth != mProgressWheel.getRimWidth()) {\n                mProgressWheel.setRimWidth(mRimWidth);\n            }\n            if (mRimColor != mProgressWheel.getRimColor()) {\n                mProgressWheel.setRimColor(mRimColor);\n            }\n            if (mProgressVal != mProgressWheel.getProgress()) {\n                if (mIsInstantProgress) {\n                    mProgressWheel.setInstantProgress(mProgressVal);\n                } else {\n                    mProgressWheel.setProgress(mProgressVal);\n                }\n            }\n            if (mCircleRadius != mProgressWheel.getCircleRadius()) {\n                mProgressWheel.setCircleRadius(mCircleRadius);\n            }\n        }\n    }\n\n    public void resetCount() {\n        if (mProgressWheel != null) {\n            mProgressWheel.resetCount();\n        }\n    }\n\n    public boolean isSpinning() {\n        return mToSpin;\n    }\n\n    public void spin() {\n        mToSpin = true;\n        updatePropsIfNeed();\n    }\n\n    public void stopSpinning() {\n        mToSpin = false;\n        updatePropsIfNeed();\n    }\n\n    public float getProgress() {\n        return mProgressVal;\n    }\n\n    public void setProgress(float progress) {\n        mIsInstantProgress = false;\n        mProgressVal = progress;\n        updatePropsIfNeed();\n    }\n\n    public void setInstantProgress(float progress) {\n        mProgressVal = progress;\n        mIsInstantProgress = true;\n        updatePropsIfNeed();\n    }\n\n    public int getCircleRadius() {\n        return mCircleRadius;\n    }\n\n    /**\n     * @param circleRadius units using pixel\n     * **/\n    public void setCircleRadius(int circleRadius) {\n        mCircleRadius = circleRadius;\n        updatePropsIfNeed();\n    }\n\n    public int getBarWidth() {\n        return mBarWidth;\n    }\n\n    public void setBarWidth(int barWidth) {\n        mBarWidth = barWidth;\n        updatePropsIfNeed();\n    }\n\n    public int getBarColor() {\n        return mBarColor;\n    }\n\n    public void setBarColor(int barColor) {\n        mBarColor = barColor;\n        updatePropsIfNeed();\n    }\n\n    public int getRimWidth() {\n        return mRimWidth;\n    }\n\n    public void setRimWidth(int rimWidth) {\n        mRimWidth = rimWidth;\n        updatePropsIfNeed();\n    }\n\n    public int getRimColor() {\n        return mRimColor;\n    }\n\n    public void setRimColor(int rimColor) {\n        mRimColor = rimColor;\n        updatePropsIfNeed();\n    }\n\n    public float getSpinSpeed() {\n        return mSpinSpeed;\n    }\n\n    public void setSpinSpeed(float spinSpeed) {\n        mSpinSpeed = spinSpeed;\n        updatePropsIfNeed();\n    }\n}\n"
  },
  {
    "path": "library/src/main/java/cn/pedant/SweetAlert/Rotate3dAnimation.java",
    "content": "package cn.pedant.SweetAlert;\n\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.graphics.Camera;\nimport android.graphics.Matrix;\nimport android.util.AttributeSet;\nimport android.util.TypedValue;\nimport android.view.animation.Animation;\nimport android.view.animation.Transformation;\n\npublic class Rotate3dAnimation extends Animation {\n    private int mPivotXType = ABSOLUTE;\n    private int mPivotYType = ABSOLUTE;\n    private float mPivotXValue = 0.0f;\n    private float mPivotYValue = 0.0f;\n\n    private float mFromDegrees;\n    private float mToDegrees;\n    private float mPivotX;\n    private float mPivotY;\n    private Camera mCamera;\n    private int mRollType;\n\n    public static final int ROLL_BY_X = 0;\n    public static final int ROLL_BY_Y = 1;\n    public static final int ROLL_BY_Z = 2;\n\n    protected static class Description {\n        public int type;\n        public float value;\n    }\n\n    Description parseValue(TypedValue value) {\n        Description d = new Description();\n        if (value == null) {\n            d.type = ABSOLUTE;\n            d.value = 0;\n        } else {\n            if (value.type == TypedValue.TYPE_FRACTION) {\n                d.type = (value.data & TypedValue.COMPLEX_UNIT_MASK) ==\n                        TypedValue.COMPLEX_UNIT_FRACTION_PARENT ?\n                        RELATIVE_TO_PARENT : RELATIVE_TO_SELF;\n                d.value = TypedValue.complexToFloat(value.data);\n                return d;\n            } else if (value.type == TypedValue.TYPE_FLOAT) {\n                d.type = ABSOLUTE;\n                d.value = value.getFloat();\n                return d;\n            } else if (value.type >= TypedValue.TYPE_FIRST_INT &&\n                    value.type <= TypedValue.TYPE_LAST_INT) {\n                d.type = ABSOLUTE;\n                d.value = value.data;\n                return d;\n            }\n        }\n\n        d.type = ABSOLUTE;\n        d.value = 0.0f;\n\n        return d;\n    }\n\n    public Rotate3dAnimation (Context context, AttributeSet attrs) {\n        super(context, attrs);\n\n        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Rotate3dAnimation);\n\n        mFromDegrees = a.getFloat(R.styleable.Rotate3dAnimation_fromDeg, 0.0f);\n        mToDegrees = a.getFloat(R.styleable.Rotate3dAnimation_toDeg, 0.0f);\n        mRollType = a.getInt(R.styleable.Rotate3dAnimation_rollType, ROLL_BY_X);\n        Description d = parseValue(a.peekValue(R.styleable.Rotate3dAnimation_pivotX));\n        mPivotXType = d.type;\n        mPivotXValue = d.value;\n\n        d = parseValue(a.peekValue(R.styleable.Rotate3dAnimation_pivotY));\n        mPivotYType = d.type;\n        mPivotYValue = d.value;\n\n        a.recycle();\n\n        initializePivotPoint();\n    }\n\n    public Rotate3dAnimation (int rollType, float fromDegrees, float toDegrees) {\n        mRollType = rollType;\n        mFromDegrees = fromDegrees;\n        mToDegrees = toDegrees;\n        mPivotX = 0.0f;\n        mPivotY = 0.0f;\n    }\n\n    public Rotate3dAnimation (int rollType, float fromDegrees, float toDegrees, float pivotX, float pivotY) {\n        mRollType = rollType;\n        mFromDegrees = fromDegrees;\n        mToDegrees = toDegrees;\n\n        mPivotXType = ABSOLUTE;\n        mPivotYType = ABSOLUTE;\n        mPivotXValue = pivotX;\n        mPivotYValue = pivotY;\n        initializePivotPoint();\n    }\n\n    public Rotate3dAnimation (int rollType, float fromDegrees, float toDegrees, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue) {\n        mRollType = rollType;\n        mFromDegrees = fromDegrees;\n        mToDegrees = toDegrees;\n\n        mPivotXValue = pivotXValue;\n        mPivotXType = pivotXType;\n        mPivotYValue = pivotYValue;\n        mPivotYType = pivotYType;\n        initializePivotPoint();\n    }\n\n    private void initializePivotPoint() {\n        if (mPivotXType == ABSOLUTE) {\n            mPivotX = mPivotXValue;\n        }\n        if (mPivotYType == ABSOLUTE) {\n            mPivotY = mPivotYValue;\n        }\n    }\n\n    @Override\n    public void initialize(int width, int height, int parentWidth, int parentHeight) {\n        super.initialize(width, height, parentWidth, parentHeight);\n        mCamera = new Camera();\n        mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth);\n        mPivotY = resolveSize(mPivotYType, mPivotYValue, height, parentHeight);\n    }\n\n    @Override\n    protected void applyTransformation(float interpolatedTime, Transformation t) {\n        final float fromDegrees = mFromDegrees;\n        float degrees = fromDegrees + ((mToDegrees - fromDegrees) * interpolatedTime);\n\n        final Matrix matrix = t.getMatrix();\n\n        mCamera.save();\n        switch (mRollType) {\n            case ROLL_BY_X:\n                mCamera.rotateX(degrees);\n                break;\n            case ROLL_BY_Y:\n                mCamera.rotateY(degrees);\n                break;\n            case ROLL_BY_Z:\n                mCamera.rotateZ(degrees);\n                break;\n        }\n        mCamera.getMatrix(matrix);\n        mCamera.restore();\n\n        matrix.preTranslate(-mPivotX, -mPivotY);\n        matrix.postTranslate(mPivotX, mPivotY);\n    }\n}"
  },
  {
    "path": "library/src/main/java/cn/pedant/SweetAlert/SuccessTickView.java",
    "content": "package cn.pedant.SweetAlert;\n\nimport android.content.Context;\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.RectF;\nimport android.util.AttributeSet;\nimport android.view.View;\nimport android.view.animation.Animation;\nimport android.view.animation.Transformation;\n\npublic class SuccessTickView extends View {\n    private float mDensity = -1;\n    private Paint mPaint;\n    private final float CONST_RADIUS = dip2px(1.2f);\n    private final float CONST_RECT_WEIGHT = dip2px(3);\n    private final float CONST_LEFT_RECT_W = dip2px(15);\n    private final float CONST_RIGHT_RECT_W = dip2px(25);\n    private final float MIN_LEFT_RECT_W = dip2px(3.3f);\n    private final float MAX_RIGHT_RECT_W = CONST_RIGHT_RECT_W + dip2px(6.7f);\n\n    private float mMaxLeftRectWidth;\n    private float mLeftRectWidth;\n    private float mRightRectWidth;\n    private boolean mLeftRectGrowMode;\n\n    public SuccessTickView(Context context) {\n        super(context);\n        init();\n    }\n\n    public SuccessTickView(Context context, AttributeSet attrs){\n        super(context,attrs);\n        init();\n    }\n\n    private void init () {\n        mPaint = new Paint();\n        mPaint.setColor(getResources().getColor(R.color.success_stroke_color));\n        mLeftRectWidth = CONST_LEFT_RECT_W;\n        mRightRectWidth = CONST_RIGHT_RECT_W;\n        mLeftRectGrowMode = false;\n    }\n\n    @Override\n    public void draw(Canvas canvas) {\n        super.draw(canvas);\n        int totalW = getWidth();\n        int totalH = getHeight();\n        // rotate canvas first\n        canvas.rotate(45, totalW / 2, totalH / 2);\n\n        totalW /= 1.2;\n        totalH /= 1.4;\n        mMaxLeftRectWidth = (totalW + CONST_LEFT_RECT_W) / 2 + CONST_RECT_WEIGHT - 1;\n\n        RectF leftRect = new RectF();\n        if (mLeftRectGrowMode) {\n            leftRect.left = 0;\n            leftRect.right = leftRect.left + mLeftRectWidth;\n            leftRect.top = (totalH + CONST_RIGHT_RECT_W) / 2;\n            leftRect.bottom = leftRect.top + CONST_RECT_WEIGHT;\n        } else {\n            leftRect.right = (totalW + CONST_LEFT_RECT_W) / 2 + CONST_RECT_WEIGHT - 1;\n            leftRect.left = leftRect.right - mLeftRectWidth;\n            leftRect.top = (totalH + CONST_RIGHT_RECT_W) / 2;\n            leftRect.bottom = leftRect.top + CONST_RECT_WEIGHT;\n        }\n\n        canvas.drawRoundRect(leftRect, CONST_RADIUS, CONST_RADIUS, mPaint);\n\n        RectF rightRect = new RectF();\n        rightRect.bottom = (totalH + CONST_RIGHT_RECT_W) / 2 + CONST_RECT_WEIGHT - 1;\n        rightRect.left = (totalW + CONST_LEFT_RECT_W) / 2;\n        rightRect.right = rightRect.left + CONST_RECT_WEIGHT;\n        rightRect.top = rightRect.bottom - mRightRectWidth;\n        canvas.drawRoundRect(rightRect, CONST_RADIUS, CONST_RADIUS, mPaint);\n    }\n\n    public float dip2px(float dpValue) {\n        if(mDensity == -1) {\n            mDensity = getResources().getDisplayMetrics().density;\n        }\n        return dpValue * mDensity + 0.5f;\n    }\n\n    public void startTickAnim () {\n        // hide tick\n        mLeftRectWidth = 0;\n        mRightRectWidth = 0;\n        invalidate();\n        Animation tickAnim = new Animation() {\n            @Override\n            protected void applyTransformation(float interpolatedTime, Transformation t) {\n                super.applyTransformation(interpolatedTime, t);\n                if (0.54 < interpolatedTime && 0.7 >= interpolatedTime) {  // grow left and right rect to right\n                    mLeftRectGrowMode = true;\n                    mLeftRectWidth = mMaxLeftRectWidth * ((interpolatedTime - 0.54f) / 0.16f);\n                    if (0.65 < interpolatedTime) {\n                        mRightRectWidth = MAX_RIGHT_RECT_W * ((interpolatedTime - 0.65f) / 0.19f);\n                    }\n                    invalidate();\n                } else if (0.7 < interpolatedTime && 0.84 >= interpolatedTime) { // shorten left rect from right, still grow right rect\n                    mLeftRectGrowMode = false;\n                    mLeftRectWidth = mMaxLeftRectWidth * (1 - ((interpolatedTime - 0.7f) / 0.14f));\n                    mLeftRectWidth = mLeftRectWidth < MIN_LEFT_RECT_W ? MIN_LEFT_RECT_W : mLeftRectWidth;\n                    mRightRectWidth = MAX_RIGHT_RECT_W * ((interpolatedTime - 0.65f) / 0.19f);\n                    invalidate();\n                } else if (0.84 < interpolatedTime && 1 >= interpolatedTime) { // restore left rect width, shorten right rect to const\n                    mLeftRectGrowMode = false;\n                    mLeftRectWidth = MIN_LEFT_RECT_W + (CONST_LEFT_RECT_W - MIN_LEFT_RECT_W) * ((interpolatedTime - 0.84f) / 0.16f);\n                    mRightRectWidth = CONST_RIGHT_RECT_W + (MAX_RIGHT_RECT_W - CONST_RIGHT_RECT_W) * (1 - ((interpolatedTime - 0.84f) / 0.16f));\n                    invalidate();\n                }\n            }\n        };\n        tickAnim.setDuration(750);\n        tickAnim.setStartOffset(100);\n        startAnimation(tickAnim);\n    }\n}"
  },
  {
    "path": "library/src/main/java/cn/pedant/SweetAlert/SweetAlertDialog.java",
    "content": "package cn.pedant.SweetAlert;\n\n\nimport android.app.Dialog;\nimport android.content.Context;\nimport android.graphics.drawable.Drawable;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.view.WindowManager;\nimport android.view.animation.AlphaAnimation;\nimport android.view.animation.Animation;\nimport android.view.animation.AnimationSet;\nimport android.view.animation.Transformation;\nimport android.widget.Button;\nimport android.widget.FrameLayout;\nimport android.widget.ImageView;\nimport android.widget.TextView;\n\nimport com.pnikosis.materialishprogress.ProgressWheel;\n\nimport java.util.List;\n\npublic class SweetAlertDialog extends Dialog implements View.OnClickListener {\n    private View mDialogView;\n    private AnimationSet mModalInAnim;\n    private AnimationSet mModalOutAnim;\n    private Animation mOverlayOutAnim;\n    private Animation mErrorInAnim;\n    private AnimationSet mErrorXInAnim;\n    private AnimationSet mSuccessLayoutAnimSet;\n    private Animation mSuccessBowAnim;\n    private TextView mTitleTextView;\n    private TextView mContentTextView;\n    private String mTitleText;\n    private String mContentText;\n    private boolean mShowCancel;\n    private boolean mShowContent;\n    private String mCancelText;\n    private String mConfirmText;\n    private int mAlertType;\n    private FrameLayout mErrorFrame;\n    private FrameLayout mSuccessFrame;\n    private FrameLayout mProgressFrame;\n    private SuccessTickView mSuccessTick;\n    private ImageView mErrorX;\n    private View mSuccessLeftMask;\n    private View mSuccessRightMask;\n    private Drawable mCustomImgDrawable;\n    private ImageView mCustomImage;\n    private Button mConfirmButton;\n    private Button mCancelButton;\n    private ProgressHelper mProgressHelper;\n    private FrameLayout mWarningFrame;\n    private OnSweetClickListener mCancelClickListener;\n    private OnSweetClickListener mConfirmClickListener;\n    private boolean mCloseFromCancel;\n\n    public static final int NORMAL_TYPE = 0;\n    public static final int ERROR_TYPE = 1;\n    public static final int SUCCESS_TYPE = 2;\n    public static final int WARNING_TYPE = 3;\n    public static final int CUSTOM_IMAGE_TYPE = 4;\n    public static final int PROGRESS_TYPE = 5;\n\n    public static interface OnSweetClickListener {\n        public void onClick (SweetAlertDialog sweetAlertDialog);\n    }\n\n    public SweetAlertDialog(Context context) {\n        this(context, NORMAL_TYPE);\n    }\n\n    public SweetAlertDialog(Context context, int alertType) {\n        super(context, R.style.alert_dialog);\n        setCancelable(true);\n        setCanceledOnTouchOutside(false);\n        mProgressHelper = new ProgressHelper(context);\n        mAlertType = alertType;\n        mErrorInAnim = OptAnimationLoader.loadAnimation(getContext(), R.anim.error_frame_in);\n        mErrorXInAnim = (AnimationSet)OptAnimationLoader.loadAnimation(getContext(), R.anim.error_x_in);\n        // 2.3.x system don't support alpha-animation on layer-list drawable\n        // remove it from animation set\n        if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) {\n            List<Animation> childAnims = mErrorXInAnim.getAnimations();\n            int idx = 0;\n            for (;idx < childAnims.size();idx++) {\n                if (childAnims.get(idx) instanceof AlphaAnimation) {\n                    break;\n                }\n            }\n            if (idx < childAnims.size()) {\n                childAnims.remove(idx);\n            }\n        }\n        mSuccessBowAnim = OptAnimationLoader.loadAnimation(getContext(), R.anim.success_bow_roate);\n        mSuccessLayoutAnimSet = (AnimationSet)OptAnimationLoader.loadAnimation(getContext(), R.anim.success_mask_layout);\n        mModalInAnim = (AnimationSet) OptAnimationLoader.loadAnimation(getContext(), R.anim.modal_in);\n        mModalOutAnim = (AnimationSet) OptAnimationLoader.loadAnimation(getContext(), R.anim.modal_out);\n        mModalOutAnim.setAnimationListener(new Animation.AnimationListener() {\n            @Override\n            public void onAnimationStart(Animation animation) {\n\n            }\n\n            @Override\n            public void onAnimationEnd(Animation animation) {\n                mDialogView.setVisibility(View.GONE);\n                mDialogView.post(new Runnable() {\n                    @Override\n                    public void run() {\n                        if (mCloseFromCancel) {\n                            SweetAlertDialog.super.cancel();\n                        } else {\n                            SweetAlertDialog.super.dismiss();\n                        }\n                    }\n                });\n            }\n\n            @Override\n            public void onAnimationRepeat(Animation animation) {\n\n            }\n        });\n        // dialog overlay fade out\n        mOverlayOutAnim = new Animation() {\n            @Override\n            protected void applyTransformation(float interpolatedTime, Transformation t) {\n                WindowManager.LayoutParams wlp = getWindow().getAttributes();\n                wlp.alpha = 1 - interpolatedTime;\n                getWindow().setAttributes(wlp);\n            }\n        };\n        mOverlayOutAnim.setDuration(120);\n    }\n\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.alert_dialog);\n\n        mDialogView = getWindow().getDecorView().findViewById(android.R.id.content);\n        mTitleTextView = (TextView)findViewById(R.id.title_text);\n        mContentTextView = (TextView)findViewById(R.id.content_text);\n        mErrorFrame = (FrameLayout)findViewById(R.id.error_frame);\n        mErrorX = (ImageView)mErrorFrame.findViewById(R.id.error_x);\n        mSuccessFrame = (FrameLayout)findViewById(R.id.success_frame);\n        mProgressFrame = (FrameLayout)findViewById(R.id.progress_dialog);\n        mSuccessTick = (SuccessTickView)mSuccessFrame.findViewById(R.id.success_tick);\n        mSuccessLeftMask = mSuccessFrame.findViewById(R.id.mask_left);\n        mSuccessRightMask = mSuccessFrame.findViewById(R.id.mask_right);\n        mCustomImage = (ImageView)findViewById(R.id.custom_image);\n        mWarningFrame = (FrameLayout)findViewById(R.id.warning_frame);\n        mConfirmButton = (Button)findViewById(R.id.confirm_button);\n        mCancelButton = (Button)findViewById(R.id.cancel_button);\n        mProgressHelper.setProgressWheel((ProgressWheel)findViewById(R.id.progressWheel));\n        mConfirmButton.setOnClickListener(this);\n        mCancelButton.setOnClickListener(this);\n\n        setTitleText(mTitleText);\n        setContentText(mContentText);\n        setCancelText(mCancelText);\n        setConfirmText(mConfirmText);\n        changeAlertType(mAlertType, true);\n\n    }\n\n    private void restore () {\n        mCustomImage.setVisibility(View.GONE);\n        mErrorFrame.setVisibility(View.GONE);\n        mSuccessFrame.setVisibility(View.GONE);\n        mWarningFrame.setVisibility(View.GONE);\n        mProgressFrame.setVisibility(View.GONE);\n        mConfirmButton.setVisibility(View.VISIBLE);\n\n        mConfirmButton.setBackgroundResource(R.drawable.blue_button_background);\n        mErrorFrame.clearAnimation();\n        mErrorX.clearAnimation();\n        mSuccessTick.clearAnimation();\n        mSuccessLeftMask.clearAnimation();\n        mSuccessRightMask.clearAnimation();\n    }\n\n    private void playAnimation () {\n        if (mAlertType == ERROR_TYPE) {\n            mErrorFrame.startAnimation(mErrorInAnim);\n            mErrorX.startAnimation(mErrorXInAnim);\n        } else if (mAlertType == SUCCESS_TYPE) {\n            mSuccessTick.startTickAnim();\n            mSuccessRightMask.startAnimation(mSuccessBowAnim);\n        }\n    }\n\n    private void changeAlertType(int alertType, boolean fromCreate) {\n        mAlertType = alertType;\n        // call after created views\n        if (mDialogView != null) {\n            if (!fromCreate) {\n                // restore all of views state before switching alert type\n                restore();\n            }\n            switch (mAlertType) {\n                case ERROR_TYPE:\n                    mErrorFrame.setVisibility(View.VISIBLE);\n                    break;\n                case SUCCESS_TYPE:\n                    mSuccessFrame.setVisibility(View.VISIBLE);\n                    // initial rotate layout of success mask\n                    mSuccessLeftMask.startAnimation(mSuccessLayoutAnimSet.getAnimations().get(0));\n                    mSuccessRightMask.startAnimation(mSuccessLayoutAnimSet.getAnimations().get(1));\n                    break;\n                case WARNING_TYPE:\n                    mConfirmButton.setBackgroundResource(R.drawable.red_button_background);\n                    mWarningFrame.setVisibility(View.VISIBLE);\n                    break;\n                case CUSTOM_IMAGE_TYPE:\n                    setCustomImage(mCustomImgDrawable);\n                    break;\n                case PROGRESS_TYPE:\n                    mProgressFrame.setVisibility(View.VISIBLE);\n                    mConfirmButton.setVisibility(View.GONE);\n                    break;\n            }\n            if (!fromCreate) {\n                playAnimation();\n            }\n        }\n    }\n\n    public int getAlerType () {\n        return mAlertType;\n    }\n\n    public void changeAlertType(int alertType) {\n        changeAlertType(alertType, false);\n    }\n\n\n    public String getTitleText () {\n        return mTitleText;\n    }\n\n    public SweetAlertDialog setTitleText (String text) {\n        mTitleText = text;\n        if (mTitleTextView != null && mTitleText != null) {\n            mTitleTextView.setText(mTitleText);\n        }\n        return this;\n    }\n\n    public SweetAlertDialog setCustomImage (Drawable drawable) {\n        mCustomImgDrawable = drawable;\n        if (mCustomImage != null && mCustomImgDrawable != null) {\n            mCustomImage.setVisibility(View.VISIBLE);\n            mCustomImage.setImageDrawable(mCustomImgDrawable);\n        }\n        return this;\n    }\n\n    public SweetAlertDialog setCustomImage (int resourceId) {\n        return setCustomImage(getContext().getResources().getDrawable(resourceId));\n    }\n\n    public String getContentText () {\n        return mContentText;\n    }\n\n    public SweetAlertDialog setContentText (String text) {\n        mContentText = text;\n        if (mContentTextView != null && mContentText != null) {\n            showContentText(true);\n            mContentTextView.setText(mContentText);\n        }\n        return this;\n    }\n\n    public boolean isShowCancelButton () {\n        return mShowCancel;\n    }\n\n    public SweetAlertDialog showCancelButton (boolean isShow) {\n        mShowCancel = isShow;\n        if (mCancelButton != null) {\n            mCancelButton.setVisibility(mShowCancel ? View.VISIBLE : View.GONE);\n        }\n        return this;\n    }\n\n    public boolean isShowContentText () {\n        return mShowContent;\n    }\n\n    public SweetAlertDialog showContentText (boolean isShow) {\n        mShowContent = isShow;\n        if (mContentTextView != null) {\n            mContentTextView.setVisibility(mShowContent ? View.VISIBLE : View.GONE);\n        }\n        return this;\n    }\n\n    public String getCancelText () {\n        return mCancelText;\n    }\n\n    public SweetAlertDialog setCancelText (String text) {\n        mCancelText = text;\n        if (mCancelButton != null && mCancelText != null) {\n            showCancelButton(true);\n            mCancelButton.setText(mCancelText);\n        }\n        return this;\n    }\n\n    public String getConfirmText () {\n        return mConfirmText;\n    }\n\n    public SweetAlertDialog setConfirmText (String text) {\n        mConfirmText = text;\n        if (mConfirmButton != null && mConfirmText != null) {\n            mConfirmButton.setText(mConfirmText);\n        }\n        return this;\n    }\n\n    public SweetAlertDialog setCancelClickListener (OnSweetClickListener listener) {\n        mCancelClickListener = listener;\n        return this;\n    }\n\n    public SweetAlertDialog setConfirmClickListener (OnSweetClickListener listener) {\n        mConfirmClickListener = listener;\n        return this;\n    }\n\n    protected void onStart() {\n        mDialogView.startAnimation(mModalInAnim);\n        playAnimation();\n    }\n\n    /**\n     * The real Dialog.cancel() will be invoked async-ly after the animation finishes.\n     */\n    @Override\n    public void cancel() {\n        dismissWithAnimation(true);\n    }\n\n    /**\n     * The real Dialog.dismiss() will be invoked async-ly after the animation finishes.\n     */\n    public void dismissWithAnimation() {\n        dismissWithAnimation(false);\n    }\n\n    private void dismissWithAnimation(boolean fromCancel) {\n        mCloseFromCancel = fromCancel;\n        mConfirmButton.startAnimation(mOverlayOutAnim);\n        mDialogView.startAnimation(mModalOutAnim);\n    }\n\n    @Override\n    public void onClick(View v) {\n        if (v.getId() == R.id.cancel_button) {\n            if (mCancelClickListener != null) {\n                mCancelClickListener.onClick(SweetAlertDialog.this);\n            } else {\n                dismissWithAnimation();\n            }\n        } else if (v.getId() == R.id.confirm_button) {\n            if (mConfirmClickListener != null) {\n                mConfirmClickListener.onClick(SweetAlertDialog.this);\n            } else {\n                dismissWithAnimation();\n            }\n        }\n    }\n\n    public ProgressHelper getProgressHelper () {\n        return mProgressHelper;\n    }\n}"
  },
  {
    "path": "library/src/main/res/anim/error_frame_in.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\"\n     xmlns:sweet=\"http://schemas.android.com/apk/res-auto\"\n     android:interpolator=\"@android:anim/linear_interpolator\"\n     android:shareInterpolator=\"true\">\n\n    <alpha\n        android:fromAlpha=\"0\"\n        android:toAlpha=\"1\"\n        android:duration=\"400\"/>\n\n    <sweet:cn.pedant.SweetAlert.Rotate3dAnimation\n        sweet:rollType=\"x\"\n        sweet:fromDeg=\"100\"\n        sweet:toDeg=\"0\"\n        sweet:pivotX=\"50%\"\n        sweet:pivotY=\"50%\"\n        android:duration=\"400\"/>\n</set>"
  },
  {
    "path": "library/src/main/res/anim/error_x_in.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\"\n     android:interpolator=\"@android:anim/linear_interpolator\"\n     android:shareInterpolator=\"true\">\n\n    <alpha\n        android:fromAlpha=\"0\"\n        android:toAlpha=\"1\"\n        android:duration=\"200\"\n        android:startOffset=\"200\"/>\n\n    <scale\n        android:fromXScale=\"0.4\"\n        android:toXScale=\"1.15\"\n        android:fromYScale=\"0.4\"\n        android:toYScale=\"1.15\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:duration=\"120\"\n        android:startOffset=\"250\"/>\n\n    <scale\n        android:fromXScale=\"1.15\"\n        android:toXScale=\"1\"\n        android:fromYScale=\"1.15\"\n        android:toYScale=\"1\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:duration=\"80\"\n        android:startOffset=\"370\"/>\n</set>"
  },
  {
    "path": "library/src/main/res/anim/modal_in.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\"\n     android:interpolator=\"@android:anim/linear_interpolator\"\n     android:shareInterpolator=\"true\">\n    <alpha\n        android:fromAlpha=\"0.2\"\n        android:toAlpha=\"1\"\n        android:duration=\"90\"/>\n\n    <scale\n        android:fromXScale=\"0.7\"\n        android:toXScale=\"1.05\"\n        android:fromYScale=\"0.7\"\n        android:toYScale=\"1.05\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:duration=\"135\"/>\n\n    <scale\n        android:fromXScale=\"1.05\"\n        android:toXScale=\"0.95\"\n        android:fromYScale=\"1.05\"\n        android:toYScale=\"0.95\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:duration=\"105\"\n        android:startOffset=\"135\"/>\n\n    <scale\n        android:fromXScale=\"0.95\"\n        android:toXScale=\"1\"\n        android:fromYScale=\"0.95\"\n        android:toYScale=\"1\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:duration=\"60\"\n        android:startOffset=\"240\"/>\n</set>"
  },
  {
    "path": "library/src/main/res/anim/modal_out.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\"\n     android:interpolator=\"@android:anim/linear_interpolator\"\n     android:shareInterpolator=\"true\">\n    <scale\n        android:fromXScale=\"1\"\n        android:toXScale=\"0.6\"\n        android:fromYScale=\"1\"\n        android:toYScale=\"0.6\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\"\n        android:duration=\"150\"/>\n   <!-- <alpha\n        android:fromAlpha=\"1\"\n        android:toAlpha=\"0\"\n        android:duration=\"150\"/> -->\n</set>"
  },
  {
    "path": "library/src/main/res/anim/success_bow_roate.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<rotate\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:interpolator=\"@android:anim/accelerate_interpolator\"\n    android:fromDegrees=\"-45\"\n    android:toDegrees=\"-405\"\n    android:pivotX=\"0%\"\n    android:pivotY=\"50%\"\n    android:duration=\"300\"\n    android:fillAfter=\"true\"\n    android:startOffset=\"215\">\n</rotate>"
  },
  {
    "path": "library/src/main/res/anim/success_mask_layout.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <rotate\n        android:fromDegrees=\"0\"\n        android:toDegrees=\"-45\"\n        android:pivotX=\"110%\"\n        android:pivotY=\"42%\"\n        android:duration=\"0\"\n        android:fillAfter=\"true\">\n    </rotate>\n\n    <rotate\n        android:fromDegrees=\"0\"\n        android:toDegrees=\"-45\"\n        android:pivotX=\"10%\"\n        android:pivotY=\"42%\"\n        android:duration=\"0\"\n        android:fillAfter=\"true\">\n    </rotate>\n</set>"
  },
  {
    "path": "library/src/main/res/drawable/blue_button_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:state_pressed=\"true\">\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/blue_btn_bg_pressed_color\" />\n            <corners android:radius=\"6dp\"/>\n        </shape>\n    </item>\n    <item>\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/blue_btn_bg_color\" />\n            <corners android:radius=\"6dp\"/>\n        </shape>\n    </item>\n</selector>"
  },
  {
    "path": "library/src/main/res/drawable/dialog_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <solid android:color=\"@color/sweet_dialog_bg_color\" />\n    <corners android:radius=\"6dp\"/>\n</shape>   "
  },
  {
    "path": "library/src/main/res/drawable/error_center_x.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item>\n        <rotate android:fromDegrees=\"45\" android:toDegrees=\"45\" android:pivotX=\"50%\" android:pivotY=\"50%\">\n            <shape android:shape=\"rectangle\">\n                <solid android:color=\"@color/error_stroke_color\"/>\n                <corners android:radius=\"4dp\"/>\n                <size android:height=\"3dp\" android:width=\"28dp\"/>\n            </shape>\n        </rotate>\n    </item>\n\n    <item>\n        <rotate android:fromDegrees=\"315\" android:toDegrees=\"315\" android:pivotX=\"50%\" android:pivotY=\"50%\">\n            <shape android:shape=\"rectangle\">\n                <solid android:color=\"@color/error_stroke_color\"/>\n                <corners android:radius=\"4dp\"/>\n                <size android:height=\"3dp\" android:width=\"28dp\"/>\n            </shape>\n        </rotate>\n    </item>\n</layer-list>"
  },
  {
    "path": "library/src/main/res/drawable/error_circle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape android:shape=\"oval\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <solid android:color=\"@android:color/transparent\" />\n    <stroke android:color=\"@color/error_stroke_color\" android:width=\"@dimen/common_circle_width\" />\n</shape>\n\n"
  },
  {
    "path": "library/src/main/res/drawable/gray_button_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:state_pressed=\"true\">\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/gray_btn_bg_pressed_color\" />\n            <corners android:radius=\"6dp\"/>\n        </shape>\n    </item>\n    <item>\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/gray_btn_bg_color\" />\n            <corners android:radius=\"6dp\"/>\n        </shape>\n    </item>\n</selector>"
  },
  {
    "path": "library/src/main/res/drawable/red_button_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:state_pressed=\"true\">\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/red_btn_bg_pressed_color\" />\n            <corners android:radius=\"6dp\"/>\n        </shape>\n    </item>\n    <item>\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/red_btn_bg_color\" />\n            <corners android:radius=\"6dp\"/>\n        </shape>\n    </item>\n</selector>"
  },
  {
    "path": "library/src/main/res/drawable/success_bow.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape android:shape=\"oval\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <solid android:color=\"@android:color/transparent\" />\n    <stroke android:color=\"@color/success_stroke_color\" android:width=\"@dimen/common_circle_width\" />\n</shape>\n\n"
  },
  {
    "path": "library/src/main/res/drawable/success_circle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape android:shape=\"oval\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <solid android:color=\"@android:color/transparent\" />\n    <stroke android:color=\"@color/trans_success_stroke_color\" android:width=\"@dimen/common_circle_width\" />\n</shape>\n\n"
  },
  {
    "path": "library/src/main/res/drawable/warning_circle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape android:shape=\"oval\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <solid android:color=\"@android:color/transparent\" />\n    <stroke android:color=\"@color/warning_stroke_color\" android:width=\"@dimen/common_circle_width\" />\n</shape>\n\n"
  },
  {
    "path": "library/src/main/res/drawable/warning_sigh.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:bottom=\"8dp\" android:left=\"1dp\" android:right=\"1dp\">\n        <shape android:shape=\"rectangle\">\n            <solid android:color=\"@color/warning_stroke_color\"/>\n            <corners android:radius=\"4dp\"/>\n            <size android:height=\"22dp\" android:width=\"3dp\"/>\n        </shape>\n    </item>\n\n    <item android:top=\"30dp\">\n        <shape android:shape=\"oval\">\n            <solid android:color=\"@color/warning_stroke_color\"/>\n            <size android:height=\"5dp\" android:width=\"4dp\"/>\n        </shape>\n    </item>\n</layer-list>"
  },
  {
    "path": "library/src/main/res/layout/alert_dialog.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:wheel=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/loading\"\n    android:layout_width=\"@dimen/alert_width\"\n    android:layout_height=\"wrap_content\"\n    android:gravity=\"center\"\n    android:layout_gravity=\"center\"\n    android:orientation=\"vertical\"\n    android:background=\"@drawable/dialog_background\"\n    android:padding=\"10dp\">\n\n    <ImageView\n        android:id=\"@+id/custom_image\"\n        android:layout_width=\"53dp\"\n        android:layout_height=\"53dp\"\n        android:layout_marginTop=\"5dp\"\n        android:contentDescription=\"@string/app_name\"\n        android:visibility=\"gone\"\n        android:scaleType=\"fitCenter\" />\n\n    <FrameLayout\n        android:id=\"@+id/error_frame\"\n        android:layout_width=\"53dp\"\n        android:layout_height=\"53dp\"\n        android:layout_marginTop=\"5dp\"\n        android:visibility=\"gone\">\n        <View\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:background=\"@drawable/error_circle\" />\n\n        <ImageView\n            android:id=\"@+id/error_x\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:contentDescription=\"@string/app_name\"\n            android:src=\"@drawable/error_center_x\"\n            android:scaleType=\"center\" />\n\n    </FrameLayout>\n\n    <FrameLayout\n        android:id=\"@+id/success_frame\"\n        android:layout_width=\"53dp\"\n        android:layout_height=\"53dp\"\n        android:layout_marginTop=\"5dp\"\n        android:visibility=\"gone\">\n\n        <View\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:background=\"@drawable/success_bow\" />\n\n        <View\n            android:id=\"@+id/mask_right\"\n            android:layout_width=\"35dp\"\n            android:layout_height=\"80dp\"\n            android:layout_marginTop=\"-13dp\"\n            android:layout_gravity=\"right\"\n            android:background=\"@android:color/white\" />\n\n        <View\n            android:id=\"@+id/mask_left\"\n            android:layout_width=\"21dp\"\n            android:layout_height=\"60dp\"\n            android:layout_marginLeft=\"-3dp\"\n            android:layout_gravity=\"left\"\n            android:background=\"@android:color/white\" />\n\n        <View\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:background=\"@drawable/success_circle\" />\n\n        <cn.pedant.SweetAlert.SuccessTickView\n            android:id=\"@+id/success_tick\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\" />\n\n    </FrameLayout>\n\n    <FrameLayout\n        android:id=\"@+id/warning_frame\"\n        android:layout_width=\"53dp\"\n        android:layout_height=\"53dp\"\n        android:layout_marginTop=\"5dp\"\n        android:visibility=\"gone\">\n\n        <View\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:background=\"@drawable/warning_circle\" />\n\n        <ImageView\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:contentDescription=\"@string/app_name\"\n            android:src=\"@drawable/warning_sigh\"\n            android:scaleType=\"center\" />\n    </FrameLayout>\n\n    <FrameLayout\n        android:id=\"@+id/progress_dialog\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"9dp\"\n        android:layout_gravity=\"center\"\n        android:orientation=\"vertical\"\n        android:visibility=\"gone\">\n\n        <com.pnikosis.materialishprogress.ProgressWheel\n            android:id=\"@+id/progressWheel\"\n            android:layout_width=\"80dp\"\n            android:layout_height=\"80dp\"\n            wheel:progressIndeterminate=\"true\"\n            android:layout_gravity=\"center\" />\n    </FrameLayout>\n\n    <TextView\n        android:id=\"@+id/title_text\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"19sp\"\n        android:textColor=\"#575757\"\n        android:layout_marginTop=\"10dp\"\n        android:singleLine=\"true\"\n        android:text=\"@string/dialog_default_title\" />\n\n    <TextView\n        android:id=\"@+id/content_text\"\n        android:layout_marginTop=\"10dp\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"14sp\"\n        android:textAlignment=\"center\"\n        android:gravity=\"center\"\n        android:textColor=\"#797979\"\n        android:visibility=\"gone\" />\n\n    <LinearLayout\n        android:layout_marginTop=\"10dp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:gravity=\"center\">\n\n        <Button\n            android:id=\"@+id/cancel_button\"\n            style=\"@style/dialog_blue_button\"\n            android:background=\"@drawable/gray_button_background\"\n            android:layout_marginRight=\"10dp\"\n            android:visibility=\"gone\"\n            android:text=\"@string/dialog_cancel\" />\n\n        <Button\n            android:id=\"@+id/confirm_button\"\n            style=\"@style/dialog_blue_button\"\n            android:text=\"@string/dialog_ok\" />\n    </LinearLayout>\n</LinearLayout>"
  },
  {
    "path": "library/src/main/res/values/attrs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <declare-styleable name=\"Rotate3dAnimation\">\n        <attr name=\"rollType\" format=\"enum\">\n            <enum name=\"x\" value=\"0\"/>\n            <enum name=\"y\" value=\"1\"/>\n            <enum name=\"z\" value=\"2\"/>\n        </attr>\n        <attr name=\"fromDeg\" format=\"float\" />\n        <attr name=\"toDeg\" format=\"float\" />\n        <attr name=\"pivotX\" format=\"fraction\"/>\n        <attr name=\"pivotY\" format=\"fraction\" />\n    </declare-styleable>\n</resources>"
  },
  {
    "path": "library/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"float_transparent\">#00000000</color>\n    <color name=\"sweet_dialog_bg_color\">#FFFFFF</color>\n    <color name=\"button_text_color\">#FFFFFF</color>\n    <color name=\"gray_btn_bg_color\">#D0D0D0</color>\n    <color name=\"gray_btn_bg_pressed_color\">#B6B6B6</color>\n    <color name=\"blue_btn_bg_color\">#AEDEF4</color>\n    <color name=\"blue_btn_bg_pressed_color\">#96BFD2</color>\n    <color name=\"red_btn_bg_color\">#DD6B55</color>\n    <color name=\"red_btn_bg_pressed_color\">#CD5B55</color>\n    <color name=\"error_stroke_color\">#F27474</color>\n    <color name=\"success_stroke_color\">#A5DC86</color>\n    <color name=\"trans_success_stroke_color\">#33A5DC86</color>\n    <color name=\"warning_stroke_color\">#F8BB86</color>\n    <color name=\"text_color\">#575757</color>\n    <color name=\"material_blue_grey_80\">#ff37474f</color>\n    <color name=\"material_blue_grey_90\">#ff263238</color>\n    <color name=\"material_blue_grey_95\">#ff21272b</color>\n    <color name=\"material_deep_teal_20\">#ff80cbc4</color>\n    <color name=\"material_deep_teal_50\">#ff009688</color>\n</resources>"
  },
  {
    "path": "library/src/main/res/values/dimen.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <dimen name=\"alert_width\">290dp</dimen>\n    <dimen name=\"common_circle_width\">3dp</dimen>\n    <dimen name=\"progress_circle_radius\">34dp</dimen>\n</resources>"
  },
  {
    "path": "library/src/main/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"app_name\">SweetAlertDialog</string>\n    <string name=\"dialog_default_title\">Here\\'s a message!</string>\n    <string name=\"dialog_ok\">OK</string>\n    <string name=\"dialog_cancel\">Cancel</string>\n    <string name=\"LOADING\">Loading...</string>\n</resources>\n"
  },
  {
    "path": "library/src/main/res/values/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"alert_dialog\" parent=\"android:Theme.Dialog\">\n        <item name=\"android:windowIsFloating\">true</item>\n        <item name=\"android:windowIsTranslucent\">false</item>\n        <item name=\"android:windowNoTitle\">true</item>\n        <item name=\"android:windowFullscreen\">false</item>\n        <item name=\"android:windowBackground\">@color/float_transparent</item>\n        <item name=\"android:windowAnimationStyle\">@null</item>\n        <item name=\"android:backgroundDimEnabled\">true</item>\n        <item name=\"android:backgroundDimAmount\">0.4</item>\n    </style>\n\n    <style name=\"dialog_blue_button\" parent=\"android:Widget.Button\">\n        <item name=\"android:layout_width\">wrap_content</item>\n        <item name=\"android:layout_height\">31dp</item>\n        <item name=\"android:background\">@drawable/blue_button_background</item>\n        <item name=\"android:textSize\">14sp</item>\n        <item name=\"android:paddingLeft\">21dp</item>\n        <item name=\"android:paddingRight\">21dp</item>\n        <item name=\"android:textColor\">@color/button_text_color</item>\n    </style>\n</resources>"
  },
  {
    "path": "sample/build.gradle",
    "content": "apply plugin: 'com.android.application'\n\nversion = VERSION_NAME\ngroup = GROUP\n\nandroid {\n    compileSdkVersion rootProject.ext.compileSdkVersion\n    buildToolsVersion rootProject.ext.buildToolsVersion\n\n    defaultConfig {\n        minSdkVersion 9\n        targetSdkVersion 21\n    }\n\n    lintOptions {\n        abortOnError false\n    }\n\n    buildTypes {\n        release {\n            proguardFile 'proguard-android.txt'\n            minifyEnabled true\n            shrinkResources true\n        }\n    }\n}\n\ndependencies {\n    //compile 'cn.pedant.sweetalert:library:1.3'\n    compile project(':library')\n}\n"
  },
  {
    "path": "sample/proguard-android.txt",
    "content": " -keep class cn.pedant.SweetAlert.Rotate3dAnimation {\n    public <init>(...);\n }"
  },
  {
    "path": "sample/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n          package=\"cn.pedant.SweetAlert.sample\"\n          android:versionCode=\"1\"\n          android:versionName=\"1.0\">\n    <uses-sdk android:minSdkVersion=\"9\" android:targetSdkVersion=\"17\"/>\n    <application android:label=\"@string/app_name\" android:icon=\"@drawable/ic_launcher\" android:theme=\"@android:style/Theme.NoTitleBar\">\n        <activity android:name=\".SampleActivity\"\n                  android:label=\"@string/app_name\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\"/>\n                <category android:name=\"android.intent.category.LAUNCHER\"/>\n            </intent-filter>\n        </activity>\n    </application>\n</manifest>\n"
  },
  {
    "path": "sample/src/main/java/cn/pedant/SweetAlert/sample/SampleActivity.java",
    "content": "package cn.pedant.SweetAlert.sample;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.os.CountDownTimer;\nimport android.view.View;\n\nimport cn.pedant.SweetAlert.SweetAlertDialog;\n\npublic class SampleActivity extends Activity implements View.OnClickListener {\n\n    private int i = -1;\n\n    @Override\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.sample_activity);\n        findViewById(R.id.basic_test).setOnClickListener(this);\n        findViewById(R.id.under_text_test).setOnClickListener(this);\n        findViewById(R.id.error_text_test).setOnClickListener(this);\n        findViewById(R.id.success_text_test).setOnClickListener(this);\n        findViewById(R.id.warning_confirm_test).setOnClickListener(this);\n        findViewById(R.id.warning_cancel_test).setOnClickListener(this);\n        findViewById(R.id.custom_img_test).setOnClickListener(this);\n        findViewById(R.id.progress_dialog).setOnClickListener(this);\n    }\n\n    @Override\n    public void onClick(View v) {\n        switch (v.getId()) {\n            case R.id.basic_test:\n                // default title \"Here's a message!\"\n                SweetAlertDialog sd = new SweetAlertDialog(this);\n                sd.setCancelable(true);\n                sd.setCanceledOnTouchOutside(true);\n                sd.show();\n                break;\n            case R.id.under_text_test:\n                new SweetAlertDialog(this)\n                        .setContentText(\"It's pretty, isn't it?\")\n                        .show();\n                break;\n            case R.id.error_text_test:\n                new SweetAlertDialog(this, SweetAlertDialog.ERROR_TYPE)\n                        .setTitleText(\"Oops...\")\n                        .setContentText(\"Something went wrong!\")\n                        .show();\n                break;\n            case R.id.success_text_test:\n                new SweetAlertDialog(this, SweetAlertDialog.SUCCESS_TYPE)\n                        .setTitleText(\"Good job!\")\n                        .setContentText(\"You clicked the button!\")\n                        .show();\n                break;\n            case R.id.warning_confirm_test:\n                new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n                        .setTitleText(\"Are you sure?\")\n                        .setContentText(\"Won't be able to recover this file!\")\n                        .setConfirmText(\"Yes,delete it!\")\n                        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n                        @Override\n                        public void onClick(SweetAlertDialog sDialog) {\n                            // reuse previous dialog instance\n                            sDialog.setTitleText(\"Deleted!\")\n                                    .setContentText(\"Your imaginary file has been deleted!\")\n                                    .setConfirmText(\"OK\")\n                                    .setConfirmClickListener(null)\n                                    .changeAlertType(SweetAlertDialog.SUCCESS_TYPE);\n                        }\n                        })\n                        .show();\n                break;\n            case R.id.warning_cancel_test:\n                new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n                        .setTitleText(\"Are you sure?\")\n                        .setContentText(\"Won't be able to recover this file!\")\n                        .setCancelText(\"No,cancel plx!\")\n                        .setConfirmText(\"Yes,delete it!\")\n                        .showCancelButton(true)\n                        .setCancelClickListener(new SweetAlertDialog.OnSweetClickListener() {\n                            @Override\n                            public void onClick(SweetAlertDialog sDialog) {\n                                // reuse previous dialog instance, keep widget user state, reset them if you need\n                                sDialog.setTitleText(\"Cancelled!\")\n                                        .setContentText(\"Your imaginary file is safe :)\")\n                                        .setConfirmText(\"OK\")\n                                        .showCancelButton(false)\n                                        .setCancelClickListener(null)\n                                        .setConfirmClickListener(null)\n                                        .changeAlertType(SweetAlertDialog.ERROR_TYPE);\n\n                                // or you can new a SweetAlertDialog to show\n                               /* sDialog.dismiss();\n                                new SweetAlertDialog(SampleActivity.this, SweetAlertDialog.ERROR_TYPE)\n                                        .setTitleText(\"Cancelled!\")\n                                        .setContentText(\"Your imaginary file is safe :)\")\n                                        .setConfirmText(\"OK\")\n                                        .show();*/\n                            }\n                        })\n                        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n                            @Override\n                            public void onClick(SweetAlertDialog sDialog) {\n                                sDialog.setTitleText(\"Deleted!\")\n                                        .setContentText(\"Your imaginary file has been deleted!\")\n                                        .setConfirmText(\"OK\")\n                                        .showCancelButton(false)\n                                        .setCancelClickListener(null)\n                                        .setConfirmClickListener(null)\n                                        .changeAlertType(SweetAlertDialog.SUCCESS_TYPE);\n                            }\n                        })\n                        .show();\n                break;\n            case R.id.custom_img_test:\n                new SweetAlertDialog(this, SweetAlertDialog.CUSTOM_IMAGE_TYPE)\n                        .setTitleText(\"Sweet!\")\n                        .setContentText(\"Here's a custom image.\")\n                        .setCustomImage(R.drawable.custom_img)\n                        .show();\n                break;\n            case R.id.progress_dialog:\n                final SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE)\n                        .setTitleText(\"Loading\");\n                pDialog.show();\n                pDialog.setCancelable(false);\n                new CountDownTimer(800 * 7, 800) {\n                    public void onTick(long millisUntilFinished) {\n                        // you can change the progress bar color by ProgressHelper every 800 millis\n                        i++;\n                        switch (i){\n                            case 0:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.blue_btn_bg_color));\n                                break;\n                            case 1:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.material_deep_teal_50));\n                                break;\n                            case 2:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.success_stroke_color));\n                                break;\n                            case 3:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.material_deep_teal_20));\n                                break;\n                            case 4:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.material_blue_grey_80));\n                                break;\n                            case 5:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.warning_stroke_color));\n                                break;\n                            case 6:\n                                pDialog.getProgressHelper().setBarColor(getResources().getColor(R.color.success_stroke_color));\n                                break;\n                        }\n                    }\n\n                    public void onFinish() {\n                        i = -1;\n                        pDialog.setTitleText(\"Success!\")\n                                .setConfirmText(\"OK\")\n                                .changeAlertType(SweetAlertDialog.SUCCESS_TYPE);\n                    }\n                }.start();\n                break;\n        }\n    }\n}\n"
  },
  {
    "path": "sample/src/main/res/layout/sample_activity.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:background=\"#FFF\"\n            xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <RelativeLayout android:layout_width=\"match_parent\"\n                    android:paddingBottom=\"10dp\"\n                  android:layout_height=\"wrap_content\">\n\n        <ImageView\n               android:id=\"@+id/logo_img\"\n               android:layout_width=\"180dp\"\n               android:layout_height=\"wrap_content\"\n               android:src=\"@drawable/logo_big\"\n               android:layout_marginTop=\"10dp\"\n               android:layout_marginBottom=\"15dp\"\n               android:layout_centerHorizontal=\"true\"\n               android:contentDescription=\"@string/app_name\"/>\n\n        <TextView\n            android:id=\"@+id/txt_0\"\n            android:layout_alignLeft=\"@id/logo_img\"\n            android:layout_below=\"@id/logo_img\"\n            android:layout_marginLeft=\"15dp\"\n            android:text=\"show material progress\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:textSize=\"14sp\"\n            android:textColor=\"#797979\"/>\n\n        <Button\n            android:layout_centerHorizontal=\"true\"\n            android:layout_below=\"@id/txt_0\"\n            android:id=\"@+id/progress_dialog\"\n            style=\"@style/dialog_blue_button\"\n            android:layout_margin=\"10dp\"\n            android:text=\"Try me!\"/>\n\n        <TextView\n            android:id=\"@+id/txt_1\"\n            android:layout_alignLeft=\"@id/logo_img\"\n            android:layout_below=\"@id/progress_dialog\"\n            android:layout_marginLeft=\"15dp\"\n            android:text=\"A basic message\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:textSize=\"14sp\"\n            android:textColor=\"#797979\"/>\n\n        <Button\n            android:layout_centerHorizontal=\"true\"\n            android:layout_below=\"@id/txt_1\"\n            android:id=\"@+id/basic_test\"\n            style=\"@style/dialog_blue_button\"\n            android:layout_margin=\"10dp\"\n            android:text=\"Try me!\"/>\n\n        <TextView\n                android:id=\"@+id/txt_2\"\n                android:layout_alignLeft=\"@id/logo_img\"\n                android:layout_below=\"@id/basic_test\"\n                android:layout_marginLeft=\"15dp\"\n                android:text=\"A title with a text under\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"14sp\"\n                android:layout_marginTop=\"15dp\"\n                android:textColor=\"#797979\"/>\n\n        <Button\n                android:layout_centerHorizontal=\"true\"\n                android:layout_below=\"@id/txt_2\"\n                android:id=\"@+id/under_text_test\"\n                style=\"@style/dialog_blue_button\"\n                android:layout_margin=\"10dp\"\n                android:text=\"Try me!\"/>\n\n        <TextView\n                android:id=\"@+id/txt_3\"\n                android:layout_alignLeft=\"@id/logo_img\"\n                android:layout_below=\"@id/under_text_test\"\n                android:layout_marginLeft=\"15dp\"\n                android:text=\"show error message\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"14sp\"\n                android:layout_marginTop=\"15dp\"\n                android:textColor=\"#797979\"/>\n\n        <Button\n                android:layout_centerHorizontal=\"true\"\n                android:layout_below=\"@id/txt_3\"\n                android:id=\"@+id/error_text_test\"\n                style=\"@style/dialog_blue_button\"\n                android:layout_margin=\"10dp\"\n                android:text=\"Try me!\"/>\n\n        <TextView\n                android:id=\"@+id/txt_4\"\n                android:layout_alignLeft=\"@id/logo_img\"\n                android:layout_below=\"@id/error_text_test\"\n                android:layout_marginLeft=\"15dp\"\n                android:text=\"A success message\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"14sp\"\n                android:layout_marginTop=\"15dp\"\n                android:textColor=\"#797979\"/>\n\n        <Button\n                android:layout_centerHorizontal=\"true\"\n                android:layout_below=\"@id/txt_4\"\n                android:id=\"@+id/success_text_test\"\n                style=\"@style/dialog_blue_button\"\n                android:layout_margin=\"10dp\"\n                android:text=\"Try me!\"/>\n\n\n        <TextView\n                android:id=\"@+id/txt_5\"\n                android:layout_alignLeft=\"@id/logo_img\"\n                android:layout_below=\"@id/success_text_test\"\n                android:layout_marginLeft=\"15dp\"\n                android:text=\"A warning message, with a listener bind to the Confirm-button...\"\n                android:layout_width=\"200dp\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"14sp\"\n                android:layout_marginTop=\"15dp\"\n                android:textColor=\"#797979\"/>\n\n        <Button\n                android:layout_centerHorizontal=\"true\"\n                android:layout_below=\"@id/txt_5\"\n                android:id=\"@+id/warning_confirm_test\"\n                style=\"@style/dialog_blue_button\"\n                android:layout_margin=\"10dp\"\n                android:text=\"Try me!\"/>\n\n        <TextView\n                android:id=\"@+id/txt_6\"\n                android:layout_alignLeft=\"@id/logo_img\"\n                android:layout_below=\"@id/warning_confirm_test\"\n                android:layout_marginLeft=\"15dp\"\n                android:text=\"A warning message, with listeners bind to Cancel and Confirm button...\"\n                android:layout_width=\"200dp\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"14sp\"\n                android:layout_marginTop=\"15dp\"\n                android:textColor=\"#797979\"/>\n\n        <Button\n                android:layout_centerHorizontal=\"true\"\n                android:layout_below=\"@id/txt_6\"\n                android:id=\"@+id/warning_cancel_test\"\n                style=\"@style/dialog_blue_button\"\n                android:layout_margin=\"10dp\"\n                android:text=\"Try me!\"/>\n\n        <TextView\n                android:id=\"@+id/txt_7\"\n                android:layout_alignLeft=\"@id/logo_img\"\n                android:layout_below=\"@id/warning_cancel_test\"\n                android:layout_marginLeft=\"15dp\"\n                android:text=\"A message with a custom icon\"\n                android:layout_width=\"200dp\"\n                android:layout_height=\"wrap_content\"\n                android:textSize=\"14sp\"\n                android:layout_marginTop=\"15dp\"\n                android:textColor=\"#797979\"/>\n\n        <Button\n                android:layout_centerHorizontal=\"true\"\n                android:layout_below=\"@id/txt_7\"\n                android:id=\"@+id/custom_img_test\"\n                style=\"@style/dialog_blue_button\"\n                android:layout_margin=\"10dp\"\n                android:text=\"Try me!\"/>\n\n    </RelativeLayout>\n</ScrollView>\n\n"
  },
  {
    "path": "sample/src/main/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"app_name\">SweetAlertDialog</string>\n</resources>\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':library', ':sample'"
  }
]