在黑莓中创建弹出屏幕
我想在 BlackBerry 中创建一个弹出屏幕,就像长按时出现的屏幕一样(参见图片)
我的屏幕包含 3 个项目
图像描述
图像描述
图像描述
任何人都可以通过示例或链接帮助我执行此弹出窗口吗?
I want to create a popup screen in BlackBerry like the screen appear on long click (see the picture)
My screen contain 3 items
image description
image description
image description
Can any one help me by an example or link to do this popup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用下面的代码并在您想要显示弹出屏幕的任何地方调用 GetPopup
Use the below code and call the GetPopup wherever you want to show the pop up screen
创建一个扩展 Dialog 的 PopupDialog 类,然后在构造函数中添加按钮。如果您希望按钮看起来像上图所示,请扩展字段或按钮字段,然后在绘制方法中绘制按钮,然后绘制按钮下方的按钮文本。在 PopupDialog 中添加此自定义按钮控件。
Create a PopupDialog class which extends Dialog and then in the constructor, add the Buttons. If you would like your buttons to look like the above image, extend a field or button field and in paint method, draw the button and then the button text below the button. Add this custom button control in the PopupDialog.