use the zoom feature in there. In order to do this you would save the
image down into local storage and then use an image tag in some html
to reference that image. The code for producing the html and placing
it in a webview would look something like below.
String filepath= ctx.getFilesDir().getAbsolutePath();
File file = new File(filepath + "/" + imageName);
String html= "<img src=\"file://"+file+"\"></img></body></html>";
WebView web = (WebView)findViewById(R.id.webview);
web.loadDataWithBaseURL("http://notrwquire",html, "text/html",
"utf-8","");
WebSettings webSettings = web.getSettings();
webSettings.setBuiltInZoomControls(true);
Tom
On Jul 28, 6:26 am, Sohan badaya <sohan.bad...@gmail.com> wrote:
> Hi,
>
> I want to know how we can zoom a image that is in ImageView.
>
> Thanks,
> Sohan Badaya
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment