【发布时间】:2010-08-13 20:42:33
【问题描述】:
我有 3 个autocompletetextview,在其中我将其适配器设置为ArrayAdapter<String>,具有非常简单的textview 布局。
autocompletextview 提示结果正在显示,但位于屏幕键盘下方(我可以看到其中的一部分)。如何使结果显示在autocompletetextview 上方而不是下方?
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));
【问题讨论】:
标签: android autocompletetextview