When viewing an image in a WebView, is there a programmatic way to force the WebView to automatically zoom the image until it’s full width in the view?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This html code shows an image at full size:
Now create a javascript function(
showImage) that prints this.(I don’t know how to do that).And call your javascript function like this:
How you can call a Javascript function from android code is explained here:
http://android-developers.blogspot.com/2008/09/using-webviews.html