private void startScaleDownReturnToStartAnimation(int from, AnimationListener listener) {
this.mFrom = from;
if (isAlphaUsedForScale()) {
this.mStartingScale = (float) this.mProgress.getAlpha();
} else {
this.mStartingScale = ViewCompat.getScaleX(this.mCircleView);
}
this.mScaleDownToStartAnimation = new Animation() {
public void applyTransformation(float interpolatedTime, Transformation t) {
SwipeRefreshLayout.this.setAnimationProgress(SwipeRefreshLayout.this.mStartingScale + ((-SwipeRefreshLayout.this.mStartingScale) * interpolatedTime));
SwipeRefreshLayout.this.moveToStart(interpolatedTime);
}
};
this.mScaleDownToStartAnimation.setDuration(150);
if (listener != null) {
this.mCircleView.setAnimationListener(listener);
}
this.mCircleView.clearAnimation();
this.mCircleView.startAnimation(this.mScaleDownToStartAnimation);
}
SwipeRefreshLayout.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:letv
作者:
评论列表
文章目录