I am trying to add TextWatcher to AutoCompleteTextView. In Activity I have Extends with Android.Text.ITextWatcher
and implement interface methods. The problem is that, String helperString
is not changing. I also added autocomplete.AddTextChangedListener(this);
to AutoCompleteTextView. What am i doing wrong?
public void AfterTextChanged(IEditable s)
{
helperText = this.FindViewById<TextView>(Resource.Id.helper_text);
String helperString = s.ToString().ToUpper();
Console.WriteLine(helperString + "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
helperText.Text = (s.ToString().ToUpper());
}
public void BeforeTextChanged(Java.Lang.ICharSequence s, int start, int count, int after)
{
throw new NotImplementedException();
}
public void OnTextChanged(Java.Lang.ICharSequence s, int start, int before, int count)
{
String inputValue = s.ToString();
Toast.MakeText(this, inputValue, ToastLength.Short).Show();
}