-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Color] Update from 1.10.0 to 1.11.0 many components require android:background #4135
Comments
Hi @mywalkb. Thanks for filing an issue. For some reason I'm unable to see the images you've uploaded. Do you mind re-attaching the screenshots of the issue? |
Hi @hunterstich, thank you for your fast reply and sorry for my bad images and slow fix. After update to 1.11.0 Before update to 1.11.0 with version 1.10.0 |
I'm glad to know I'm not the only one with the issue. |
Update: After analysing my codebase I realised that some of the styles defined in my project were somehow overriding the ones defined by the material library (still not sure how that was possible if they were not being referenced upon build). After getting rid of the styles defined in my project the MaterialDatePicker UI seems to be displaying correctly on com.google.android.material:material:1.11.0 |
@mywalkb do you have dynamic colors enabled? Do you mind attaching a sample that reproduces the issue? |
@hunterstich yes I have dynamic colors enabled. |
@mywalkb Are the two different screenshots running on a device with different wallpapers? |
@hunterstich no, is the same AVD without changes. I installed, run, screenshot, no changes. |
@pekingme any idea regarding this? |
@mywalkb Thanks for reporting. Please prepare a simple sample can reproduce the issue. I have taken a look at your project. The I'll mark this closed. We'll take another look with a repro sample. |
Yes, it's true, but the issue appear when I update from 1.10.0 to 1.11.0 and no other changes are done. |
Description: I have an activity with more fragments, after the update from 1.10.0 to 1.11.0 or 1.12.0-beta01, the background color of some components is wrong, when I use system colors, while is correct if I force a color.
Some screenshots what happens after update. System color is blue.
As workaround I set
android:background="?android:colorBackground"
to some components in layout, but I understand which a wrong way to solve my issue.Expected behavior:
Here before update
Source code: No changes to code
Android API version: 34 tested also 33 same result
Material Library version: 1.11.0
Device: AVD Android 14
The text was updated successfully, but these errors were encountered: