黑莓 - 全局屏幕修改?
我使用以下全局对话框在用户退出应用程序并通知我的应用程序检查某些任务后显示一些消息。
synchronized( UiApplication.getEventLock() ) {
UiEngine ui = Ui.getUiEngine();
Screen screen = new Dialog(Dialog.D_OK, "My Message",
Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),
Manager.VERTICAL_SCROLL);
ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
}
我想添加此对话框的标题作为我的应用程序标题和一些消息(我已经给出了...)并删除感叹号或为此对话框提供的任何默认图标。但我不想在这个对话框中出现任何图标。
如果您使用过,有人可以推荐我吗?
谢谢。如果您能帮我解决这个问题,我将不胜感激。
I use the following global dialog to show up some message after user exited application and my app notified for checking some task.
synchronized( UiApplication.getEventLock() ) {
UiEngine ui = Ui.getUiEngine();
Screen screen = new Dialog(Dialog.D_OK, "My Message",
Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),
Manager.VERTICAL_SCROLL);
ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
}
I want to add Title of this dialog as my App Title, and Some message(already i'm giving that...) and remove the Exclamation or whatever default icon has given to this dialog. I don't want ANY ICON though in this dialog.
Could someone please suggest me if you have used it?
Thank you. Appreciate if you could help me out on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Dialog 类,我建议使用 PopupScreen 扩展名:
替代文本 http://img187.imageshack.us/img187/6245/9000.jpg< /a>
使用示例:
根据 Fernando 评论进行更新
There is no title in Dialog class, I would suggest to use PopupScreen extention:
alt text http://img187.imageshack.us/img187/6245/9000.jpg
Example of use:
UPDATED according to Fernando comment