Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private WebView1 As WebView
Private ImageView1 As ImageView
End Sub
Public Sub Initialize
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
ImageView1.Bitmap = LoadBitmap(File.DirAssets, "index.jpg")
WebView1.Visible = False
WebView1.LoadUrl("https://www.b4x.com/android/forum/forums/android-questions.26/")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Sub WebView1_PageFinished (Url As String)
WebView1.Visible = True
ImageView1.Visible = False
End Sub