private void reset() {
if (this.mAnimator == null || !this.mAnimator.isRunning()) {
this.mAnimator = ObjectAnimator.ofInt(this, "t", new int[]{((int) (-this.distance)) /
4, 0});
this.mAnimator.setDuration(150);
this.mAnimator.addListener(new AnimatorListenerAdapter() {
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
PullToZoomScrollView.this.isPreparePull = false;
if (PullToZoomScrollView.this.distance / aj.hA > ((float)
PullToZoomScrollView.this.DEFAULT_PULL_HEIGHT)) {
if (PullToZoomScrollView.this.onPullToZoomListener != null) {
PullToZoomScrollView.this.onPullToZoomListener.onPull();
}
} else if (PullToZoomScrollView.this.onPullToZoomListener != null) {
PullToZoomScrollView.this.onPullToZoomListener.onCancelPull();
}
}
});
this.mAnimator.start();
}
}
PullToZoomScrollView.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:boohee_v5.6
作者:
评论列表
文章目录