Reputation: 10341
For some reason im unable to change the background color of an empty webView in xml using android:background
. Although I could change it in java code using something like this:
myWebView.setBackgroundColor(Color.parseColor("#D4CAB4"));
But I prefer to do it in xml and I cant find the reason why android:background
is not working?
Upvotes: 3
Views: 2045
Reputation: 2031
If one can set WebView background color in xml layout the answer is "NO" and the reason behind is:
I hope this can help you to understand the case here.
Upvotes: 1