标签:err over div color ide edit rri sequence change
textWatcher = new TextChangeWatcher(); etQuerryInfo.addTextChangedListener(textWatcher); /** * 文字改变类,文字改变时的监听 */ private class TextChangeWatcher implements TextWatcher{ @Override public void onTextChanged(CharSequence s, int start, int before, int count) { rlQuerryInfo.setVisibility(View.VISIBLE); tvQuerryKey.setText(etQuerryInfo.getText().toString()); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { } }
实现TextWatcher三个方法即可onTextChanged,beforeTextChanged,afterTextChanged
标签:err over div color ide edit rri sequence change
原文地址:http://www.cnblogs.com/fengfenghuifei/p/5993788.html