如何创建一个完全自定义警告对话框? [英] How to create a fully customized Alert Dialog?

查看:93
本文介绍了如何创建一个完全自定义警告对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种解决方案来创建一个警报对话框周围没有边界?如果我创建一个布局,并将其连接到警报对话框,我已经表明我的布局,但它的四周由默认的对话框边界。任何方式将其剪掉?先谢谢了。

Is there a solution to create an Alert Dialog with no borders around? If I create a layout and attach it to the Alert Dialog, I have my layout shown, but it's surrounded by the default dialog borders. Any way to cut them off? Thanks in advance.

推荐答案

下面是这样(如果你不喜欢用绿色边框这个特殊的例子,下面的滚动看到第二个,我发现)。

Here is one way (if you don't like this particular example with the green border, scroll below to see a second one I found).

下面是另一个例如(这个给你一个例如没有边框,和一个具有边界的解释是在日本,但code为给出两者。)

Here is another example (this one gives you an example without a border, and one with a border. The explanations are in Japanese, but the code is given for both.)

这篇关于如何创建一个完全自定义警告对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆