Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Simple")
clrs(0) = Colors.RGB(0,0,0)
clrs(1) = Colors.RGB(2,25,92)
Gradient1.Initialize("TOP_BOTTOM", clrs)
Activity.Background = Gradient1
sv.Initialize(100%y)
Activity.AddView(sv,0,0,100%x,100%y)
sv.Color = Colors.Transparent
Dim Top As Int = 0
For i = 0 To 4
' Initialize with the event name (not sure how to combine the events in to one)
expPnls(i).Initialize("expPnls" , "Main" )
' Get a reference to the panel
pnls(i) = expPnls(i).AsPanel
sv.Panel.AddView(pnls(i),10dip,Top,100%x-20dip,100dip)
Top = Top + 61dip
' Set up parameters for the expandable panels
expPnls(i).setSpeed(5,100)
expPnls(i).maxHeight = 400dip
expPnls(i).minHeight = 60dip
If i = 0 Then
Activity.LoadLayout("EssentialsStep1")
Else If i = 1 Then
Activity.LoadLayout("EssentialsStep2")
Else If i = 2 Then
Activity.LoadLayout("EssentialsStep3")
Else If i = 3 Then
Activity.LoadLayout("EssentialsStep4")
Else If i = 4 Then
Activity.LoadLayout("EssentialsStep5")
End If
' Collapse the panel
expPnls(i).Collapse
Next
End Sub