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