Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
[I] [/I]Private fx As JFX ' <=== add this
End Sub
'You can add more parameters here.
Public Sub Initialize As Object
Return Me
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
B4XPages.GetNativeParent(Me).SetFormStyle("TRANSPARENT") ' <=== Set transparent before layout load
'load the layout to Root
Root.LoadLayout("IntroPage")
Root.SetColorAndBorder(0,0,0,0)
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
' --- Make background transparent
Private Sub B4XPage_Appear
B4XPages.GetNativeParent(Me).BackColor = fx.Colors.ARGB(0, 255, 0, 0)
End Sub