use of carbon.view.StrokeView in project Carbon by ZieIony.
the class Carbon method initStroke.
public static void initStroke(StrokeView strokeView, TypedArray a, int[] ids) {
int carbon_stroke = ids[0];
int carbon_strokeWidth = ids[1];
View view = (View) strokeView;
ColorStateList color = getDefaultColorStateList(view, a, carbon_stroke);
if (color == null)
color = a.getColorStateList(carbon_stroke);
if (color != null)
strokeView.setStroke(AnimatedColorStateList.fromList(color, animation -> view.postInvalidate()));
strokeView.setStrokeWidth(a.getDimension(carbon_strokeWidth, 0));
}
Aggregations