Skip to content

[Android] Splash Screen BaseSize broken #10275

@nor0x

Description

@nor0x

Description

i have set a non-square SVG as my splash screen and changed the BaseSize accordingly.

<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?

it turns out its the android:gravity of the image \obj\Debug\net6.0-android\resizetizer\sp\maui_splash_image.xml if i change it from fill to center the splash screen works fine.

image

Steps to Reproduce

  1. Create new maui app
  2. set non-square splash image
  3. change BaseSize

Link 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.xml and change the android:gravity from fill to center

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions