Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to define Textchanged event for edit text?

Tags:

android

how to define textchanged event for EditText??

Thanks, Balu.

like image 482
ram Avatar asked Jul 01 '11 11:07

ram


1 Answers

You need this:

inputView.addTextChangedListener(new TextWatcher() {

      @Override
      public void onTextChanged(CharSequence s, int start, int before, int count) {

      }

      @Override
      public void beforeTextChanged(CharSequence s, int start, int count, int after) {

      }

      @Override
      public void afterTextChanged(Editable s) {

      }
    });
like image 174
peceps Avatar answered Oct 21 '22 08:10

peceps