I’m using new splash screen API, I want to have image as background and get rid of icon that appears in the middle of splash screen.
I achieved that by setting the icon to empty drawable, but it seems like a stupid idea. Is there a better, proper way to do it?
splash.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.MyApp.Splash" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@drawable/img_splash</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/empty</item>
<item name="postSplashScreenTheme">@style/Theme.MyApp</item>
</style>
</resources>
empty.xml:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"/>
2