You might want to use your EditText's addTextChangedListener()
method and use a TextWatcher
. You will have the following methods available for you:
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {}
@Override
public void afterTextChanged(Editable s) {}