B4J Question [ Webview ] can transparent background ?

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    WebView1.LoadHtml("<b>example</b> 1 2 3")
End Sub

Sub WebView1_LocationChanged (Location As String)
    Dim r As Reflector
    r.Target = WebView1.As(JavaObject).RunMethod("getEngine", Null)
    Dim page As JavaObject = r.GetField("page")
    page.RunMethod("setBackgroundColor", Array(xui.Color_Transparent))
End Sub

1633848227738.png


 
Upvote 0
Top