Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("layMain")
pnlSquare.Width = 41.6667%x
pnlSquare.Height = 62.5%y
pnlSquare.Left = (100%x - pnlSquare.Width) / 2
pnlSquare.Top = (100%y - pnlSquare.Height) / 2
Label1.Width = pnlSquare.Width * 0.5
Label1.Height = pnlSquare.Height * 0.25
Label1.Left = pnlSquare.Width * 0.25
Label1.Top = pnlSquare.Height * 0.05
EditText1.Width = pnlSquare.Width * 0.4
EditText1.Height = pnlSquare.Height * 0.25
EditText1.Left = pnlSquare.Width * 0.05
EditText1.Top = pnlSquare.Height * 0.4
EditText2.Width = pnlSquare.Width * 0.4
EditText2.Height = pnlSquare.Height * 0.25
EditText2.Left = pnlSquare.Width * 0.55
EditText2.Top = pnlSquare.Height * 0.4
Button1.Width = pnlSquare.Width * 0.5
Button1.Height = pnlSquare.Height * 0.25
Button1.Left = pnlSquare.Width * 0.25
Button1.Top = pnlSquare.Height * 0.7
End Sub