【发布时间】:2013-04-30 01:46:04
【问题描述】:
我尝试在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>"));
文字显示良好,但图像无法显示。如何改进?
【问题讨论】:
-
使用 ImageGetter,例如看到这个stackoverflow.com/questions/16179285/html-imagegetter-textview/…
-
我已经尝试过了...仍然无法获得它... :(
-
什么“你不能得到它”?
-
仍然无法显示我的图像。
-
我给你发了一个工作示例,那么问题是什么?
标签: android html textview imageview settext