Android输入框被键盘遮挡
16lz
2022-04-02
解决方案:
在我们的LinearLayout布局外添加ScrollView
示例:
由原来的:
view plain print ?- <?xmlversion="1.0"encoding="utf-8"?>
- <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- ......
- </LinearLayout>
改为:
view plain print ?
- <?xmlversion="1.0"encoding="utf-8"?>
- <ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- ......
- </LinearLayout>
- </ScrollView>
更多相关文章
- android handle ui 更新
- 短信拦截的解决方案 经典
- android 使用vcard示例
- android 使用vcard示例
- android studio中rendering problems解决方法
- Android(安卓)RecyclerView 报错:java.lang.IllegalStateExceptio
- Android中Adapter中edittext,checkbox记住状态解决方案(一)
- android 6.0权限全面详细分析和解决方案
- android音频播放简单示例