androidstylessplash-screenmauiandroid-splashscreen

Android windowSplashScreenBrandingImage over windowSplashScreenAnimatedIcon if ScreenOrientation.SensorLandscape in some phone


I create a simple splash screen with an AnimatedIcon (the black circle ... a simple block.png) and a BrandingImage (the red square: arborisoft_branding.png)

<?xml version="1.0" encoding="UTF-8"?>
<resources>
    <style name="My.SplashTheme" parent="Maui.SplashTheme">
        <item name="android:windowBackground">@drawable/arborisoft_background</item>
        <item name="android:windowSplashScreenBackground">#FFFFFF</item>
        <item name="android:windowSplashScreenAnimatedIcon">@drawable/block</item>
        <item name="android:windowSplashScreenBrandingImage">@drawable/arborisoft_branding</item>
        <item name="android:windowSplashScreenAnimationDuration">0</item>
    </style>
</resources>

No problemo on Samsung Galaxy S20+ :

But on some phones the BrandingImage goes above AnimatedIcon !

enter image description here

Can we configure something more? a maximum size of the AnimatedIcon, a margin, a position of the BrandingImage?

Thanks !


Solution

  • It's disappointing that the BrandingImage is displayed above the AnimatedIcon. I had to do a trick by playing on the height and positionning of the content of my images :(

    But thank you!

    Test result