1.7.4 - Better out-of-the-box performance, improved state handling
AdditiveAnimator
now knows which animations require a call to requestLayout
and will just call invalidate
for animations which don't require it.
This change deprecates skipRequestLayout
, since it is no longer needed and therefore comes with a nice automatic performance improvement.
Another improvement was made regarding animation state handling:
States no longer require an id
property, since they are now checked for equality instead.
Important: You should not reuse AnimationState
objects for multiple animations since that can cause race conditions when triggering their respective AnimationEndAction
when quickly toggling between states.