webview showing white bar on right side
Posted
by Funkyidol
on Stack Overflow
See other posts from Stack Overflow
or by Funkyidol
Published on 2010-02-17T10:49:03Z
Indexed on
2010/04/25
21:23 UTC
Read the original article
Hit count: 337
android
I am giving the following method call to my webview client embedded in my layout
wv.loadData("<html><body bgcolor=\"Black\"></body></html>","text/html", "utf-8");
when i run this on the device, it shows a white vertical bar on the right side. I fixed the white thing by using webview.setBackgroundColor(Color.BLACK);
but i want to remove it completely
Following is my layout xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<WebView android:id="@+id/wv1"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
/>
</LinearLayout>
Any suggestions??
© Stack Overflow or respective owner