How to set webview width the same for small screen and large screens
<p>In my app i make use of webview. The webviews are taking the sizes of the images that i load into them. Now is the problem that if i want to view them on a 7" or 10" tablet screen i'm getting a white border on the right side of the webview. </p>

<p>So i want that the images fit into the webviews on small and large screens.</p>

<p>This is the code for a webview that i have:</p>

<pre><code>package be.weaterApp.weatherwatch;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class Dauwpunten extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.temperaturen);

    String loadUrl = "http://www.meteociel.fr/cartes_obs/pointrosee.png";

    // initialize the browser object
    WebView browser = (WebView) findViewById(R.id.webviewt);

    browser.getSettings().setLoadWithOverviewMode(true);
    browser.getSettings().setUseWideViewPort(true);
    browser.getSettings().setBuiltInZoomControls(true);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
    final ProgressDialog pd = ProgressDialog.show(this, "", "De kaart wordt geladen...", true);
    //setContentView(R.layout.weerforu);

    browser.setWebViewClient(new WebViewClient() {
      @Override
      public void onPageFinished(WebView view, String url) {
        pd.dismiss();
      }
    });
    try {
        // load the url
        browser.loadUrl(loadUrl);
    } catch (Exception e) {
        e.printStackTrace();
    }
}
}
</code></pre>

<p>And this is for the xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" &gt;






&lt;com.android.sdk.mobgold.MobRequest
    android:id="@+id/ad"
    android:layout_width="fill_parent"
    android:layout_height="50dip"
    android:layout_gravity="center_horizontal"
    android:clickable="true" /&gt;


&lt;android.webkit.WebView
    android:id="@+id/webviewt"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" &gt;

&lt;/android.webkit.WebView&gt;

&lt;/LinearLayout&gt;
</code></pre>
