以横向显示SoftKeyboard,但不以整个屏幕显示 [英] Show SoftKeyboard in landscape but not entire screen
本文介绍了以横向显示SoftKeyboard,但不以整个屏幕显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试实现以下图像:
Im trying to achieve something like this image:
问题是当我在风景上并放置一个搜索栏(如图像)时,软键盘覆盖了整个屏幕,而我想要的行为就像我尝试过的图像一样
the problem its when im on landscape and put a searchbar like the image, the soft keyboard cover all screen,and i want the behavior like the image i tried
android:windowSoftInputMode="adjustPan|adjustResize"
至少在果冻豆上似乎无效.有任何想法吗? 谢谢
and seems isnt working,at least on jelly bean. any ideas? Thanks
推荐答案
我在EditText的imeOptions中找到了解决方案,所以我使用了
i found the solution, in imeOptions of EditText, so i used
android:imeOptions="flagNoFullscreen"
所以屏幕现在在中间:)
so the screen now its in middle :)
<EditText
android:id="@+id/txt_search"
android:inputType="text"
android:imeOptions="flagNoFullscreen"
android:hint="@string/hint_search"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
这篇关于以横向显示SoftKeyboard,但不以整个屏幕显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文