Xamarin Android 12 splash screen

Micah Armantrout 11 Reputation points
2022-02-17T16:20:56.453+00:00

I am trying to make a splash screen for my app. It works really well for Android 11 but for Android 12 it just shows a blank screen

Android 11 Splash
Android 11

Android 12 Splash
175455-image.png

I have found that this bug is listed on github
https://github.com/xamarin/xamarin-android/issues/6517
but the work around does not work for me as I get these build errors.

175439-image.png

I have a stackoverflow question here

https://stackoverflow.com/questions/71135199/xamarin-splash-screen-android-11-vs-android-12

and a repro that reproduces my issue. Inside is also an example of the workaround not working

https://github.com/MicahArmantrout/SplashScreen

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,335 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Micah Armantrout 11 Reputation points
    2022-02-20T12:49:07.067+00:00

    I have updated my repro with a potential solution with two issues

    • the screen looks zoomed in (maybe this can be fixed messing with image sizes ?)
    • there is a colored screen right before the splash screen shows

    https://github.com/MicahArmantrout/SplashScreen/tree/main/SplashScreen

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.