SO. I am trying to scroll through a list in a panel using listview. When I assign the listview (listview1) to the panel (testpanel), nothing happens. when I assign listview1 to activity then it works.
I'd be grateful if someone could explain why when the listview is visible when part of activity, but not when part of the panel.
this is the code:
I think I must have completely missed the point of panels. Any advice very gratefully received....
'These variables can only be accessed from this module.
Dim BoneScoreAIList As List
Dim TestPanel As Panel
Dim ListView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("BoneAgesLayout")
TestPanel.initialize("TestPanel")
ListView1.Initialize("ListView1")
BoneScoreAIList.Initialize
BoneScoreAIList.AddAll(Array As String("A","B","C","D","E","F","G","H","I"))
For i = 0 To BoneScoreAIList.Size - 1
ListView1.AddSingleLine(BoneScoreAIList.Get(i))
Next
Testpanel.AddView(ListView1,0,0,100%x,100%y)
End Sub
I'd be grateful if someone could explain why when the listview is visible when part of activity, but not when part of the panel.
this is the code:
I think I must have completely missed the point of panels. Any advice very gratefully received....
'These variables can only be accessed from this module.
Dim BoneScoreAIList As List
Dim TestPanel As Panel
Dim ListView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("BoneAgesLayout")
TestPanel.initialize("TestPanel")
ListView1.Initialize("ListView1")
BoneScoreAIList.Initialize
BoneScoreAIList.AddAll(Array As String("A","B","C","D","E","F","G","H","I"))
For i = 0 To BoneScoreAIList.Size - 1
ListView1.AddSingleLine(BoneScoreAIList.Get(i))
Next
Testpanel.AddView(ListView1,0,0,100%x,100%y)
End Sub