Skip to content
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

Generate a more complete splash screen drawable set for Android #10516

Merged
merged 6 commits into from
Oct 11, 2022

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented Oct 6, 2022

Description of Change

Currently, the asset generating is just a single file - but to fix the splash on android, we need per-OS-version resources.

Issues Fixed

Screenshots

In the screenshots below, the image is NOT square and is relatively large - yet is not stretched nor filling the entire screen. The Android 12+ images have the toes clipped and this is because the splash is forced into a circle and our image is basically using that.

I do not want to automatically resize the image to fit as this may not be desirable. In most cases it is safer to just make sure the actual visible image is only 2/3 of the square size.

For example, if your image fits into a square of 108x108, then the visible area may be clipped outside the 72x72 region.

BEFORE

Android 21 Android 33

AFTER

Pre Android 12 / API 31

Android 5 / API 21 Android 6 / API 23 Android 10 / API 29 Android 11 / API 30
Screenshot_1665128779 Screenshot_1665128924 Screenshot_1665129221 Screenshot_1665129693

Post Android 12 / API 31

Android 12 / API 31 Android 12.1 / API 32 Android 13 / API 33
Screenshot_1665128598 Screenshot_1665128609 Screenshot_1665128609

@Eilon Eilon added the area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer label Oct 6, 2022
@mattleibow mattleibow added this to the 7.0 milestone Oct 7, 2022
@mattleibow mattleibow merged commit 4e824e9 into main Oct 11, 2022
@mattleibow mattleibow deleted the dev/prepare-5676 branch October 11, 2022 11:14
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2023
@samhouts samhouts added the fixed-in-7.0.49 Look for this fix in 7.0.49 GA! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer fixed-in-7.0.49 Look for this fix in 7.0.49 GA! platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Splash Screen BaseSize broken Generated splash screen does not retain aspect ratio
5 participants