Android: How to load a vector drawable image into a webview?
问题 Sorry if this is a repeat but I searched diligently and didn't find this question asked yet... So back in ye olden days of Android, you could just add something like this to a WebView's source html: <img src='file:///android_res/drawable/my.png'/> And it would display my.png correctly in the WebView. But-- Android now supports (and prefers we use) these new-fangled vector drawables, and Android Studio's Vector Asset Studio makes it really easy to import them from SVG files or whatever. The