From 3004db03985ea07db5f100c4f9303d1145d8c90e Mon Sep 17 00:00:00 2001 From: ahmmedrejowan Date: Wed, 21 Sep 2022 20:39:47 +0600 Subject: [PATCH] Reworking design and functions --- .../java/io/github/cutelibs/cutedialogdemo/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/cutelibs/cutedialogdemo/MainActivity.java b/app/src/main/java/io/github/cutelibs/cutedialogdemo/MainActivity.java index 4f9df69..e8cb72b 100644 --- a/app/src/main/java/io/github/cutelibs/cutedialogdemo/MainActivity.java +++ b/app/src/main/java/io/github/cutelibs/cutedialogdemo/MainActivity.java @@ -75,8 +75,8 @@ protected void onCreate(Bundle savedInstanceState) { .setDesc("I don't know what went wrong, but there is a problem.", 0, 0, 0) .setPositiveButtonText("Try Again", R.color.white, 0) .setNegativeButtonText("Cancel", R.color.design1, 0) - .setPositiveButtonStyle(0, R.color.design1, Color.RED, 2, 0) - .setNegativeButtonStyle(0, 0, R.color.design1, 5, 0) + .setPositiveButtonStyle(0, R.color.design1, 0, 0, 0) + .setNegativeButtonStyle(0, 0, R.color.design1, 3, 0) .setPositiveButtonListener(v1 -> Toast.makeText(this, "Positive Button Clicked", Toast.LENGTH_SHORT).show()) .setNegativeButtonListener(v12 -> Toast.makeText(this, "Negative Button Clicked", Toast.LENGTH_SHORT).show()) .setCloseListener(v13 -> Toast.makeText(this, "Close Icon Clicked", Toast.LENGTH_SHORT).show())