Hello!

I'm trying using webview in an android application, but there is one
strange thing - a white vertical line at the right side of emulator's
screen. I tried different layouts, different web-pages - nothing
helps.

You can see an image on the link below:
http://picasaweb.google.com/m.kokho/RecentlyUpdated#5406296875878909314

layout/main.xml:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
                >

        <WebView android:id="@+id/webview"
                 android:layout_width="wrap_content"
                 android:layout_height="fill_parent"
                        />
</FrameLayout>

java code:

        public void onCreate(Bundle savedInstanceState)
        {
                super.onCreate(savedInstanceState);

                setContentView(R.layout.main);  //or like this:
setContentView(new WebView(this));
                // init fields:
                webview = (WebView) findViewById(R.id.webview);

                // setup webview:
                final WebSettings webSettings = webview.getSettings();
                webSettings.setSavePassword(false);
                webSettings.setSaveFormData(false);
                webSettings.setJavaScriptEnabled(true);
                webSettings.setSupportZoom(false);

                webview.setWebChromeClient(new MyWebChromeClient());
                webview.setWebViewClient(new MyWebViewClient());
                webview.loadUrl("file:///android_asset/index3.html");
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to