private void startScaleUpAnimation(Animation.AnimationListener listener) {
mLoadingView.setVisibility(View.VISIBLE);
if (android.os.Build.VERSION.SDK_INT >= 11) {
mProgress.setAlpha(255);
}
Animation mScaleAnimation = new Animation() {
@Override
public void applyTransformation(float interpolatedTime, Transformation t) {
setAnimationProgress(interpolatedTime);
}
};
mScaleAnimation.setDuration(getResources().getInteger(android.R.integer.config_mediumAnimTime));
if (listener != null) {
mLoadingView.setAnimationListener(listener);
}
mLoadingView.clearAnimation();
mLoadingView.startAnimation(mScaleAnimation);
}
SwipeToRefreshLayout.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:AndroidOpen
作者:
评论列表
文章目录