键盘出现在动作条是隐藏 [英] ActionBar is hiding when keyboard appears
问题描述
我使用ActionBarSherlock。 windowSoftInputMode
是 adjustPan
(我与 adjustResize
尝试和 adjustNothing
也)。
I'm using ActionBarSherlock. windowSoftInputMode
is adjustPan
(I've tried with adjustResize
and adjustNothing
also).
我想保持动作条
出现在屏幕上时,键盘的但滑动我的布局,而不是(这样的文字仍然可见)。
I want to keep ActionBar
on screen when keyboard appears but slide my layout instead (so text remains visible).
下面是如何看起来正确的:
Here is how it looks right:
当键盘出现了:
And when keyboard is appeared:
的问题是:我怎能动作条
可见,而使用 adjustPan
(所以的EditText
旨意始终可见)?
Question is: how can I keep ActionBar
visible while using adjustPan
(so EditText
s will always be visible)?
注意
我不能使用滚动型
来握住我的查看
推荐答案
我发现,有可能与 adjustResize
的问题(它只是使用了一些原因 adjustPan
代替),当您申请 FLAG_FULLSCREEN
到 <$ C的窗口
$ C>活动:
I find out, that there may be problems with adjustResize
(for some reason it's just uses adjustPan
instead) when you applying FLAG_FULLSCREEN
to Window
of Activity
:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
没有这一行大小调整工作得很好。
Without this line resizing working just fine.
这篇关于键盘出现在动作条是隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!