MaterialProgressDrawable.java 文件源码

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

项目:ActionBarProgress 作者:
public static MaterialProgressDrawable create(@NonNull Context context) {
    Drawable[] layers = new Drawable[3];

    layers[0] = new ColorDrawable(ThemeUtils.getDisabledThemeAttrColor(context, R.attr.colorControlNormal));

    Drawable secondaryProgress = new ColorDrawable(ThemeUtils.getDisabledThemeAttrColor(context, R.attr.colorControlActivated));
    layers[1] = new ScaleDrawable(secondaryProgress, Gravity.START, 1f, -1f);

    Drawable progress = new ColorDrawable(ThemeUtils.getThemeAttrColor(context, R.attr.colorControlActivated));
    layers[2] = new ScaleDrawable(progress, Gravity.START, 1f, -1f);

    return new MaterialProgressDrawable(layers);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号