0

I've followed Migrate your splash screen implementation, and it promises that After you migrate using the SplashScreen compat library, the system displays the same splash screen on all versions of Android.

I've created the new splash theme, but the issue is that, I don't have an option to put windowSplashScreenBrandingImage for style belowe values-v31, that is, for android lower than 12. So the bottom bar that we have been using previously can'be shown as of now.

values-v31/style

 <?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.App.SplashThemeNew" parent="Theme.SplashScreen">
        <item name="windowSplashScreenBackground">@android:color/white</item>
        <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
        <item name="android:windowSplashScreenBrandingImage">
            @drawable/background_splash_12_bottom_strp
        </item>
        <item name="postSplashScreenTheme">@style/AppTheme</item>
    </style>
</resources>

style

 <style name="Theme.App.SplashThemeNew" parent="Theme.SplashScreen">
    <item name="windowSplashScreenBackground">@color/white</item>
    <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
    <item name="postSplashScreenTheme">@style/AppTheme</item>
</style>

While according to the Migration guide, it should be possible, Has anyone some ideas about this?

Thanks for your time and attention.

Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25

1 Answers1

0

Unfortunately it is not possible to use the android:windowSplashScreenBrandingImage on api lower than 31. This issue has officially been reported as a feature request on the IssueTracker, but for now they say that it won't be implemented (Source). However, it is still assigned so it might get implemented in the future.

Besides that, the Android docs state that The design guidelines recommend against using a branding image.

That being said, I found an Medium article that might help you achieve what you are looking for.

Macksly
  • 141
  • 5