安卓:显示键盘的动作我的部件了,我想隐藏他们,而不是 [英] Android : Showing keyboard moves my components up, i want to hide them instead

查看:99
本文介绍了安卓:显示键盘的动作我的部件了,我想隐藏他们,而不是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个LinearLayout中有一些按钮,我的屏幕是RelativeLayout的它自

I have added a LinearLayOut having some buttons My screen is RelativeLayOut it self

下面是code为线性布局管理器

Here is the code for that linear layout manager

<LinearLayout
    android:orientation="horizontal"
    android:gravity="bottom"
    android:layout_alignParentBottom="true"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:id="@+id/Footer"
    android:layout_marginBottom="5dp">

下面的问题:

有顶部一个EditText组件,它会弹出软键盘在屏幕上,并带来了我的页脚经理在键盘的上方,并最终打破​​了我的整个UI。

There is an EditText component on the top and it pops a soft keyboard on the screen , and brings my Footer manager on top of the keyboard and eventually SHATTERS my whole UI.

什么是确切的解决方案?

What is the exact solution?

P.S。我已删除安卓重力=底部安卓layout_alignParentBottom =真正的一个接一个,但硬幸运我没有得到期望的结果。

P.S. I have removed android:gravity="bottom" and android:layout_alignParentBottom="true" one by one but with hard luck i did not get desired result.

感谢

推荐答案

添加安卓windowSoftInputMode =adjustPan来体现 - 以相应的活动:

Add android:windowSoftInputMode="adjustPan" to manifest - to the corresponding activity:

  <activity android:name="MyActivity"
    ...
    android:windowSoftInputMode="adjustPan"
    ...
  </activity>

这篇关于安卓:显示键盘的动作我的部件了,我想隐藏他们,而不是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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