Android – How to fit a webpage on android screen(webview)?

androidandroid-webviewwebview

Possible Duplicate:
Android Webview – Webpage should fit the device screen

I want to render a webpage in android's webview. Currently, I can display a webpage but how to make it fit within the screen?
I referred to:
Android Webview – Webpage should fit the device screen
but didn't find a solution there.

Thanks!!

Best Solution

The only way that works for me was this way:

webView = (WebView) findViewById(R.id.noticiasWebView);
webView.setInitialScale(1);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webView.setScrollbarFadingEnabled(false);
webView.loadUrl("http://www.resource.com.br/");

I am working on Android 2.1 because of the kind of devices from the company. But I fixed my problem using the part of informations from each one.