Android add image to webview from a drawable

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

I\'d like something:

s=\"




\";

How can I do this?

4条回答
  •  有刺的猬
    2020-12-01 07:09

    After some experimenting I found that the following HTML worked on Android 2.3.1 (but not on older versions):

    
    

    The really cool part is that the image file was actually in the directory drawable-hdpi but the resource manager provides the image in the standard directory drawable.

提交回复
热议问题