My HTML page is showing up close up and I'd like to zoom out - how can
I do this? I've tried WebView.zoomOut(), and it doesn't seem to want
to work. I'm wondering if it's just because the page isn't done
loading, so I tried putting it in a while loop to continue zooming out
until it was a success, but this doesn't even work. I also tried
(just for testing) calling some 20 times on the method, and this
didn't work, except until I changed the orientation of the g1, then it
showed it zoomed far out.
What am I doing wrong?
public class Mancala extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
WebView wv = new WebView(this);
WebSettings ws = wv.getSettings();
ws.setJavaScriptEnabled(true);
wv.loadUrl("file:///android_asset/mancala.html");
wv.zoomOut();
super.onCreate(savedInstanceState);
setContentView(wv);
}
}
PS. Sorry if I posted two copies of this - I thought I sent one and
it's been a while and I don't see any trace of it, so I'm trying again.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---