I realized that if a dropdown is currently open in an AutocompleteTextView and you click outside the dropdown, the dropdown is dismissed, but the AutocompleteTextView is not losing the focus.
Can anyone think of a way to detect the dropdown closing?
Use AutoCompleteTextView.onDismissListener (Added in API Level 17)
http://developer.android.com/reference/android/widget/AutoCompleteTextView.OnDismissListener.html
autoCompleteTextView.setOnDismissListener(new OnDismissListener() {
@Override
public void onDismiss() {
// TODO Auto-generated method stub
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With