|
@@ -2,6 +2,8 @@ package com.kdanmobile.kdan_others_library_for_android;
|
|
|
|
|
|
import android.content.Context;
|
|
|
import android.graphics.Color;
|
|
|
+import android.support.annotation.ColorInt;
|
|
|
+import android.support.annotation.ColorRes;
|
|
|
|
|
|
import com.afollestad.materialdialogs.MaterialDialog;
|
|
|
|
|
@@ -37,6 +39,32 @@ public class ZendeskLoginNotifyDialog {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ public void setContentColor(@ColorInt int color) {
|
|
|
+ builder.contentColor(color);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setContentColorRes(@ColorRes int colorRes) {
|
|
|
+ builder.contentColorRes(colorRes);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBackgroundColor(@ColorInt int color) {
|
|
|
+ builder.backgroundColor(color);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBackgroundColorRes(@ColorRes int colorRes) {
|
|
|
+ builder.backgroundColorRes(colorRes);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setButtonColor(@ColorInt int color) {
|
|
|
+ builder.positiveColor(color);
|
|
|
+ builder.negativeColor(color);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setButtonColorRes(@ColorRes int colorRes) {
|
|
|
+ builder.positiveColorRes(colorRes);
|
|
|
+ builder.negativeColorRes(colorRes);
|
|
|
+ }
|
|
|
+
|
|
|
public void show() {
|
|
|
if (builder != null) {
|
|
|
builder.show();
|