Android add image to webview from a drawable

前端 未结 4 1324
梦毁少年i
梦毁少年i 2020-12-01 06:29

I\'d like something:

s=\"




\";

How can I do this?

4条回答
  •  执念已碎
    2020-12-01 07:19

    Try this:

     web_object.loadDataWithBaseURL("file:///android_res/drawable/", "", "text/html", "utf-8", null);
    

    no need to make seprate html file

提交回复
热议问题