Android Question WebView property of UltimateWebView

madmax31

New Member
Licensed User
Longtime User
I have a custom list with several webviews and after updating the library I can't set the webview property of the ultamatewebview.

B4X:
Sub xCLV_VisibleRangeChanged (FirstIndex As Int, LastIndex As Int)
    Dim y As Int
    For Each i As Int In PCLV.VisibleRangeChanged(FirstIndex, LastIndex)
        Dim item As CLVItem = xCLV.GetRawListItem(i)
        Dim pnl As B4XView = xui.CreatePanel("")
        item.Panel.AddView(pnl, 0, 0, item.Panel.Width, item.Panel.Height)
        pnl.LoadLayout("line")
        For x=Cols To 4
            pnl.GetView(x).Visible=False
        Next
        For x = 0 To 4
            Dim subPnl As B4XView = pnl.GetView(x)
            If subPnl.Visible Then
                subPnl.Width=100%x/Cols
                subPnl.GetView(0).Width = subPnl.Width
                subPnl.Left=(100%x/Cols)*x
                If y < Devices.Size Then                   
                    Dim uwb As UltimateWebView, wb As WebView = subPnl.GetView(0)
                    wb.Tag=$"http://${Devices.Get(y)}/"$ 'set?darkmode=${NightMode}"$
                    uwb.Initialize(Me, "uwb")
                    uwb.WebView = wb '<-- Error property is readonly
                    uwb.SetWebViewClient
                    uwb.SetWebChromeClient
                    uwb.Settings.AllowContentAccess=True
                    uwb.Settings.AppCacheEnabled=True
                    uwb.Settings.CacheMode = uwb.Constants.CACHEMODE_LOAD_DEFAULT
                    uwb.Settings.DisplayZoomControls=False
                    uwb.Settings.DomStorageEnabled=True
                    uwb.LoadUrl(wb.Tag)
'                    uwb.LoadUrl("https://www.google.com")
                    y = y + 1
                End If
            End If
        Next
    Next
End Sub
Any help on how to do this would be appreciated, used to work on Ultimatewebview v1.3...
 
Top