-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Splash Screen BaseSize broken #10275
Copy link
Copy link
Closed
Labels
area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, ResizetizerSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizerfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.49Look for this fix in 7.0.49 GA!Look for this fix in 7.0.49 GA!platform/androidt/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-7.0.100fixed-in-7.0.101fixed-in-7.0.49Look for this fix in 7.0.49 GA!Look for this fix in 7.0.49 GA!platform/androidt/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
i have set a non-square SVG as my splash screen and changed the
BaseSizeaccordingly.<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="151,80" />nor0x/MauiFails@17b2040#diff-a0f7032d60e5462377d9323a6d81e9028fa2a86c70358cc59215c88ac22ec6c2
this however is not working correctly on Android and the splash image is squeezed into a square.

this happens in the net7.0 RC1 and was working correctly before that.I suspect that #9797 and especially the fixed sizes are causing this?maui/src/SingleProject/Resizetizer/test/UnitTests/testdata/androidsplash/maui_splash_image.xml
Line 5 in 06b9a87
it turns out its the
android:gravityof the image\obj\Debug\net6.0-android\resizetizer\sp\maui_splash_image.xmlif i change it from fill to center the splash screen works fine.Steps to Reproduce
BaseSizeLink to public reproduction project repository
https://github.com/nor0x/MauiFails
Version with bug
Unknown/Other (please specify)
Last version that worked well
6.0.424
Affected platforms
Android
Affected platform versions
tested on Android 11
Did you find any workaround?
locate
\obj\Debug\net6.0-android\resizetizer\sp\maui_splash_image.xmland change theandroid:gravityfromfilltocenterRelevant log output
No response