【发布时间】:2014-04-11 07:21:16
【问题描述】:
下面是我的代码工作正常唯一的问题是它显示的对话框标题的字体大小如此之小我将如何改变字体大小任何想法???
Dialog dialog2;
dialog2 = new Dialog(context);
View vLoad = LayoutInflater.from(ActivityHome.this).inflate(R.layout.timer, null);
dialog2.requestWindowFeature(Window.FEATURE_LEFT_ICON);
dialog2.setContentView(vLoad);
dialog2.setTitle( Html.fromHtml("<font color='#ffffff' > Due Alert</font>"));
dialog2.show();
【问题讨论】:
-
dialog2.setTitle(Html.fromHtml("
到期提醒
"));这段代码对我自己有用 -
一切顺利,编码愉快!
标签: android dialog android-alertdialog