简体   繁体   English

仅在全屏模式下打开键盘时调整布局大小

[英]Layout resize on keyboard open in fullscreen mode only

I'd been trying to maintain consistency in layout whether keyboard is open or not. 无论键盘是否打开,我都试图保持layout一致性。 These issue is generated in FULLSCREEN Mode (hiding top notification bar) only. 这些问题仅在FULLSCREEN模式(隐藏在顶部的通知栏)中生成。 It works like a charm without Fullscreen . 没有Fullscreen它就像是一种魅力。

Tried: 尝试过:

  1. Added android:softWindowMode="adjustResize" and android:softWindowMode="adjustPan" inside <activity> of Manifest File. 在清单文件的<activity>中添加了android:softWindowMode="adjustResize"android:softWindowMode="adjustPan"
  2. Added android:isScrollableContainer="false" inside by top layout with blue background having first , next , prev , last symbol. 在顶部布局中添加了android:isScrollableContainer="false" ,其中blue background具有firstnextprevlast符号。

Desired Layout: 所需布局:

  1. Top Layout Blue Background should never get hide whether keyboard is open or not. 无论键盘是否打开,顶部布局的Blue Background都不应隐藏。

These issue get resolved with ActionBar but it requires a lot of turn work which I don't intent to. 这些问题可以通过ActionBar解决,但需要很多回合工作,而我并不是故意这样做的。

没有打开键盘使用键盘滚动时就像个魅力在键盘上打开会扭曲我的布局 .

Is there any way other than ActionBar which resolve my issue? 除了ActionBar ,还有其他方法可以解决我的问题吗?

尝试为蓝色背景布局创建固定的标题布局,并在此蓝色布局下方为ScrollView其他字段创建布局...这样,当键盘出现时,它将不会隐藏标题蓝色布局...

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

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