Sunday, 12 June 2022

Material Spinner (AutoCompleteTextView) - catch outside clicks

When using a spinner, it's the default behaviour that clicks outside of the spinner close the spinner but are NOT handled by the view underneath the click.

When switching to TextInputLayout + AutoCompleteTextView this behaviour is different, clicking on something outside the "spinner" closes the spinner AND the view underneath the touch does get the click event as well - this is very annoying and imho unexpected.

Can I somehow disable this behaviour to get the same behaviour as I get when using an old spinner?



from Material Spinner (AutoCompleteTextView) - catch outside clicks

No comments:

Post a Comment