WAI
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
The splash screen is dismissed as soon as the app is drawn and doesn't wait for the animation to finish which might be the reason why the animation doesn't repeat.
At most, the icon will animate for the value set in windowSplashScreenAnimationDuration
.
If that's not the case, can you please share your theme values and icon file? or at least a reproduction sample?
Description
Version used: 1.0.0-alpha02
Devices/Android versions reproduced on: Emulator Google Pixel 3a with Android 12
I'm currently trying to add a drawable-file with gradient-background (see drawable_file.png) as my splashscreen-background, but unfortunately there's no option to set a drawable via `windowSplashScreenBackground`, as only colors are accepted. As a workaround, I'm using `android:windowBackground` like you can see in following example:
`
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
<item name="android:windowBackground">@drawable/splash_background_gradient</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
.....
`
However, when I run the app on my emulator (Google Pixel 3a Android 12) the background is not gradient, but a mix of both defined gradient-colors (see app_screenshot.png). Could you take a look here?