I am developing an application in which I've to use a webview. My question is CAN WE STOP WEBVIEW's BUILT IN SCROLLING FUNCTIONALITY?
I have tried this so for:
in onScrollChanged super.scroll(0,0);
But this wont help me. I'm looking for something like we can stop zooming using the webview settings...
Anyone having better Idea other then this would be great.
// details here
Finally I've found the answer myself..:P
we can stop or start scrolling and scaling of the page by doing some javascript stuff in the page. Here is the javascript code:
Now you can call these functions using your android webview using following:
By calling above function stopScroll from the HTML page will be called. Cheers!!!
I can suggest to look at the problem from another point of view. This helped me when I had the similar issue. I found out that html meta tag "viewport" has great impact on WebView, especially if incorrectly specified. If the web page is developed and maintained by you, then you may use the following meta tag to the of your web pages: