public void OnTextChanged(ICharSequence s, int start, int before, int count) { m_LettersCount = s.Count(); int remainingLetters = k_MaxLetters - m_LettersCount; m_NumOfLettersTextView.SetTextColor(remainingLetters < 0 ? Android.Graphics.Color.Red : Android.Graphics.Color.White); m_NumOfLettersTextView.Text = "Letters: " + remainingLetters; }
public override void SetText(ICharSequence text, BufferType type) { SpannableString s = GetTextWithImages(Context, new Java.Lang.String(text.ToArray(), 0, text.Count())); base.SetText(s, BufferType.Spannable); }