elichai2 elichai2 - 1 year ago 95
Android Question

what is the default layout background

I got a WebView that load an HTML file with a text. the problem is that the color inside the html and outside isn't the same. here is a screenshot:

The Activity With the WebView

The HTML FIle is:

<html dir="rtl">
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>

<body bgcolor="#FFFFFF">
<p>This is a Testpp</p>
<p>See the problem.</p>
<p>last test:</p>

(If i remove the : "bgcolor="#FFFFFF"" it's stay the same color)

Answer Source

Default color is black.

If you use style, go to "values/styles.xml" and there is solution of you issue. Now you can check bg color. About themes and styles : http://developer.android.com/guide/topics/ui/themes.html


Layout background color changing - Setting background colour of Android layout element


If in styles.xml is @android:style/Theme.Light your bg color is white.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download