Reputation: 509
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 ?
Upvotes: 2
Views: 214
Reputation: 21201
In your manifest file add android:windowSoftInputMode="stateHidden"
<activity android:name=".YourActivity"
android:windowSoftInputMode="stateHidden|adjustResize">
Check the developer doc for more details
Upvotes: 2
Reputation: 3259
Try this,
Add this code in your manifestfile.xml
.all Activity
android:windowSoftInputMode="stateHidden|adjustResize"
Upvotes: 2