在 autocompletetextview 中的键盘上滚动下拉菜单 [英] Scrolling drop-down-menu over the keyboard in autocompletetextview

查看:36
本文介绍了在 autocompletetextview 中的键盘上滚动下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Autocompletetextview 下拉建议列表,一直到软键盘的边框.

I have an Autocompletetextview dropping down the suggestions list, up to the border of the soft-keyboard.

然后,当滚动建议列表时:-(在姜饼手机中)下拉菜单会自动增加覆盖键盘的高度,这很好,因为它显示了更多的项目.-(在 ICS 模拟器中)下拉菜单不会增加键盘上方的高度.

Then, when scrolling over the suggestions list: - (in a gingerbread phone) the drop-down-menu automatically increases height covering the keyboard, which is nice since it shows more items. - (in an ICS emulator) the drop-down-menu does not increase height over the keyboard.

这与某些系统属性有关吗?有没有办法在 ICS 中也强制第一个行为?

Is this related to some system property? Is there a way to force the first behavior also in ICS?

推荐答案

只需将 android:dropDownHeight="100dp" 添加到布局文件中的 AutoCompleteTextView 标签,它会工作.

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

这篇关于在 autocompletetextview 中的键盘上滚动下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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