I am writing an Android app that uses an AutoCompleteTextView just like the API example. The problem is that my text is too long and needs to wrap when the dropdown occurs. I
Wrap the TextView in a layout and use that for your ArrayAdapter
And the new calls for the ArrayAdapter
:
AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autocomplete_country);
ArrayAdapter adapter = new ArrayAdapter(getActivity(), R.layout.list_item, R.id.item, COUNTRIES);
textView.setAdapter(adapter);