I have a webview on a black background and use the following code to show a image AND channge the background color to black to match the rest of the activity.
When the activity is loaded the webview flashes white for a split second the goes black as required. I'd hoped that making .visible = false (done in designer), loading the html, then making it visible again would avoid this happening but it still shows. How would one avoid this. Would I have to implement a timer to delay the visibility by say 500ms?
cheers
B4X:
strHTML = "<html><body bgcolor = #000000><img src='file:///android_asset/selectarrow.png' /><br /><h1><font color=#444444>Tap to Select</font></h1></body></html>"
WebBody.LoadHtml(strHTML)
WebBody.Visible = True
When the activity is loaded the webview flashes white for a split second the goes black as required. I'd hoped that making .visible = false (done in designer), loading the html, then making it visible again would avoid this happening but it still shows. How would one avoid this. Would I have to implement a timer to delay the visibility by say 500ms?
cheers