方法一:利用TextWatcherJava代码editText.addTextChangedListener(newTextWatcher(){privateCharSequencetemp;privatebooleanisEdit=true;privateintselectionStart;privateintselectionEnd;@OverridepublicvoidbeforeTextChanged(CharSequences,intarg1,intarg2,intarg3)...
查看全文