如何填写一个视图与另一个与材料设计动画? [英] How to fill a view with another with Material Design Animation?

查看:167
本文介绍了如何填写一个视图与另一个与材料设计动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图去解决不同的功能集成在一起的 Android的材料设计,但我不能做这种类型的动画时,认为填补另一个这样的:

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 like that :

你知道该怎么做或库/项目,做一个这样的例子?

推荐答案

要做到这一点,解决方法是 pathInterpolator 键,这种效应的名称是曲线运动

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

在材料设计动画依靠曲线时间内插   和空间运动模式。而对于Android 5.0(API级别21)   上面,你可以定义自定义定时曲线和曲面运动模式   为动画。

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 :

<一个href="http://developer.android.com/training/material/animations.html#CurvedMotion">http://developer.android.com/training/material/animations.html#CurvedMotion

和GitHub上样品的 这里

And sample on GitHub HERE :

这篇关于如何填写一个视图与另一个与材料设计动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆