I ran into the same problem. The AutoCompleteTextView constructor sets the InputType EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE flag. I have confirmed that this flag prohibits regular text sentences. The code reads:
// Always turn on the auto complete input type flag, since it // makes no sense to use this widget without it. int inputType = getInputType(); if ((inputType&EditorInfo.TYPE_MASK_CLASS) == EditorInfo.TYPE_CLASS_TEXT) { inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE; setRawInputType(inputType); }
Despite this comment, I had preliminary success with removing the flag, as in:
AutoCompleteTextView t = (AutoCompleteTextView)v.findViewById(id); t.setInputType( t.getInputType() & (~EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE) );
Marius bjΓΈrnstad
source share