I use b4x pages.
How can I load the desired website into the webview running in the background?
It loads, but only when the page is appeared, so I have to wait for the content.
(I dont't want to wait)
Thanks.
How can I load the desired website into the webview running in the background?
It loads, but only when the page is appeared, so I have to wait for the content.
(I dont't want to wait)
Thanks.
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("Basepanel")
X_Weather.Initialize
B4XPages.AddPageAndCreate("B4X_Weather", X_Weather)
X_Weather.WebView2.LoadUrl("https://www.idokep.hu/elorejelzes/Budapest")
End Sub
B4X:
Sub Class_Globals
Private Root As B4XView
Public WebView2 As WebView
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("Weather")
End Sub
Last edited: