如何创建自定义字幕和一些按钮对话框 [英] How to create dialog with custom subtitle and some buttons

查看:129
本文介绍了如何创建自定义字幕和一些按钮对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看看这个图片

如何创建这样一个对话框?有2行字幕和三个不同的按钮。

How do I create such a dialog? Having 2 line subtitle and three distinctive buttons.

推荐答案

我觉得这幅画是用其定义在一个XML文件,然后添加到对话框通过调用setContenView一个对话框()创建的。

I think this picture was created with a dialog which was defined in a XML file and then added to the dialog by calling setContenView().

的方法的描述如下: http://developer.android.com/guide/topics/ui/dialogs html的#CustomDialog

The method is described here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

这不就是为你工作?如果不是我想你将不得不延长对话框类,并实现自己的。

isn't this working for you? If not I think you would have to extend the Dialog class and implement your own.

这篇关于如何创建自定义字幕和一些按钮对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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