Android:显示键盘会移动我的组件,我想隐藏它们
我已经添加了一个LinearLayOut有一些button我的屏幕是RelativeLayOut它自己
这是线性布局pipe理器的代码
<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组件,它在屏幕上popup一个软键盘,并将我的页脚pipe理器置于键盘之上,最终使整个UI呈现出色。
什么是确切的解决scheme?
  PS我已经删除了android:gravity="bottom"和android:layout_alignParentBottom="true" ,但运气不好,我没有得到想要的结果。 
谢谢
 添加android:windowSoftInputMode="adjustPan"来清单 – 到相应的活动: 
  <activity android:name="MyActivity" ... android:windowSoftInputMode="adjustPan" ... </activity> 
你可能想要
 <activity ... android:windowSoftInputMode="adjustNothing"> </activity> 
这将防止任何布局的变化,当软键盘显示。
有可能有一些混淆,因为它是目前从http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
 android:windowSoftInputMode="adjustPan"