I have a dialog box that covers 1/3 of the entire height of the screen and is displayed on top of my activity. The dialog box contains two AutoCompleteTextView fields.
The problem I am facing is that when the user starts typing something into the AutoCompleteTextView, the list with all the sentences is displayed only at the bottom of the dialog box, but does not go beyond that, even if the list is longer. Looks like he disconnected. (screenshot to the left)
Only after I click on an item from the list of offers for a long time, the list will be displayed in full. (screenshot to the right)
Screenshot taken at: http://img704.imageshack.us/i/dialogdropdown.png/ screenshot http://img704.imageshack.us/img704/1893/dialogdropdown.png
How to fix this behavior so that the list is displayed in full from the very beginning when the user starts typing something?
There is nothing special in the code, all I do:
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this.getContext(), R.layout.nav_route_autocomplete_row, locStrings); AutoCompleteTextView txtStartPos = (AutoCompleteTextView) findViewById(R.id.txtStartPos); txtStartPos.setAdapter(adapter); ...
One workaround is to somehow send a motion event to simulate touching (but not selecting) one of the list items. Any specific idea in the code for the solution, anyone?
android
Mathias conradt
source share