简体   繁体   English

Android - AutoCompleteTextView 下拉菜单和软输入键盘之间的边距

[英]Android - margin between AutoCompleteTextView dropdown and soft input keyboard

With window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);使用window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); I was able to prevent the dropdown of my AutoCompleteTextView from going behind the soft input keyboard, but it is now flush against the keyboard as shown in the following image :我能够防止我的 AutoCompleteTextView 的下拉菜单位于软输入键盘后面,但它现在与键盘齐平,如下所示:

Is there a way to add a margin between the AutoCompleteTextView dropdown and the soft input keyboard?有没有办法在 AutoCompleteTextView 下拉菜单和软输入键盘之间添加边距?

将下拉高度添加到 xml 中的自动完成android:dropDownHeight="100dp"作为android:dropDownHeight="100dp"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM