I have an EditText field in my layout. I want to perform an action when the user stops typing in that edittext field. I have implemented TextWatcher and use its functions >
You could use a focus change listener. If the edittext has focus then assume user still editing otherwise they have stopped and you can perform your action:
EditText et = new EditText(mContext);
et.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean hasFocus) {
if (hasFocus) {
//user has focused
} else {
//focus has stopped perform your desired action
}
}
});