FloatingTextEntry
FloatingTextEntry copied to clipboard
Solution for SetErrorColor() Android
Hi Alejandro! Thanks for your great solution. I have found a code for SetErrorColor method https://stackoverflow.com/questions/33709066/how-to-set-textinputlayout-error-message-colour.
if (Element.ErrorColor != null) { AColor errorColor = Element.ErrorColor.ToAndroid();
var fErrorView = Control.Class.GetDeclaredField("mErrorView");
fErrorView.Accessible = true;
var mErrorView =(TextView)fErrorView.Get(Control);
mErrorView.SetTextColor(errorColor);
mErrorView.RequestLayout();
}