thpoul
thpoul

Reputation: 700

How to properly zoom a WebView together with it's background image?

I'm using the following code which only zooms the loadData. How is it possible to zoom the image inside? Thank you in advance!

WebView web = (WebView) findViewById(R.id.myid);    
web.loadUrl("file:///android_asset/image.jpg");
web.getSettings().setBuiltInZoomControls(true);
web.setBackgroundColor(0);
web.setVisibility(ImageView.VISIBLE);
web.setBackgroundResource(R.drawable.myimage);

Upvotes: 2

Views: 1742

Answers (1)

thpoul
thpoul

Reputation: 700

I finally did it by insersting the image.jpg in an html file which took the place of loadUrl().

Upvotes: 6

Related Questions