定制Android中的警报对话框 [英] Customizing the Alert dialog in Android
本文介绍了定制Android中的警报对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要显示上警告对话框浅色背景深色文本。但我无法弄清楚如何做到这一点。请帮我。
I want to show text in dark color on a light background on alert dialog. But I can't figure out how to do this. Please help me.
感谢。
推荐答案
看到这个例子中,它会帮助你:的http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application
see this example,It will help you:http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application
由于在文件中定义的警报dialog.You可以设置你的风格的警告对话框这个例子的布局。
as in this example layout defined in file for alert dialog.You can set your style for alert dialog.
这篇关于定制Android中的警报对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文