'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("Login")
Page2.Initialize
B4XPages.AddPage("Page 2", Page2)
Page3.Initialize
B4XPages.AddPage("Page 3", Page3)
vsw1.ItemDimmedAlpha = 100
vsw1.SpinnerTextColor = Colors.Red
vsw1.SpinnerTextSize = 15
months = Array As String("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
vsw1.SpinnerItems = months
vsw1.setupSpinnerWheel
vsw1.SelectedIndex = 6
countries = Array As String(" USA ", " Canada ", " Ukraine ", " France ", " South Africa ", " Germany ", " Scotland ", " United Kingdom ", " Russia ", " Israel ", " Brazil ", " Ireland ", " China ")
'The following array is populated with the names of the image files in the /Object/res/drawable folder
'It must have the same number of elements as the "countries" array in the above statement
vsw2.Images = Array As String("usa","canada", "ukraine", "france", "southafrica", "germany", "scotland", "unitedkingdom", "russia", "israel", "brazil", "ireland", "china")
vsw2.SpinnerItems = countries
vsw2.SpinnerTextColor = Colors.Cyan
vsw2.SpinnerTextSize = 20
vsw2.setupSpinnerWheel
vsw2.SelectedIndex = 2
End Sub