简体   繁体   中英

soft keyboard on Android

There are 4 different activities in application. While passing in activities, soft keyboard opens automatically. To fix this I used

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);

but this time when I open keyboard for editText, keyboard cast over the layout that I use at the bottom of the activity. Is there a way to solve this problem ?

In your manifest file add android:windowSoftInputMode="stateHidden"

<activity android:name=".YourActivity"
         android:windowSoftInputMode="stateHidden|adjustResize">

Check the developer doc for more details

Try this,

Add this code in your manifestfile.xml .all Activity

 android:windowSoftInputMode="stateHidden|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