elichai2 elichai2 - 1 month ago 11
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">
<head>
<title>About</title>
<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>
</body>
</html>


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

Answer

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

EDIT :

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

EDIT 2:

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