How can I move button with keyboard when keyboard is opened

and*_*ava -1 android android-keypad

How can I move button like below image : 在此处输入图片说明tton when keyboard is show display.

Bid*_*han 5

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

<activity
android:name=".MainActivity"
android:windowSoftInputMode="stateVisible|adjustResize"
....>
</activity>
Run Code Online (Sandbox Code Playgroud)