ScaleLoadingLayout.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:Hotspot-master-devp 作者:
public ScaleLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
        super(context, mode, scrollDirection, attrs);
        /**创建缩放动画动画*/
        mRotateDrawableWhilePulling = attrs.getBoolean(R.styleable.PullToRefresh_ptrRotateDrawableWhilePulling, true);

//      mContentLayout.setSca(ScaleType.MATRIX);
//      mHeaderImageMatrix = new Matrix();
//      mHeaderImage.setImageMatrix(mHeaderImageMatrix);

        mScalAnimation = new ScaleAnimation(BASE_SCALE, 1, Animation.RELATIVE_TO_SELF, BASE_SCALE, Animation.RELATIVE_TO_SELF,
                1);
        mScalAnimation.setInterpolator(ANIMATION_INTERPOLATOR);
        mScalAnimation.setDuration(ROTATION_ANIMATION_DURATION);
        mScalAnimation.setRepeatCount(Animation.INFINITE);
        mScalAnimation.setRepeatMode(Animation.RESTART);
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号