When AlertDialog with EditText is showing, softkeyboard moves up layout of activity. This happens when i use trackball and all subsequent attempts after using trackball. when i call dialog in touch mode - softk开发者_JAVA技巧eyboard overlay on my layout. what i can do to always overlay may layout with soft keyboard?
Put android:windowSoftInputMode="adjustNothing"
on your Activity
on the AndroidManifest.xml
.
<activity
android:name=".YourActivity"
android:windowSoftInputMode="adjustNothing">
</activity>
Put your layout inside a scrollview.
android:windowSoftInputMode="adjustNothing"
精彩评论