//先移除监听
if (holder.editText.getTag() instanceof TextWatcher)
holder.editText.removeTextChangedListener((TextWatcher) holder.originTv.getTag());
holder.editText.clearFocus()
holder.editText("");//移除后设置数据
TextWatcher watcher = new TextWatcher()
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after)
@Override
public void onTextChanged(CharSequence s, int start, int before, int count)
@Override
public void afterTextChanged(Editable s)
if (holder.editText.hasFocus())
//写你editText的数据改变逻辑
;
//重新添加
holder.editText.addTextChangedListener(watcher);
//设置tag
holder.editText.setTag(watcher);
12-29
675
10-20
880