片段2窗格windowSoftInputMode软键盘 [英] Fragment 2 pane windowSoftInputMode for soft keyboard
问题描述
我现在面临的问题时,软键盘打开了我的2面板布局如上所示。
对于左侧的列表视图中的片段,我想 adjustPan
软输入。如果我不这样做,那么它的叶子上的列表中的片段后面的空白空间,当软键盘关闭。
对于右侧的详细信息窗格,我想 adjestResize
软输入使用户可以输入文本到两个编辑文本,点击按钮,软键盘仍然打开。
我试图在各自的 onCreateView()
使用 setSoftInputMode()
但这并没有帮助不同设置的属性,我的片段我多,因为两个片段了 adjustResize
最后。
任何解决方案/想法,这将帮助我?
先谢谢了。
,以确保系统重新调整布局到可用 空间以保证所有的布局内容的访问 (尽管它可能需要滚动) - 以adjustResize:
<应用...>
<活动
机器人:windowSoftInputMode =adjustResize...>
...
< /活性GT;
...
请通过这个教程
I am facing issues when soft keyboard opens up on my 2 pane layout as seen above.
For the left side list view fragment i want to adjustPan
the soft input. If i don't do this then when the soft keyboard closes it leaves back blank space on the list fragment.
For the right side detail pane i want to adjestResize
the soft input so that user can enter text into both edit texts and click button with soft keyboard still open.
I tried setting the properties differently for my fragments in their respective onCreateView()
using setSoftInputMode()
but that did not help me much because both fragments got adjustResize
finally.
Any solutions/ideas which will help me with this?
Thanks in advance.
to ensure that the system resizes your layout to the available space—which ensures that all of your layout content is accessible (even though it probably requires scrolling)—use "adjustResize":
<application ... >
<activity
android:windowSoftInputMode="adjustResize" ... >
...
</activity>
...
Please go through this tutorial
这篇关于片段2窗格windowSoftInputMode软键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!