EditText1.setOnEditorActionListener(new OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView arg0, int arg1, KeyEvent arg2) {
if (arg1 == EditorInfo.IME_ACTION_DONE ) {
// do something
}
return false;
}
});
EditText1.addTextChangedListener(new TextWatcher() {
@Override
public void afterTextChanged(Editable s) {}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) { }
});
Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching.
if you need to class, please let PowenKo know, he will love to service and sharing.
LoopTek web site is www.looptek.com