private static void SetBorderGradients(this AView view, GradientBrush gradientBrush) { view.GetGradientDrawable()?.SetBorderGradient(gradientBrush); }
private static void SetDashedBorder(this AView view, double dashWidth, double dashGap) { view.GetGradientDrawable()?.SetDashedStroke(dashWidth, dashGap); }
private static void SetBorder(this AView view, Color color, double width) { view.GetGradientDrawable()?.SetStroke(width, color); }
public static void SetColor(this AView view, Color color) { view.GetGradientDrawable()?.SetColor(color); }
private static void SetBorderGradients(this AView view, IList <GradientStop> gradients, float angle) { view.GetGradientDrawable().SetBorderGradient(gradients, angle); }
public static void SetCornerRadius(this AView view, CornerRadius cornerRadius) { view.GetGradientDrawable().SetCornerRadius(cornerRadius); }
public static void SetCornerRadius(this AView view, CornerRadius cornerRadius) { view.GetGradientDrawable()?.SetCornerRadius(cornerRadius); view.GetRippleMaskDrawable()?.SetCornerRadii( cornerRadius.ToRadii(view.Context.Resources.DisplayMetrics.Density)); }