我尝试在Html.fromHtml()
中显示文本和图片,但是图片无法正常显示。
message = (TextView) findViewById (R.id.message);
message.setText(Html.fromHtml(
"<p><b>First, </b><br/>" +
"Please press the" + "<img src = 'addbutton.png' />" + " to insert a new event.</p>"));
文字能够正常显示,但图片无法显示。怎样进行改进?