黑莓 PopupScreen 大小受虚拟键盘限制

发布于 2024-08-18 13:25:10 字数 771 浏览 2 评论 0原文

我正在尝试显示自定义弹出屏幕,当显示虚拟键盘时,它会减小弹出窗口的大小。我知道,例如,当您选择新消息时,您会看到一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

铃予 2024-08-25 13:25:10

无法从第三方应用程序将任何内容放在虚拟键盘上。如果您在显示虚拟键盘时读取显示高度,您会发现设备实际上在显示键盘时缩小了为您的应用程序提供的“屏幕尺寸”。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文