CircularAnimatedDrawable.java 文件源码

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

项目:RoundButton 作者:
/**
 * @param view        View to be animated
 * @param borderWidth The width of the spinning bar
 * @param arcColor    The color of the spinning bar
 */
public CircularAnimatedDrawable(View view, float borderWidth, int arcColor, @DrawableRes int innerResource, @ColorInt int innerResourceColorFilter) {
    mAnimatedView = view;
    mBorderWidth = borderWidth;

    if (innerResource != 0) {
        setInnerResource(innerResource);
        setInnerResourceColorFilter(innerResourceColorFilter);
    }

    mPaint = new Paint();
    mPaint.setAntiAlias(true);
    mPaint.setStyle(Paint.Style.STROKE);
    mPaint.setStrokeWidth(borderWidth);
    mPaint.setColor(arcColor);

    setupAnimations();

    shouldDraw = true;

    mAnimatorSet = new AnimatorSet();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号