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?
fo...@gmail.com <fo...@gmail.com> #3
windowSplashScreenAnimationDuration is set 10000.
windowSplashScreenBackground is #fff and #000 for dark theme.
The animation duration of Animated Vector Drawable is 1600.
I might not be able to share the icon since it is the one we are going to use in production. Is there any working Animated Vector Drawable you can provide from your side for us to compare? Anything from unit test?
windowSplashScreenBackground is #fff and #000 for dark theme.
The animation duration of Animated Vector Drawable is 1600.
I might not be able to share the icon since it is the one we are going to use in production. Is there any working Animated Vector Drawable you can provide from your side for us to compare? Anything from unit test?
ca...@google.com <ca...@google.com> #4
Here is the sample of Animated Vector Drawable. (Not the one mentioned earlier)
Description
Artifact used (ex. androidx.appcompat:appcompat:1.0.0-alpha1):
androidx.core:core-splashscreen
Version used:
1.0.0-alpha01
Theme used:
Theme.MaterialComponents.DayNight
Devices/Android versions reproduced on:
Samsung Galaxy Note 9 - SM-N960U (Android 10, API 30)
- Relevant code to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
Import the compat SplashScreen dependency as specified in the migration docs here
Use a Theme.SplashScreen for the starting activity and call `installSplashScreen()` during onCreate. Increate the `windowSplashScreenAnimationDuration` to 4000 (4s) and observe that the AVD doesn't animate during app launch on API 30. This same configuration works as expected on Android 12 as expected.