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.
/resアプリケーション リソース (ディレクトリ)からイメージを読み込むことはできますか?
/res
PD: アセットからロードできることはわかっていますが、コモディティと画像の重複を避けるために、可能であればリソースからロードしたいと考えています。
アンドロイド2.2で働いた
<img src = "file:///android_res/drawable/test.png" />
tes.png は res/drawable-mdpi フォルダーにあります
またはこれを使用します。
"android.resource://[package]/[res id]"