|
@@ -58,6 +58,7 @@ public class FullScreenDialog extends BaseDialog implements DialogXBaseBottomDia
|
|
|
protected DialogXAnimInterface<FullScreenDialog> dialogXAnimImpl;
|
|
|
protected boolean bottomNonSafetyAreaBySelf = false;
|
|
|
protected boolean hideActivityContentView;
|
|
|
+ protected Integer maskColor = null;
|
|
|
|
|
|
protected DialogLifecycleCallback<FullScreenDialog> dialogLifecycleCallback;
|
|
|
protected OnBackgroundMaskClickListener<FullScreenDialog> onBackgroundMaskClickListener;
|
|
@@ -316,6 +317,9 @@ public class FullScreenDialog extends BaseDialog implements DialogXBaseBottomDia
|
|
|
bkg.setClipToOutline(true);
|
|
|
}
|
|
|
}
|
|
|
+ if (maskColor != null) {
|
|
|
+ boxRoot.setBackgroundColor(maskColor);
|
|
|
+ }
|
|
|
|
|
|
if (onBindView != null) {
|
|
|
onBindView.bindParent(boxCustom, me);
|
|
@@ -784,4 +788,10 @@ public class FullScreenDialog extends BaseDialog implements DialogXBaseBottomDia
|
|
|
this.hideActivityContentView = hideActivityContentView;
|
|
|
return this;
|
|
|
}
|
|
|
+
|
|
|
+ public FullScreenDialog setMaskColor(@ColorInt int maskColor) {
|
|
|
+ this.maskColor = maskColor;
|
|
|
+ refreshUI();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
}
|