Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

I have 3 autocompletetextview'sautocompletetextview's in which i set its adapter to be an ArrayAdapterArrayAdapter<String> with a very simple textviewtextview layout.

the autocompletextviewThe autocompletextview hint results are showing, but are under the onscreen keyboard(i can see part of it). how can i make the results show above the autocompletetextviewautocompletetextview rather than below?

 airline = (AutoCompleteTextView)findViewById(R.id.airline); airline.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, AIRLINES_AUTOCOMPLETE_ARRAY)); departLocation = (AutoCompleteTextView)findViewById(R.id.departLocation); departLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); arriveLocation = (AutoCompleteTextView)findViewById(R.id.arriveLocation); arriveLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); 

I have 3 autocompletetextview's in which i set its adapter to be an ArrayAdapter with a very simple textview layout.

the autocompletextview hint results are showing, but are under the onscreen keyboard(i can see part of it). how can i make the results show above the autocompletetextview rather than below?

 airline = (AutoCompleteTextView)findViewById(R.id.airline); airline.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, AIRLINES_AUTOCOMPLETE_ARRAY)); departLocation = (AutoCompleteTextView)findViewById(R.id.departLocation); departLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); arriveLocation = (AutoCompleteTextView)findViewById(R.id.arriveLocation); arriveLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); 

I have 3 autocompletetextview's in which i set its adapter to be an ArrayAdapter<String> with a very simple textview layout.

The autocompletextview hint results are showing, but are under the onscreen keyboard(i can see part of it). how can i make the results show above the autocompletetextview rather than below?

 airline = (AutoCompleteTextView)findViewById(R.id.airline); airline.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, AIRLINES_AUTOCOMPLETE_ARRAY)); departLocation = (AutoCompleteTextView)findViewById(R.id.departLocation); departLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); arriveLocation = (AutoCompleteTextView)findViewById(R.id.arriveLocation); arriveLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); 
Source Link
james
  • 26.3k
  • 19
  • 97
  • 115

android autocompletetextview hint results hidden under keyboard

I have 3 autocompletetextview's in which i set its adapter to be an ArrayAdapter with a very simple textview layout.

the autocompletextview hint results are showing, but are under the onscreen keyboard(i can see part of it). how can i make the results show above the autocompletetextview rather than below?

 airline = (AutoCompleteTextView)findViewById(R.id.airline); airline.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, AIRLINES_AUTOCOMPLETE_ARRAY)); departLocation = (AutoCompleteTextView)findViewById(R.id.departLocation); departLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY)); arriveLocation = (AutoCompleteTextView)findViewById(R.id.arriveLocation); arriveLocation.setAdapter(new ArrayAdapter<String>(this, R.layout.autcomplete_dropdown, LOCATIONS_AUTOCOMPLETE_ARRAY));