Home > Blockchain >  Android - Button on bottom of the screen and Keyboard starting on top of it
Android - Button on bottom of the screen and Keyboard starting on top of it

Time:02-02

Is it possible to have a button on the bottom of the screen and when i use the keyboard keep the button visible on the bottom and the keyboard on top of the button?

I dont need the button being pushed up with the keyboard or the keyboard going over the button.

I need the button usable and visible on the bottom of the screen and the keyboard on top of it.

  • Edittext -
  • Keyboard -
  • Button -

Thanks!

CodePudding user response:

In Manifest.xml. Add this line android:windowSoftInputMode="adjustResize" in activity tag

<activity
    android:name=".MainActivity"
    android:exported="true"
    android:windowSoftInputMode="adjustResize">
    ...

CodePudding user response:

Try adding this to your Manifest.xml

        <activity
        android:name=".ui.messages.ChatActivity"
        android:fitsSystemWindows="true"
        android:windowSoftInputMode="adjustResize" />
  • Related