需求:
修改ProgressBar的圆圈颜色
代码
ProgressBar pb = new ProgressBar(context);
Drawable drawable = pb.getIndeterminateDrawable();
DrawableCompat.setTint(drawable, ContextCompat.getColor(context, R.color.progressBarColor));
pb.setIndeterminateDrawable(drawable);