安卓:autocompletetextview,TextView的上述建议名单显示! [英] Android : autocompletetextview, suggestion list displays above the textview !

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

问题描述

没OU的人会遇到这个问题?

did one of ou ever run into that problem ?

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

With some high resolutions screen it displays correctly :

但低分辨率它不正确显示不那么低,例如,在星系字形绷带(320x480px)。我想在键盘被带到后面的建议列表时,这一个获得焦点从谁在试图滚动它有一个长按该用户。

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..

我已经试过:机器人:windowSoftInputMode = |在活动的manifest.xml和所有其他组合stateHidden adjustPan。不过,这是不工作... 我试图改变文字大小,项目大小,填充,整个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..

任何帮助将是非常美联社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天全站免登陆