Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019-09-17:谈一谈插值器和估值器? #148

Open
MoJieBlog opened this issue Sep 17, 2019 · 3 comments
Open

2019-09-17:谈一谈插值器和估值器? #148

MoJieBlog opened this issue Sep 17, 2019 · 3 comments

Comments

@MoJieBlog
Copy link
Collaborator

No description provided.

@MoJieBlog
Copy link
Collaborator Author

最好可以谈下如何自定义

@leenickcode
Copy link

1、插值器,根据时间(动画时常)流逝的百分比来计算属性变化的百分比。系统默认的有匀速,加减速,减速插值器。
2、估值器,通过上面插值器得到的百分比计算出具体变化的值。系统默认的有整型,浮点型,颜色估值器
3、自定义只需要重写他们的evaluate方法就可以了。

@gabyallen
Copy link

gabyallen commented Sep 17, 2019

插值器,根据时间动画的时常流逝的百分比来计算属性值变化的百分比,一般有匀速,加速,减速
估值器,通过插值器得到百分比计算出具体变化的值,一般有整型,浮点型,颜色估值器
最后直接调用AnimatorSet.start();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants