searchEdit.addTextChangedListener(searchWatcher);//调用TextWatcher的方法private TextWatcher searchWatcher = new TextWatcher() {//TextWatcher观察输入框中输入的内容//在向输入框中输入之后public void afterTextChanged(Editable ar
TextWatcher中的参数 beforeTextChanged @Overridepublic void beforeTextChanged(CharSequence s, int start, int count, int after) {} This method is called to notify you that, within s, the count characte