What am I missing here?
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim scvSetup As ScrollView
Dim pnlSetup As Panel
Dim txtUserID As EditText
Dim txtUserName As EditText
Dim btnExit As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
scvSetup.Initialize(0)
Activity.AddView(scvSetup, 0, 0, 100%x, 100%y)
scvSetup.Color = Colors.RGB(255, 205, 250)
'scvSetup.Panel.Height = pnlMapMarkers.Top + pnlMapMarkers.Height
pnlSetup.Initialize("")
Dim lblUserID As Label
lblUserID.Initialize("")
lblUserID.Text = "User ID: "
lblUserID.TextSize = 18
pnlSetup.AddView(lblUserID, 10dip, 5dip, 100dip, 40dip)
txtUserID.Initialize("")
txtUserID.Hint = "Enter User ID"
pnlSetup.AddView(txtUserID, 95dip, 0, 165dip, 40dip)
Dim lblUserName As Label
lblUserName.Initialize("")
lblUserName.Text = "User Name: "
lblUserName.TextSize = 18
pnlSetup.AddView(lblUserName, 10dip, 50dip, 100dip, 40dip)
txtUserName.Initialize("")
txtUserName.Hint = "Enter User Name"
txtUserName.PasswordMode = True
pnlSetup.AddView(txtUserName, 95dip, 45dip, 165dip, 40dip)
pnlSetup.Color = Colors.RGB(255, 255, 255)
'Activity.AddView(pnlSetup, 0, 0, 260dip, 100dip) 'works
scvSetup.panel.AddView(pnlSetup, 0, 0, 100%x, 1000dip) 'doesn't show
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub