Android 修改EditText后的通知?

Android 修改EditText后的通知?,android,Android,setOnKeyListener和setFilters在将密钥/字符添加到EditText之前通知我 我希望在将字符添加到编辑文本后收到通知 我能想到的一种方法是覆盖EditText的onDraw,但我想知道是否有更好的方法 TIA将TextWatcher界面设置为EditText TextWatcher具有postTextChanged()方法。使用addTextChangedListener(TextWatcher-watcher) 将TextWatcher添加到每当此TextView的文本

setOnKeyListener
setFilters
在将密钥/字符添加到
EditText
之前通知我

我希望在将字符添加到
编辑文本
后收到通知

我能想到的一种方法是覆盖EditText的
onDraw
,但我想知道是否有更好的方法


TIA

TextWatcher
界面设置为
EditText


TextWatcher
具有
postTextChanged()
方法。

使用
addTextChangedListener(TextWatcher-watcher)

TextWatcher
添加到每当此TextView的文本更改时调用其方法的人的列表中

使用textwatcher:


看看
TextWatcher


按照所有朋友的建议使用
TextWatcher
,并覆盖下面的方法

  public abstract void afterTextChanged (Editable s){
//Create Notification here by using notification manager
}

4个相同的答案。。。哇,看起来很明显:o)因为所有答案都是一样的,所以我会选择第一个。谢谢大家!