barx Well-Known Member Licensed User Longtime User Aug 4, 2012 #1 Hi all, as per title, can a webview be transparent. Currently setting background color within the html, but is there a way for it to be clear. Cheers
Hi all, as per title, can a webview be transparent. Currently setting background color within the html, but is there a way for it to be clear. Cheers
A Alex69 Member Licensed User Longtime User Aug 4, 2012 #2 I think it is possible to set color to Code: Copy Colors.Transparent Upvote 0
D DannyRyan Member Licensed User Longtime User Oct 19, 2012 #3 Has anyone managed to get this working at all? when i try the following: Code: Copy WebView1.Color(Colors.Transparent) If errors with the following: Code: Copy Compiling code. Error Error compiling program. Error description: Property: Color is writeonly. Occurred on line: 53 WebView1.Color(Colors.Transparent) Word: color Upvote 0
Has anyone managed to get this working at all? when i try the following: Code: Copy WebView1.Color(Colors.Transparent) If errors with the following: Code: Copy Compiling code. Error Error compiling program. Error description: Property: Color is writeonly. Occurred on line: 53 WebView1.Color(Colors.Transparent) Word: color
NJDude Expert Licensed User Longtime User Oct 19, 2012 #4 The correct syntax is: Code: Copy WeblView1.Color = Colors.Transparent Upvote 0
barx Well-Known Member Licensed User Longtime User Oct 23, 2012 #5 Just to re-light this old flame. I have the webview on a black background and when the activity first loads the webview flashes up white, then goes changes color to the required color. Is there anyway to stop the white? I've tried hiding the wv > changing color > loading content > showing wv. Still does it. Even slipped a DoEvents in there to see if it helps. No joy. Upvote 0
Just to re-light this old flame. I have the webview on a black background and when the activity first loads the webview flashes up white, then goes changes color to the required color. Is there anyway to stop the white? I've tried hiding the wv > changing color > loading content > showing wv. Still does it. Even slipped a DoEvents in there to see if it helps. No joy.
NJDude Expert Licensed User Longtime User Oct 23, 2012 #6 By hiding you mean visibility?, try this, set the WebView originally as VISIBLE FALSE then in the PageFinished event make it visible. Upvote 0
By hiding you mean visibility?, try this, set the WebView originally as VISIBLE FALSE then in the PageFinished event make it visible.
barx Well-Known Member Licensed User Longtime User Oct 23, 2012 #7 Think I may have sorted it now. Turns out it's a known bug in Andoid. Need to turn off hardware acceleration. I have currently done this application wide for testing, but it can be set per view with the following (in java) Code: Copy myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); Question is, seems though this isn't available in b4a, how would one achieve this with reflector? Upvote 0
Think I may have sorted it now. Turns out it's a known bug in Andoid. Need to turn off hardware acceleration. I have currently done this application wide for testing, but it can be set per view with the following (in java) Code: Copy myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); Question is, seems though this isn't available in b4a, how would one achieve this with reflector?