Sub Activity_Create (FirstTime As Boolean)
Panel1.Initialize("")
Panel2.Initialize("")
Panel3.Initialize("panel3") ' panel3 is the divider ... can be thinned down if needed
Panel1.Color = Colors.Blue
Panel2.Color = Colors.Red
Panel3.Color = Colors.White
Activity.AddView(Panel1,0, 0, 100%X, 25%Y)
Activity.AddView(Panel2,0, 25%X, 100%X, 75%Y)
Activity.AddView(Panel3,0, 25%X, 100%X, 10dip)
yPos = 120 ' 25% 320x480 height
End Sub
Sub panel3_Touch (Action As Int, X As Float, Y As Float)
If Action = 2 Then
Panel3.Top = Y + yPos
Panel1.SetLayout(0, 0, 100%X, Panel3.Top)
Panel2.SetLayout(0, Panel3.Top, 100%x,100%Y - Panel3.Height)
yPos = Panel3.Top
End If
End Sub