I'm trying to tell a WebView
to scale the page down to a certain percent. I've tried using setInitialScale() as that seems to be exactly what I want, but it seemed to have no effect.
Am I just missing s开发者_开发知识库omething obvious?
Thanks in advance!
I dont have the full code available, nor do i have eclipse at the moment but I remember you start with something like this:
final View zoom = mWebView.getZoomControls ( );
mContentView.addView ( zoom, ZOOM_PARAMS );
zoom.setVisibility ( View.GONE );
then you should be able to set the zoom.
You set the zoom by doing the following:
mWebView.getSettings ( ).setSupportZoom ( true );
mWebView.setInitialScale ( 25 );
精彩评论