Hi All,
This is a great community and i have found many answers but now i have hit a problem and cant find the answer.
On my activity i am adding panels to a scrollview. to do this im calling code from a module for each line so i cant just declare the controls in the activity globals:
The layout is a panel called Panelbackground
which has another panel on it called PanelLineBack
PanelLineBack has another panel on it called PanelCollection
and finally on PanelCollection is a label called lblDetails
I was hoping with the above code i could cycle through all of the views on the layout, but the above code only returns one view on the panel that is Panelbackground.
How can i get to the label lblDetails to populate this ?
This is a great community and i have found many answers but now i have hit a problem and cant find the answer.
On my activity i am adding panels to a scrollview. to do this im calling code from a module for each line so i cant just declare the controls in the activity globals:
B4X:
Sub PopulateLine
Dim P As Panel
P.Initialize("pnlSVLine")
P.LoadLayout("Line")
Dim x As Int = 0
For x = 0 To P.NumberOfViews - 1
Dim vw As View = P.GetView(x)
Next
End Sub
The layout is a panel called Panelbackground
which has another panel on it called PanelLineBack
PanelLineBack has another panel on it called PanelCollection
and finally on PanelCollection is a label called lblDetails
I was hoping with the above code i could cycle through all of the views on the layout, but the above code only returns one view on the panel that is Panelbackground.
How can i get to the label lblDetails to populate this ?
Last edited: