Search code examples
androidandroid-keypad

How can I move button with keyboard when keyboard is opened


How can I move button like below image : enter image description heretton when keyboard is show display.


Solution

  • Inside your Manifest file, in your activity, add android:windowSoftInputMode="stateVisible|adjustResize" . Example:

    <activity
    android:name=".MainActivity"
    android:windowSoftInputMode="stateVisible|adjustResize"
    ....>
    </activity>