0
目前我使用的字符串,以显示警报对话框文本,有没有办法资产使用HTML文件的情况下直接使用的布局和显示警告对话框这样的代码我们可以在警报对话框中使用资产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();
}
你可以使用,但为这个coustem dailog框与webview的webview加载HTML文件 – 2014-11-22 13:05:32
对不起,但我看不到任何资产。我不知道你想从资产文件中使用内容。请准确。 – greenapps 2014-11-22 13:06:12
@Naveen你怎么能给我看一个例子 – Cervo 2014-11-22 13:06:42