Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private LoginPage As B4XLoginPage
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")
LoginPage.Initialize
B4XPages.AddPage("LoginPage", LoginPage)
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Sub Button1_Click
B4XPages.ShowPageAndRemovePreviousPages("LoginPage")
LoginPage.AnimateFromRight
End Sub
Public Sub AnimateFromLeft
#if B4A
Root.Left = 100%x
Root.SetLayoutAnimated(300, 0, 0, Root.Width, Root.Height)
#End If
End Sub