question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve Android 12+ splash images

See original GitHub issue

Description

The current behavior is that the splash screen is clipped on Android 12+. Previously, Android would just display the image as-is and you would have to do all the work yourself.

In Android 12, things got smarter and now the image is clipped inside a circle and you could potentially have a different foreground/background layer like the adaptive icons.

https://developer.android.com/develop/ui/views/launch/splash-screen

Public API Changes

None.

Intended Use-Case

We could leverage the same properties of <MauiIcon> and do splash screens better. We can use the same logic to make adaptive icons, but just in the drawable folder and not generate the xml. Then the splash screen uses that drawable pair to make a nicer icon.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mattleibowcommented, Oct 11, 2022

@janseris what version of maui are you using? I think this was fixed in the version that went out with .NET 7 RC 1. The image is now shrunk to fit inside the circle.

0reactions
fgiacomellicommented, Dec 22, 2022

Hello, I just tryed with VS 17.5.0 preview 2, because I read that the problem of the round image on Android >= 12 was solved, but on my test I continue to see my splash icon, that is a rectangle, filled and stretched in a circle. I think it’s related to the #9886, that is marked as solved. I’m deploying on Android 12, target version net 7.0.

In which version can we expect it will be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Splash screens | Android Developers
Starting in Android 12, the SplashScreen API lets apps launch with animation, including an ... An image showing the elements contained in a...
Read more >
A Comprehensive Guide to Android 12's Splash Screen API
By default all apps on Android 12 will show a splash screen with the app icon at the centre. Sounds great until you...
Read more >
Splash Screen in Android
An in-depth guide on the Android's splash screen. Image by justinmind. Splash screen is a screen that loads when you launch an app....
Read more >
Implementing the Perfect Splash Screen in Android
Step 1. Create Background for Splash Screen in drawable/ splash_background .xml, the bitmap is the image we want to show.
Read more >
Splash Screen Tutorial for Android
Learn how to implement splash screen in new and existing Android apps, using the SplashScreen API introduced in Android 12.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found