public void releaseView() {
if (mAnimator==null){
final ValueAnimator valAnimator=ValueAnimator.ofFloat(mPercent,0f);
valAnimator.setDuration(500);
valAnimator.setInterpolator(new OvershootInterpolator());
valAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator valueAnimator) {
float animValue= (float) valAnimator.getAnimatedValue();
setPercent(animValue);
}
});
this.mAnimator=valAnimator;
}else {
mAnimator.cancel();
mAnimator.setFloatValues(mPercent,0f);
}
mAnimator.start();
}
SkyLayout.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:PlainFly
作者:
评论列表
文章目录