protected override void UpdateBackgroundColor()
		{
			if (_textInputLayout == null)
				return;

			_textInputLayout.BoxBackgroundColor = MaterialColors.CreateEntryFilledInputBackgroundColor(Element.BackgroundColor, Element.TextColor);
		}
Exemplo n.º 2
0
        protected override void UpdateBackgroundColor()
        {
            if (_textInputLayout == null)
            {
                return;
            }

            if (Element.BackgroundColor == Color.Default)
            {
                if (Element.TextColor != Color.Default)
                {
                    _textInputLayout.BoxBackgroundColor = MaterialColors.CreateEntryFilledInputBackgroundColor(TextColor);
                }
                else
                {
                    _textInputLayout.BoxBackgroundColor = MaterialColors.CreateEntryFilledInputBackgroundColor(MaterialColors.Light.PrimaryColorVariant);
                }
            }
            else
            {
                _textInputLayout.BoxBackgroundColor = Element.BackgroundColor.ToAndroid();
            }
        }