Android - adding a image in html webview

后端 未结 4 719
被撕碎了的回忆
被撕碎了的回忆 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 02:03

    If your images are small. Convert them to Base64 codings.

    Explained here: http://dean.edwards.name/my/base64-ie.html

提交回复
热议问题