开发者

softkeyboard moves all layout up

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"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜