Android Question WebView background color

ac9ts

Active Member
Licensed User
Longtime User
Is there a way to change the background color of a WebView?

I use a WebView to take advantage of HTML text formatting to display help, multi-line text, etc. My panel is black and the WebView background is white. During the brief time while the WebView HTML code is being processed, the Webview "flashes" white until the code is processed and the background is set to black.

I've tried setting the view visibility to false and set it to true in WebView1_PageFinished but it appears that event fires when the page is loaded. Not when it has finished processing.
 

ac9ts

Active Member
Licensed User
Longtime User
I found the answer once I posted the question and the listing of similar threads came up (my initial search criteria must not have been good enough).

B4X:
WebView1.Color = Colors.Black
 
Upvote 0
Top