Nat*_*Fig 12 layout android resize android-softkeyboard android-3.0-honeycomb
我的活动有android:windowSoftInputMode ="adjustResize"并在Android 2.1中相应地表现:
软键盘出现之前

用键盘

但是,在Honeycomb中,软键盘不会调整我的布局,而是覆盖按钮:

10英寸Galaxy标签和Motorola Xoom上的行为相同.
我已经多次重新设计我的布局,试图让它与Honeycomb兼容,但无济于事.软键盘将向上推动EditText视图,但不会按下按钮.
编辑:链接已修复.
使用的布局:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Save" />
<Button
android:id="@+id/cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cancel" />
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true">
<EditText
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
</ScrollView>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)
我发现的唯一相关问题是这个,但禁用硬件加速对我没有影响.我还阅读了有关使您的应用与输入法兼容的Android指南,但没有认出任何解决方案.
我做错了什么吗?或者这是一个任何人有更多信息的错误?
Nik*_*hil 14
嗨,我检查了你的代码.
请删除" AndroidManifest.xml " 中的以下行
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
Run Code Online (Sandbox Code Playgroud)
然后检查然后调整屏幕大小.
如果有任何查询请告诉我.
| 归档时间: |
|
| 查看次数: |
4127 次 |
| 最近记录: |