diff --git a/README.md b/README.md index 1b5b970..2bac631 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ The simplest way to use Sweetalert is to add the library as aar dependency to yo com.github.taimoorsultani android-sweetalert2 - 1.2.0 + 1.3.0 **Gradle** @@ -73,7 +73,7 @@ The simplest way to use Sweetalert is to add the library as aar dependency to yo } dependencies { - implementation 'com.github.taimoorsultani:android-sweetalert2:1.2.0' + implementation 'com.github.taimoorsultani:android-sweetalert2:1.3.0' } ## Usage diff --git a/app/src/main/java/taimoor/sultani/android_sweetaler2/MainActivity.java b/app/src/main/java/taimoor/sultani/android_sweetaler2/MainActivity.java index 6b840f9..1457b21 100644 --- a/app/src/main/java/taimoor/sultani/android_sweetaler2/MainActivity.java +++ b/app/src/main/java/taimoor/sultani/android_sweetaler2/MainActivity.java @@ -4,11 +4,13 @@ import android.annotation.SuppressLint; import android.graphics.Color; +import android.graphics.PorterDuff; import android.os.Bundle; import android.os.CountDownTimer; import android.os.Handler; import android.os.Looper; import android.view.View; +import android.widget.Button; import android.widget.CheckBox; import android.widget.EditText; import android.widget.LinearLayout; @@ -270,11 +272,14 @@ public void onFinish() { .showCancelButton(true) .showConfirmButton(true) .setCancelButton("red", null) - .setCancelButtonBackgroundColor(Color.RED) + .setCancelButtonBackgroundColor("#5B2C6F") + .setCancelButtonTextColor("#D35400") .setNeutralButton("cyan", null) - .setNeutralButtonBackgroundColor(Color.CYAN) + .setNeutralButtonBackgroundColor("#21618C") + .setNeutralButtonTextColor("#2ECC71") .setConfirmButton("blue", null) - .setConfirmButtonBackgroundColor(Color.BLUE) + .setConfirmButtonBackgroundColor("#117864") + .setConfirmButtonTextColor("#EC7063") .show(); break; diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 0f47b4f..9f51dc4 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -41,7 +41,7 @@ style="@style/description_style" android:text="@string/show_material_progress" /> -