-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] MauiIcon BaseSize and ForegroundScale doesn't work #7305
Copy link
Copy link
Closed
Labels
area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, ResizetizerSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizerfixed-in-6.0.408Look for this fix in 6.0.408!Look for this fix in 6.0.408!platform/androids/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, ResizetizerSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizerfixed-in-6.0.408Look for this fix in 6.0.408!Look for this fix in 6.0.408!platform/androids/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
There is no way to preserve aspect ratio or to scale the icon inside the icon area.
My app icon looks awful due to the fact that it stretches somehow through the icon area (both stretched and cropped when not a square probably).
Simulation of the MauiIcon behavior:


Image
Result:
Setting
BaseSizeandForegroundScaleattributes onMauiIcondoes nothing although the behavior is documented in https://docs.microsoft.com/en-us/dotnet/maui/user-interface/images/app-iconsSteps to Reproduce
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
No response
Relevant log output
No response