Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splashscreen Icon not showing entirely

I use the new splashscreen api to add an evenly splashscreen to all android versions down to API Level 23. Are there any requirements for the splash icon? Currently i try to use a svg and i thought it would be sized automatically on different screens. Does anyone experienced this aswell and has a workaround or knows those (hidden?) requirements?

I use the latest splashscreen api version (1.0.0-alpha02) and this is my theme:

    <style name="SplashTheme" parent="Theme.SplashScreen">
        <item name="windowSplashScreenBackground">@color/colorPrimary</item>
        <item name="windowSplashScreenAnimatedIcon">@drawable/ic_disney_wordmark</item>
        <item name="postSplashScreenTheme">@style/AppTheme</item>
        <item name="windowSplashScreenAnimationDuration">1000</item>
    </style> 

This is the ouput with the ic_disney_wordmark as example which is an svg: enter image description here

Thanks for your help!

like image 532
Lars Avatar asked Dec 17 '25 18:12

Lars


1 Answers

Do what I did, create an icon as an image in Android Studio, a right-click on drawable then new/image asset, choose a source from your SVG, and then resize it to fit the circle (be visible), and that is all. Then point to the foreground part of the created file in your splash configuration.

like image 136
Nenad Štrbić Avatar answered Dec 19 '25 11:12

Nenad Štrbić



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!