How to fill a view with another with Material Design Animation?

前端 未结 2 614
攒了一身酷
攒了一身酷 2020-12-12 09:09

I\'m trying to go around different functionality integrated with Android Material Design but I can\'t to do this type of animation when a view fill another

2条回答
  •  我在风中等你
    2020-12-12 10:11

    The solution to do that is pathInterpolator and the name of this effect is Curved Motion.

    Animations in material design rely on curves for time interpolation and spatial movement patterns. With Android 5.0 (API level 21) and above, you can define custom timing curves and curved motion patterns for animations.

    You can see how to implement it here :

    http://developer.android.com/training/material/animations.html#CurvedMotion

    And sample on GitHub HERE :

    enter image description here

提交回复
热议问题