public BaseProgressLayerDrawable(@NonNull Drawable[] layers, @NonNull Context context) {
super(layers);
mBackgroundAlpha = ThemeUtils.getFloatFromAttrRes(android.R.attr.disabledAlpha, 0, context);
setId(0, android.R.id.background);
mBackgroundDrawable = (BackgroundDrawableType) getDrawable(0);
setId(1, android.R.id.secondaryProgress);
mSecondaryProgressDrawable = (ProgressDrawableType) getDrawable(1);
setId(2, android.R.id.progress);
mProgressDrawable = (ProgressDrawableType) getDrawable(2);
int controlActivatedColor = ThemeUtils.getColorFromAttrRes(R.attr.colorControlActivated,
Color.BLACK, context);
setTint(controlActivatedColor);
}