开发者

softkeyboard moves all layout up

开发者 https://www.devze.com 2023-03-31 17:26 出处:网络
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 mo

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

精彩评论

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

关注公众号