Thursday, August 30, 2012

[android-developers] how to zoom webpage in webview android except scaling

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 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate