Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的 android 应用程序中添加图像。我正在使用 html。我的照片在 res/drawable 文件夹中。我使用代码 img src= 但我只是在图像上得到一个问号。我究竟做错了什么?
尝试使用:
<img src="file:///android_res/drawable/image.png" />
您不需要将可绘制对象的限定符放在 SRC 属性中。