EditText输入监听事件

  1. EditText.addTextChangedListener(new TextWatcher() {           
  2.             @Override  
  3.             public void onTextChanged(CharSequence s, int start, int before, int count) {  
  4.              
  5.             }  
  6.               
  7.             @Override  
  8.             public void beforeTextChanged(CharSequence s, int start, int count,  
  9.                     int after) {                  
  10.             }  
  11.               
  12.             @Override  
  13.             public void afterTextChanged(Editable s) {                                
  14.             }  
  15.         });  
posted @ 2014-06-12 17:56  下一次ai微笑  阅读(611)  评论(0编辑  收藏  举报