Whenever I assign an android:onClick attribute to an AutoCompleteTextView, my application immediately crashes upon loading the activity. I\'ve tested AutoCompleteTextView withou
This looks like to be a bug in AutoCompleteTextView.
What happens:
AutoCompleteTextView constructor, and it invokes View constructor.View constructor sees the onClick attribute and calls setOnClickListener().AutoCompleteTextView has overridden setOnClickListener() which writes to an internal mPassThroughClickListener field. It is only initialized at the end of AutoCompleteTextView constructor, and this init code has not been run yet.Reference
To work around it, remove the onClick attrtibute from your XML and call setOnClickListener() programmatically in your code.
I filed a bug about this in Android issue tracker.