:sign0104: Day 1 for me with b4a. Be kind.
I have the following code. It runs but I dont see the progress bar change or the list display any values.
Sub Globals
Dim PBar As ProgressBar
Dim PIDLst As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
ToastMessageShow ( "Welcome",False)
Activity.LoadLayout("main")
PBar.Initialize ("PBar")
PIDLst.Initialize("PIDLst")
PIDLst.SingleLineLayout.ItemHeight = 100dip
Dim PIDLabel As Label
PIDLabel = PIDLst.SingleLineLayout.Label
PIDLabel.TextSize = 10
PIDLabel.TextColor = Colors.Red
PIDLabel.Gravity = Gravity.CENTER
For i = 1 To 100
PIDLst.AddSingleLine("NetworkID::BranchID::00" & i)
PBar.Progress =100
Next
ToastMessageShow ( "Data Loaded",False)
End Sub
I have the following code. It runs but I dont see the progress bar change or the list display any values.
Sub Globals
Dim PBar As ProgressBar
Dim PIDLst As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
ToastMessageShow ( "Welcome",False)
Activity.LoadLayout("main")
PBar.Initialize ("PBar")
PIDLst.Initialize("PIDLst")
PIDLst.SingleLineLayout.ItemHeight = 100dip
Dim PIDLabel As Label
PIDLabel = PIDLst.SingleLineLayout.Label
PIDLabel.TextSize = 10
PIDLabel.TextColor = Colors.Red
PIDLabel.Gravity = Gravity.CENTER
For i = 1 To 100
PIDLst.AddSingleLine("NetworkID::BranchID::00" & i)
PBar.Progress =100
Next
ToastMessageShow ( "Data Loaded",False)
End Sub