目前我正在使用字符串在警报对话框中显示文本,有没有办法直接使用资产 html 文件而不使用布局并显示警报对话框,如这段代码
private void About() {
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setTitle(getString(R.string.about));
alertDialog.setMessage(getString(R.stringabout));
alertDialog.setIcon(R.drawable.ic_launcher);
alertDialog.setButton(DialogInterface.BUTTON_NEUTRAL,
getString(R.string.lbl_dialog_close),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
close
}
});
alertDialog.show();
}