安卓:autocompletetextview,建议列表显示TextView的上面? [英] Android : autocompletetextview, suggestion list displays above the textview?

查看:189
本文介绍了安卓:autocompletetextview,建议列表显示TextView的上面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有一个你曾经碰到这个问题?

did one of you ever run into that problem ?

对于一些高分辨率的屏幕会显示正确的:

With some high resolutions screen it displays correctly :

但它无法正确显示的低分辨率都没有这么低,例如在银河角宿一(320x480像素)。我想键盘背后的建议列表被拿来当这一个从谁是试图在它滚动一个长按用户获得焦点。

but the low resolutions it's not displaying correctly are not so low, for example, in galaxy spica (320x480px). I would like the keyboard to be brought behind the suggestions list when this one gets the focus from the user who's trying to scroll on it with one long click..

我已经试过:的android:windowSoftInputMode =stateHidden | adjustPan 活动中的manifest.xml和所有其他的组合。不过,这是不工作...
我试图改变文字大小,项目大小,填充,整个autocompletetextview的最大高度,DropDownList中的最大高度,尝试了MultiAutoCompleteTextView,甚至试图窝在一个滚动视图,什么都没有。
它的发生是因为它推TextView的上述列表项所以没有键盘都将是不错的键盘。

I' ve tried : android:windowSoftInputMode="stateHidden|adjustPan" in the activity manifest.xml and all other combinations. still, it's not working... I tried to change the text size, the items size, the padding, the max height of the whole autocompletetextview, the max height of dropdownlist, tried a MultiAutoCompleteTextView, even tried to nest it in a scrollview, nothing. it occurs because of the keyboard which "pushes" the list items above the textview so without the keyboard everything would be nice..

任何帮助将非常AP preciated ...

any help would be much appreciated...

推荐答案

只需添加机器人:dropDownHeight =100dp到AutoCompleteTextView标签在你的布局文件,
它将工作。

Just add android:dropDownHeight="100dp" to the AutoCompleteTextView tag in your layout file, It will work.

这篇关于安卓:autocompletetextview,建议列表显示TextView的上面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆