public static void UpdateFromFormsControl(this TextView textView, string text, Color formsColor, Font formsFont, TextAlignment textAlignment) { textView.Text = text; textView.SetTextColor(formsColor.ToAndroid(Color.Default)); textView.UpdateFont(formsFont); textView.Gravity = textAlignment.ToNative(); }
public static UITextAlignment ToNative(this TextAlignment alignment, IView view) => alignment.ToNative(view.FlowDirection == FlowDirection.LeftToRight);