CustomDialogController自定义弹框设置颜色无效,如何设置自定义弹框的颜色?
private loadingDialogController: CustomDialogController | null = new CustomDialogController({
builder: CustomLoadingDialog(),
alignment: DialogAlignment.Center,
cornerRadius: 30,
backgroundColor: $r("app.color.color11"),
autoCancel: false,
gridCount: 2,
onWillDismiss: () => {
}
})
backgroundColor这个我设置了没有效果,在CustomLoadingDialog()中设置了父组件的背景颜色,但不能占满整个弹框,怎样设置弹框的颜色呢?
请参考示例: