本文介绍了如何为自定义对话框添加标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
如何为这个自定义对话框添加标题??
How can i add title to this custom dialog??
我试过这样
我也尝试过这样设置标题..dialog.setTitle("Enter Details");
但这也没有产生任何结果.那么如何设置这个自定义对话框的标题呢?
I have tried to set title like this too..dialog.setTitle("Enter Details");
but this too didn't yielded any result. So how can i set title to this custom dialog??
这是我用于自定义对话框的 dialog_submit.xml 文件.
This is my dialog_submit.xml file used for the custom dialog.
推荐答案
使用你的一些片段:
res/layout/custom_title.xml
res/layout/custom_title.xml
这篇关于如何为自定义对话框添加标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!