简体   繁体   中英

How can I move button with keyboard when keyboard is opened

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM