-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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] Splash Screen BaseSize broken #10275
Comments
i wonder if there is a future were splash screens and icons are working correctly in maui dotnet/maui#10275
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
This is going to be fixed with #10516 |
I noticed once I rebuild the project it sets it back to fill. Is anyone else seeing this? Is there a current workaround for that? |
Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you! |
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.
![](https://user-images.githubusercontent.com/3210391/191838638-04ed5ea4-068a-417b-aa6f-191f639bfc3a.png)
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: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.Steps to Reproduce
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 theandroid:gravity
fromfill
tocenter
Relevant log output
No response
The text was updated successfully, but these errors were encountered: