键盘出现在动作条是隐藏 [英] ActionBar is hiding when keyboard appears

查看:134
本文介绍了键盘出现在动作条是隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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 EditTexts 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屋!

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