黑莓 PopupScreen 大小受虚拟键盘限制
我正在尝试显示自定义弹出屏幕,当显示虚拟键盘时,它会减小弹出窗口的大小。我知道,例如,当您选择新消息时,您会看到一个 PopupScreen,它允许您选择消息类型(短信、电子邮件等),并显示在虚拟键盘的顶部。这是我的代码,我遗漏了什么吗?我找不到 z-index 或类似的东西...
public class InsertApplicationMenuItem extends ApplicationMenuItem {
public Object run(Object context) {
InsertWhatScreen screen = new InsertWhatScreen();
UiApplication.getUiApplication().pushModalScreen(screen);
return context;
}
}
public class InsertWhatScreen extends PopupScreen {
public InsertWhatScreen() {
super(new VerticalFieldManager(), FOCUSABLE);
}
}
替代文本 http://dl.dropbox.com/u/2645315/2010-01-20%2015%2017%2023.png
感谢您的帮助。
I am trying to display a Custom PopupScreen and when the virtual keyboard is being displayed it reduces the size of the popup. I know when you for example, select new message you get a PopupScreen that allows you to select message type (sms, email, etc) and it shows on top of the virtual keyboard. Here is my code am I missing something? I can't find a z-index or something similar...
public class InsertApplicationMenuItem extends ApplicationMenuItem {
public Object run(Object context) {
InsertWhatScreen screen = new InsertWhatScreen();
UiApplication.getUiApplication().pushModalScreen(screen);
return context;
}
}
public class InsertWhatScreen extends PopupScreen {
public InsertWhatScreen() {
super(new VerticalFieldManager(), FOCUSABLE);
}
}
alt text http://dl.dropbox.com/u/2645315/2010-01-20%2015%2017%2023.png
Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法从第三方应用程序将任何内容放在虚拟键盘上。如果您在显示虚拟键盘时读取显示高度,您会发现设备实际上在显示键盘时缩小了为您的应用程序提供的“屏幕尺寸”。
There's no way to put anything on top of the virtual keyboard from a third-party app. If you read the display height while the virtual keyboard is showing, you'll see that the device actually shrinks the "screen size" given to your app while the keyboard is showing.