Improve Android 12+ splash images
See original GitHub issueDescription
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:
- Created a year ago
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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