显示对话框时如何消除屏幕的黑影?

发布于 2024-12-11 12:00:26 字数 68 浏览 3 评论 0原文

当显示Dialog时,屏幕背景会变暗。我想消除这种黑暗,使屏幕看起来像正常的。如何实现这一目标?

When a Dialog is shown then the background of screen is darkened. I want to remove this darkness so that the screen looks like normal. How to achieve that ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

失与倦" 2024-12-18 12:00:26

当您显示Dialog时,背景变成Form,更改其样式您可以修改Dialog的背景。我真的不知道你是否可以使这个Form透明。我使用 LWUIT-Theme 创建器并修改 Form 的样式,我可以更改图像的背景或一种颜色。

在这里尝试一下!
http://lwuit.java.net/

When you show a Dialog the background becomes a Form, changing its style you can modify the background of a Dialog. I don´t really know if you can make this Form transparent. I use the LWUIT-Theme creator and modifiying the Form´s style, I can change the background for an image o for one colour.

Try it here!
http://lwuit.java.net/

撞了怀 2024-12-18 12:00:26

设置父窗体的色调颜色,您还可以在外观类以及资源编辑器的主题常量中进行设置。

Set the tint color of the parent form, you can also set this in the look and feel class and within the theme constants in the resource editor.

计㈡愣 2024-12-18 12:00:26

只需在对话框中添加以下代码:
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);

just add below code on your dialog:
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);

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