Android - adding a image in html webview

后端 未结 4 708
被撕碎了的回忆
被撕碎了的回忆 2020-12-21 01:39

Ok so the image i\'m using is called test.png and I have a java class (Cherry.java) and a xml class (cherry.xml) Also I have a html file in the /res/raw folder called htmlt

4条回答
  •  感情败类
    2020-12-21 01:58

    Just modify the image path

    From:

    file:///android_drawable/test.png

    To:

    file:///android_res/drawable/test.png

提交回复
热议问题