Splash screen-Jetpack compose

1.7k Views Asked by At

I want to integrate a splash screen in my android jetpack compose project . The screen has a background image and an icon at the center. I have tried splash screen api recommended in this official link.

But this troubles me out because we cant add the background image or any custom layout on theme specified for splash screen. I just found docs to add a background color and icon. Also it does not work for devices run below android 12.

When i try to use normal activity as a launcher and handle splash screen logics manually, the app is giving a blank screen at the start up.I have tried it just in an empty compose project also, so its nothing about startup load . I have also added this themes.xml

<item name="android:windowDisablePreview">true</item>
<item name="android:windowIsTranslucent">false</item>
<item name="android:windowIsFloating">false</item>

I want to have this splash integrated which will work on above nougat devices and also the app startup wont give a blank screen at the startup. What is the best approach for this ?

0

There are 0 best solutions below