Android add image to webview from a drawable

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

I\'d like something:

s=\"




\";

How can I do this?

4条回答
  •  自闭症患者
    2020-12-01 07:16

    Set Image Width 100%.

    wv.loadDataWithBaseURL("file:///android_res/drawable/", "", "text/html", "utf-8", null); 
        wv.getSettings().setBuiltInZoomControls(true);
        wv.getSettings().setDisplayZoomControls(false);
    

提交回复
热议问题