Saturday, March 17, 2012

On Text Changed of EditText


on Text changed of Edit text

// on Text changed of Edit text 
 mEditText.addTextChangedListener(new TextWatcher(){
               public void afterTextChanged(Editable s) {
                Log.i("TextChanges","After textChanged");
                               }
   @Override
   public void beforeTextChanged(CharSequence s, int start, int count,
     int after) {
    // TODO Auto-generated method stub
    Log.i("TextChanges", "before Text Changed");

   }

   @Override
   public void onTextChanged(CharSequence s, int start, int before,
     int count) {
    // TODO Auto-generated method stub
    Log.i("TextChanges", "On Text changed");
    
   }
           });

No comments: