I need to catch when an EditText loses focus, I've searched other questions but I didn't find an answer.
I used OnFocusChangeListener like this
OnFocusChangeListener foco = new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
// TODO Auto-generated method stub
}
};
But, it doesn't work for me.
Implement
onFocusChangeofsetOnFocusChangeListenerand there's a boolean parameter for hasFocus. When this is false, you've lost focus to another control.