Since AndroidAnnotations 2.6
@TextChange
This annotation is intended to be used on methods to receive events defined by
android.text.TextWatcher.onTextChanged(CharSequence s, int start, int before, int count)when the text is changed on the targeted TextView or subclass of TextView. The annotation value should be one or several
R.id.* fields that refers to TextView or subclasses of TextView. If not set, the method name will be used as the
R.id.* field name. The method may have multiple parameter:
这个注释表明,当TextView或者其子类的文本值
改变时,加了注解的方法就可以接收由
android.text.TextWatcher.onTextChanged(CharSequence s, int start, int before, int count)
定义的改变事件。注解值应该是一个或多个引用了TextView或者其子类
的
R.id.*
字段。如果没有设置,那么会用方法名作为
R.id.*
。该方法可以有多个参数:
A android.widget.TextView parameter to know which view has received this event<