I have the same problem as in. I tried to reply in a comment, but still no luck.
Here is my code:
Markup:
<AutoCompleteTextView
android:id="@+id/test"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:dropDownHeight="wrap_content"
/>
Java Code:
String[] values = {
"abc_0", "abc_00", "abc_000",
"abc_1", "abc_11", "abc_111",
"abc_2", "abc_22", "abc_222",
"abc_3", "abc_33", "abc_333",
};
final AutoCompleteTextView actv = (AutoCompleteTextView) dialog.findViewById(R.id.test);
final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_dropdown_item_1line, values);
actv.setAdapter(adapter);
After entering "abc", it will display a list of sentences as expected. But in the last two paragraphs abc_33and abc_333they are blocked soft keyboard.
Are there any suggestions on how the list will not be closed by the keyboard?
Rendy source
share