java在textview中用img html显示图像
我想在文本视图中显示图像。我在res/drawable/img中有一个图像。巴布亚新几内亚 这是我的代码:
String img="<img src='file:///res/drawable/img.png' />";
txt_html.append(Html.fromHtml(img));
但这不是工作
知道吗
你可以在下面搜索框中键入要查询的问题!
我想在文本视图中显示图像。我在res/drawable/img中有一个图像。巴布亚新几内亚 这是我的代码:
String img="<img src='file:///res/drawable/img.png' />";
txt_html.append(Html.fromHtml(img));
但这不是工作
知道吗
# 1 楼答案
要从web下载图像并在textView中显示,我使用了以下方法:
FetchImageUrl类是: