当前位置:编程学习 > wap >>

请教一个软键盘遮挡界面的问题

在AndroidManifest.xml里面设置了WindowSoftInputMode="stateHidden|adjustPan"之后还是会出现下面的问题
没弹出软件盘之前的界面:

弹出软键盘后,界面整体上移了


怎么才能做到像下面QQ的样子,弹出软键盘后,只有右侧上移,其他都不变。我的界面右侧部分是一个listview,怎么设计才能只让listview上移
软键盘  --------------------编程问答-------------------- 来人啊。。。 --------------------编程问答-------------------- 你这界面做的不错…… --------------------编程问答-------------------- 要不你试试"adjustResize" ?

"adjustResize"

The activity's main window is always resized to make room for the soft keyboard on screen.

"adjustPan"

The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,