Get Animated (Android Dev Summit '18)



Android offers a range of animation systems—from ObjectAnimator, to window animations, transitions, physics based animations and now MotionLayout, which is a new class available in the ConstraintLayout 2.0 library that can manage motion and widget animation in applications.

This talk provides an exhaustive overview of the various systems, showing how and when to use each one, and how to make them play together nicely. Knowing the difference between the systems will help you to quickly and…

25 Comments

  1. how to implement motion layout in side viewpager to view , gone some content of viewpager item

  2. Usefull video. Where and when we could try transition tool? There is alredy year since you introduce it

  3. Nice overview of all animation frameworks, gives me pointers on what to learn next for animations in Android

  4. 12:26 I try that code, it's doesn't work but when I change textView.invalidate() to textView.setText(spannable), it works well

  5. 1:15 Android Animation APIs (overview) :
    View Animations
    Value Animator
    Object Animator
    View Property Animator
    Transitions
    Animated Vector Drawable
    Physics
    Motion Layout
    2:52 One single use case where View Animations are still required
    And that is when you are doing Window Animations, when a new activity launches
    3:34 Other use case for View/Window Animations is if fragment transactions are being done
    3:56 So, When to use View Animations(android.view.animation) :
    Window animations
    Fragment animations requiring measured size
    4:17 Animator
    5:25 Animators
    ObjectAnimator
    ValueAnimator
    Animator
    AnimatorSet
    5:37 ViewPropertyAnimator -> ValueAnimator -> Animator
    7:25 PropertyValueHolder demo
    8:30 ObjectAnimator demo code
    ObjectAnimator.ofPropertyValuesHolder(failText, scale X, Scale Y, alpha)..
    8:38 Above PropertyValueHolders in xml
    9:25 ViewPropertyAnimator
    11:10 ValueAnimator
    12:44 When to use which Animator
    ObjectAnimator – general purpose, property animator
    ValueAnimator – custom animation
    ViewPropertyAnimator – multiple properties on the same view, fire and forget
    PropertyValuesHolder – multiple property on the same object
    AnimatorSet – choreograph a set of animations
    14:10 Animated Vector Drawable
    It connects together Vector Drawable to one and multiple objects of Animator
    15:12 When to use AnimatedVectorDrawable :
    Icon animations
    Fire & forget animations
    Performance critical
    15:50 Physics based Animations
    Interruptible
    Continuity
    Realistic look
    19:20 Transitions
    21:45 When too use Transitions :
    Shared element activity transitions
    Window content enter/exit
    Modularize animations
    Simple changes
    22:13 Motion
    22:35 Constraint Layout 2.0 :- Helpers
    26:20 Motion Layout

Leave a Reply

Your email address will not be published. Required fields are marked *