views:

27

answers:

1

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);
A: 

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

triump