I would like to load an image into android WebView
and make it like ImageView
's android:scaleType="centerCrop"
.
I have tried http://css-tricks.com/perfect-full-page-background-image/.
All work great on PC's firefox but not on Android WebView. It always stretch the image!! Even I take this websetting.setLoadWithOverviewMode(false);
into account but nothing changed.
Only the CSS3 method almost done. Because the image is background but not an element. However, I encounter Using html/css3 and WebView to scale an image to the screen... get a white screen before the image loads . Also the workaround work great on firefox but not in android.
Do I have no choice but to use ImageView
?