Assigned
Status Update
Comments
ti...@google.com <ti...@google.com>
do...@gmail.com <do...@gmail.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
ti...@google.com <ti...@google.com> #3
Re #2: Good point, it's a good idea to create reversible keyframes.
Keep in mind though, keyframes are not the best animation for handling interruptions, especially when a third state comes into play. Out of curiosity, what's your expected behavior when animating between 0 and 100, the target changes (due to layout size change, etc) to 150f?
Description
Hello (Doris)!
Currentlyhttps://developer.android.com/reference/kotlin/android/animation/Keyframe
KeyframesSpecConfig
requires you to define keyframes in terms of their exact duration in milliseconds. It would be nice if there was a way to construct keyframes in terms of their fractions instead. This would mirror the behavior of theandroid.animation.Keyframe
class here:Using fractions is slightly more flexible (since you can construct them w/o knowing the exact animation duration), and also makes it easier to port existing
AnimatedVectorDrawable
s (and other animations) which use theandroid.animation.Keyframe
class to the Compose APIs.There is actually a pretty similar request regarding the gradient API as well, which is worth pointing out: https://issuetracker.google.com/issues/173066799