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?
je...@gmail.com <je...@gmail.com> #3
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
jo...@gmail.com <jo...@gmail.com> #5
In the <objectAnimator
tag, you need the repeat*
attributes
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:valueTo="200"
android:valueType="floatType"
android:propertyName="y"
android:repeatCount="1"
android:repeatMode="reverse"/>
ca...@google.com <ca...@google.com> #6
jo...@gmail.com <jo...@gmail.com> #7
ca...@google.com <ca...@google.com> #8
In that case, you'd need to manually make you application repeat using other ObjecAnimator. Since the splash screen is supposed to be short lived, an animation shouldn't need to be repeated.
If the loading time of your application is too high and require the use of some progress indicator, then I suggest to implement that in the app directly, ideally using skeletons loaders (
je...@gmail.com <je...@gmail.com> #9
ma...@marcardar.com <ma...@marcardar.com> #10
That's definitely something worth discussing internally, I've added it to the list of thing to consider for the next version. Thanks for your feedback.
ey...@gmail.com <ey...@gmail.com> #11
unfortunately, this is not possible without creating another Theme (like Theme.SplashScreen.AdaptiveIcon)
Sounds like a good solution, thanks! Please let us know when it will be available.
Description
Component used: core-splashscreen Version used: 1.0.0-alpha02 Devices/Android versions reproduced on: API < 31
When using an adaptive icon in the splash screen on Alpha02 any devicr running less than 31 the icon gets scaled and cropped incorrectly.