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.
 
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).

Code: Copy
WebView1.Color = Colors.Black
 
Upvote 0

Similar Threads

  • Locked
  • Article Article
Replies
2
Views
16K
  • Article Article
Android Code Snippet Upload files with WebView
Replies
37
Views
44K
Replies
17
Views
18K
Back
Top