简体   繁体   English

在Android中,如何像Google Maps一样显示带有四角的警报对话框?

[英]In Android, how to display alert dialog with square corners like in Google Maps?

How can I display an AlertDialog in Android that looks like the one in Google Maps application (square corners)? 如何在Android中显示类似于Google Maps应用程序中的AlertDialog(方形角)? I attach the image below. 我附上下面的图片。

Is it available out of the box (some property or theme) or do I have to style it myself? 它是开箱即用的(某些属性或主题),还是我必须自己设置样式?

在此处输入图片说明

I found this tutorial. 我找到了本教程。 hope it will help you, as it does says that it may cause problems 希望它能对您有所帮助,因为它确实表示可能会引起问题

http://blog.stylingandroid.com/archives/271 http://blog.stylingandroid.com/archives/271

hope this is what you're looking for (the first image is, I believe, what you're after) 希望这就是您要寻找的东西(我相信第一张图片是您想要的东西)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM