views:

75

answers:

1

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 something obvious?

Thanks in advance!

A: 

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 );
Ryan Conrad