软键盘挡住控件的有关问题
软键盘挡住控件的问题
在manifest的activity节点使用
当点击EditText控件弹出软键盘的时候,系统会自动调整控件的位置。
代码
http://github.com/shaobin0604/miscandroidapps/tree/master/WindowSoftInputMode/
参考
在manifest的activity节点使用
<activity android:windowSoftInputMode="adjustResize" . . . >
当点击EditText控件弹出软键盘的时候,系统会自动调整控件的位置。
代码
http://github.com/shaobin0604/miscandroidapps/tree/master/WindowSoftInputMode/
参考
- http://androidappdocs-staging.appspot.com/guide/topics/manifest/activity-element.html#wsoft
- http://www.chengyunfeng.com/2010/07/how-to-show-soft-keyboard