-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Android] "MaterialButton manages its own background" log message when setting BackgroundColor to Button #18898
Comments
I guess this is by design and not Maui, but Material. |
Sure, the log is Material, not Maui. |
Not sure. I am not pixel-moving expert. Maui probably allows changing background (legacy other to have the same API with other platforms), but modern Material does not like it. Don't know. I must dive in. |
I am also getting these logs. I imagine this hurts performance |
We're also getting these logs, a lot of them! Do we stop using Buttons? |
Any update on this. This seems to slow down rendering if there are buttons in a collectionview item |
Any news on this? I have this spamming in my output window |
This is also affecting release build performance. When will this get fixed so we can actually release our MAUI app? |
This is half our app's logging. |
Any evidence of this? |
This is not a bug, maui replaces the background because material does not support many of the features we want nor does it properly lay out the image and text. |
If a collection view is reusing views, this will only appear the very first time a button is created as there is a check https://github.com/material-components/material-components-android/blob/release-1.12/lib/java/com/google/android/material/button/MaterialButton.java#L439 |
Then, why do Maui use a MaterialButton, instead of an AppCompatButton or a Button? |
Description
When setting
BackgroundColor
(orBackground
) toButton
on Android, the following message is logged, even if the functionality works:Is this hidding some kind of bug? Is it possible to avoid this log?
Steps to Reproduce
Link to public reproduction project repository
https://github.com/tranb3r/Issues/tree/main/MauiAppMaterialButtonAndCheckbox
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: