【发布时间】:2012-12-24 22:28:22
【问题描述】:
有人可以建议一种方法来更改动态创建的 AlertDialog(在标题和正文中)中的字体吗?我尝试了很多方法,但都没有奏效。代码是:
public void onClick(View v) {
new AlertDialog.Builder( c )
.setTitle( data.eqselect )
// .set
.setIcon(R.drawable.icon)
.setMessage(Threads.myData[0] )
.setNegativeButton( "Close", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Log.d( "AlertDialog", "Negative" );
}
} )
.show();
}
【问题讨论】:
标签: java android android-alertdialog