NJDude Expert Licensed User Longtime User Dec 24, 2012 #1 I have noticed that I cannot set a transparent color to a WebView in B4A 2.3, I have an old code, loaded to B4A 2.3, compiled and no problem, as soon as I modify the layout containing the webview I cannot set its color to transparent, the workaround I have is to set it like this: Code: Copy WebView1.Color = Colors.ARGB(1, 0, 0, 0) The code above will show a SOLID BLACK background on ICS, HoneyComb and Froyo, on JellyBean I get a transparent background. If I do this, I see the default white background on the WebView Code: Copy WebView1.Color = Colors.Transparent Can anyone confirm this? I'm running B4A 2.30, SDK 17 and JDK 7 update 9 Thanks Note to add: Adding a DoEvents seems to solve the issue but doesn't work on ICS, or at least on my Galaxy Tab. Last edited: Dec 24, 2012
I have noticed that I cannot set a transparent color to a WebView in B4A 2.3, I have an old code, loaded to B4A 2.3, compiled and no problem, as soon as I modify the layout containing the webview I cannot set its color to transparent, the workaround I have is to set it like this: Code: Copy WebView1.Color = Colors.ARGB(1, 0, 0, 0) The code above will show a SOLID BLACK background on ICS, HoneyComb and Froyo, on JellyBean I get a transparent background. If I do this, I see the default white background on the WebView Code: Copy WebView1.Color = Colors.Transparent Can anyone confirm this? I'm running B4A 2.30, SDK 17 and JDK 7 update 9 Thanks Note to add: Adding a DoEvents seems to solve the issue but doesn't work on ICS, or at least on my Galaxy Tab.
NJDude Expert Licensed User Longtime User Dec 24, 2012 #2 Ok, it seems that if you set in your manifest Hardware Acceleration to TRUE you get the problem I mentioned on the previous post, in other words, do not use hardware acceleration if you want webviews with transparent backgrounds.
Ok, it seems that if you set in your manifest Hardware Acceleration to TRUE you get the problem I mentioned on the previous post, in other words, do not use hardware acceleration if you want webviews with transparent backgrounds.