Obsolete
Status Update
Comments
sh...@gmail.com <sh...@gmail.com> #2
scrimBackground is still useless
mc...@gmail.com <mc...@gmail.com> #3
This seems to be because MaterialAlertDialogBuilder creates a custom InsetDrawable to style the dialog background.
I think this could be changed to properly create a window background that properly uses theme styles for scrimBackground or at the very least the windowBackgroundDrawable style attribute.
It would need to be changed here:
https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/dialog/MaterialAlertDialogBuilder.java#L151
One could, in theory, set the window background after `create()` is called via something like `dialog.getWindow().setBackgroundDrawable()`.
But, this is less than ideal and requires it to be set every where a dialog is created.
Additionally, this completely ignores all theme styles, which I think is what we want to promote, right?
Why is MaterialAlertDialogBuilder skipping usage of dialog theme styles?
Please fix this 🙏
I think this could be changed to properly create a window background that properly uses theme styles for scrimBackground or at the very least the windowBackgroundDrawable style attribute.
It would need to be changed here:
One could, in theory, set the window background after `create()` is called via something like `dialog.getWindow().setBackgroundDrawable()`.
But, this is less than ideal and requires it to be set every where a dialog is created.
Additionally, this completely ignores all theme styles, which I think is what we want to promote, right?
Why is MaterialAlertDialogBuilder skipping usage of dialog theme styles?
Please fix this 🙏
fu...@gmail.com <fu...@gmail.com> #4
this is very annoying, i try with `dialog.getWindow().setBackgroundDrawable()`, but this change dialogbox background not scrimbackground
[Deleted User] <[Deleted User]> #5
Any update about this issue? :'(
ke...@ebay.com <ke...@ebay.com> #6
Any update on when this will be fixed? This issue makes the scrim very insufficient in dark mode
st...@google.com <st...@google.com> #7
Material for Android does not actively monitor this Issue Tracker, and we will be closing these issues as obsolete.
If you believe the issue is still affecting your project, please file a new issue athttps://github.com/material-components/material-components-android/issues .
Please be sure that the issue is reproducible using the latest version of the Material library, themes, and styles, and make sure to provide all relevant repro information (steps, screenshots, and a video).
Thank you.
If you believe the issue is still affecting your project, please file a new issue at
Please be sure that the issue is reproducible using the latest version of the Material library, themes, and styles, and make sure to provide all relevant repro information (steps, screenshots, and a video).
Thank you.
Description