Have you enabled zoom support?

webView.getSettings().setSupportZoom(true);

To enable zoom controls use

webView.getSettings().setBuiltInZoomControls(true);

------------------------
Thanks & Regards,
Jayakumar




On Fri, Aug 31, 2012 at 10:35 AM, ravi saini <[email protected]>wrote:

> i am working with HTML webpages in web-view android so here i want to zoom
> the page on click of zoom button(i.e zoom level 30%,100%,200% ,300% etc)
> but i am not finding any function to zoom the page in webview upon the
> value i am passing like 30 for 30% etc.
>    So i used scaling in web-view ,i set the setScaleX() and setScaleY() to
> a particular value like 1.0 for normal 1.5 for 150% and 2.0 for 200% but
> after scaling the horizontal scroll bar is disappear ,i am not able to
> scroll and if i added a custom TwoDScrollview so i am not able to scroll
> the complete content of html page.Like after scale the content cuts for
> each end only limited content we can see and every times on scale increase
> the visible content remain in same scroll range as previous so we can not
> able to see the full content of webpage  i.e the full html page data.So
> please tell me any way or send me some code or description so solve this
> issue,thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to