Softkeypad推动页脚视图

问题描述 投票:0回答:1

我在这个qazxsw poi中尝试了一切

但它们都没有为我工作这是我的xml

Android: How do I prevent the soft keyboard from pushing my view up?

以及在Manifest文件中使用adjustResize,adjsutPan,adjustNothing

<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/footer" android:layout_below="@+id/header" android:isScrollContainer="false"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="30dp" android:layout_marginRight="30dp" android:orientation="vertical"> <....Widgets> </LinearLayout> </scrollview> <com.mypackage.activities.Footer android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="@dimen/footerHeight" android:layout_alignParentBottom="true" /> </RelativeLayout>

android android-layout scrollview android-keypad
1个回答
0
投票

使enter image description here作为根布局,它也将包含您的页脚布局。在ScrollView文件中使用ManifestadjustNothing

windowsoftinputmode
© www.soinside.com 2019 - 2024. All rights reserved.