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?
ho...@gmail.com <ho...@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
ho...@gmail.com <ho...@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"/>
ho...@gmail.com <ho...@gmail.com> #6
ho...@gmail.com <ho...@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 (
ho...@gmail.com <ho...@gmail.com> #9
ca...@google.com <ca...@google.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.
ne...@gmail.com <ne...@gmail.com> #11
ho...@gmail.com <ho...@gmail.com> #12
ca...@google.com <ca...@google.com> #13
That's great! Thank you for letting me know.
ho...@gmail.com <ho...@gmail.com> #14
ca...@google.com <ca...@google.com> #15
No, this is defined by the system, but nothing prevent you for adding margin in your icon directly.
If the icon background is set and different from the splash screen background, the icon will be smaller but then you'll see a masked background.
Description
Version used: 1.0.0-alpha01
The circular shape animated icon (Animated Vector Drawable) displays squircle in splash screen. Is there any way to set it to display in circular shape?