UI向上移动开键盘的时候键盘、时候、UI

2023-09-06 10:18:56 作者:占卜星象

我在做应用程序的用户界面。当我试图在输入值的EditText 然后键盘移动UI向上。 请帮助我,当键盘打开,那么它应该不动的UI上升。

 <活动
        机器人:名称=。AddProductsActivity
        机器人:configChanges =方向
        机器人:hardwareAccelerated =假
        机器人:windowSoftInputMode =adjustResize/>
 

解决方案

它解决了我的问题。

感谢所有。

 <活动
    机器人:名称=。AddProductsActivity
    机器人:configChanges =方向
    机器人:hardwareAccelerated =假
    机器人:windowSoftInputMode =adjustPan/>
 

蓝镯儿的主页

I am making the UI of the application. When i tried to enter the value in the EditText then keyboard move the UI upward. Please help me when keyboard open then it should not move the UI upward.

<activity
        android:name=".AddProductsActivity"
        android:configChanges="orientation"
        android:hardwareAccelerated="false"
        android:windowSoftInputMode="adjustResize" />

解决方案

It Solved my problem.

Thanks to all.

<activity
    android:name=".AddProductsActivity"
    android:configChanges="orientation"
    android:hardwareAccelerated="false"
    android:windowSoftInputMode="adjustPan" />