Android Question WebView transparent only on emulator not on device

bloxa69

Active Member
Licensed User
Longtime User
I've got a weird problem - my webview is transparent in emulator (4.1) and not transparent on the actual device - 4.03.
I'm using WebView.Color = Colors.Transparent to set transparency and in HTML background is set to transparent.
 

bloxa69

Active Member
Licensed User
Longtime User
Seems like a bug in some Android versions related to hardware acceleration. You can disable hardware acceleration or try this workaround:
B4X:
WebView.Color = Colors.ARGB(1, 255, 255, 255)

thanks a lot, that did the trick
 
Upvote 0
Top