How can I move button like below image : tton when keyboard is show display.
Inside your Manifest file, in your activity, add android:windowSoftInputMode="stateVisible|adjustResize"
. Example:
<activity
android:name=".MainActivity"
android:windowSoftInputMode="stateVisible|adjustResize"
....>
</activity>
只需为您的特定活动添加AndroidManifest.xml即可:
android:windowSoftInputMode="adjustPan|adjustResize"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.