Android 固定在布局底部的按钮使用软键盘移动
我有一个登录屏幕,其中ImageView“固定”(使用布局约束)在父ConstraintLayout的底部。我已经尝试了在SE上能找到的一切,当软键盘弹出时,让我的图像保持不变,但没有用。我想知道这是否是因为我将图像固定在视图的底部 ImageView的XMLAndroid 固定在布局底部的按钮使用软键盘移动,android,android-softkeyboard,Android,Android Softkeyboard,我有一个登录屏幕,其中ImageView“固定”(使用布局约束)在父ConstraintLayout的底部。我已经尝试了在SE上能找到的一切,当软键盘弹出时,让我的图像保持不变,但没有用。我想知道这是否是因为我将图像固定在视图的底部 ImageView的XML <ImageView android:id="@+id/imageView4" android:layout_width="152dp" android:layout_height="66dp" an
<ImageView
android:id="@+id/imageView4"
android:layout_width="152dp"
android:layout_height="66dp"
android:layout_alignParentBottom="true"
android:layout_marginStart="24dp"
android:foregroundGravity="bottom"
android:gravity="bottom"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:srcCompat="@drawable/half_frog" />
显示
<activity
android:name=".LoginScreen"
android:windowSoftInputMode="adjustNothing"
/>
即使显示键盘,您也希望图像固定下来吗?是的。图像可点击并显示“创建帐户”。所以我不希望它在用户输入登录信息时移动。此外,当它向上移动时,它会覆盖几个按钮和一个EditTextJust use android:WindowsOfInputMode=“adjustResize”。仅使用此编辑文本调整。不适用于meCan您可以显示它的屏幕截图吗?