Sub Process_Globals
Private chkGeofence1 As B4XSwitch
End Sub
Private Sub Application_Start (Nav As NavigationController)
MainPage.Initialize("PageMap")
MainPage.RootPanel.Color = Colors.White
MainPage.RootPanel.LoadLayout("main")
MainPage.Title = "Products - Map"
Starter.Initialize
chkGeoFence1.mBase.Top = 5
End Sub
This is the mistake.The anchors in the layout are all set for horizontal-left and Vertical-top.