【发布时间】:2014-04-07 14:33:15
【问题描述】:
这是我实现的自定义对话框的代码
final Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.custom_dialog);
dialog.setTitle("This is the Title");
TextView text = (TextView) dialog.findViewById(R.id.text);
text.setTypeface(Typeface.createFromAsset(getAssets(),
"fonts/Barkentina.otf"));
我可以轻松更改对话框内文本的字体。但是我能做些什么来改变对话框标题的字体呢?
【问题讨论】:
标签: android android-layout android-dialog android-fonts android-typeface