WAI
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
Thanks for the issue. We've already fixed this for the upcoming Navigation 2.2.0-rc03.
ho...@gmail.com <ho...@gmail.com> #3
🤘
ho...@gmail.com <ho...@gmail.com> #4
Here is the sample of Animated Vector Drawable. (Not the one mentioned earlier)
ca...@google.com <ca...@google.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
It makes sense for objectAnimator that all have the same startOffset and duration. What if there are series of objectAnimator which have different startOffset as the attachment - test_anim_2.xml?
ho...@gmail.com <ho...@gmail.com> #7
test_anim_3.xml has the expected effect. However, I try to avoid creating lots of objectAnimator for repeating animator. It will be great, if core-splashscreen API can support it.
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>
ho...@gmail.com <ho...@gmail.com> #9
Understood. However, we still think it's useful to have core-splashscreen API support animation replay. Thank you!
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.
Description
Version used: 1.0.0-alpha01
The animated icon (Animated Vector Drawable) only play one shot. How to make animation be played repeatedly?