Share via


ITextWatcher.AfterTextChanged(IEditable) Method

Definition

This method is called to notify you that, somewhere within s, the text has been changed.

[Android.Runtime.Register("afterTextChanged", "(Landroid/text/Editable;)V", "GetAfterTextChanged_Landroid_text_Editable_Handler:Android.Text.ITextWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AfterTextChanged (Android.Text.IEditable? s);
[<Android.Runtime.Register("afterTextChanged", "(Landroid/text/Editable;)V", "GetAfterTextChanged_Landroid_text_Editable_Handler:Android.Text.ITextWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AfterTextChanged : Android.Text.IEditable -> unit

Parameters

Attributes

Remarks

This method is called to notify you that, somewhere within s, the text has been changed. It is legitimate to make further changes to s from this callback, but be careful not to get yourself into an infinite loop, because any changes you make will cause this method to be called again recursively. (You are not told where the change took place because other afterTextChanged() methods may already have made other changes and invalidated the offsets. But if you need to know here, you can use Spannable#setSpan in #onTextChanged to mark your place and then look up from here where the span ended up.

Java documentation for android.text.TextWatcher.afterTextChanged(android.text.Editable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to