When I load multiple instances of the same layout, and I refer to a layout View by name, all references are relative to the layout instance that was loaded last.
How can I refer to Views by name in other instances of the layout. For example:
This will change the Text property of the label located in the second instance of Layout1, ie. lblLabel of Panel2.
How do I change the Text property of the label in the first instance of Layout1, ie. lblLabel of Panel1?
I will be referencing many Views and I don't want to use Panel.GetView(x). Is there some way to change between layouts, or some method to access Views by name, in other instances of the layout?
How can I refer to Views by name in other instances of the layout. For example:
B4X:
'Layout1 contains a label View called lblLabel
Panel1.Loadlayout("Layout1")
Panel2.Loadlayout("Layout1")
lblLabel.Text = "Some text"
This will change the Text property of the label located in the second instance of Layout1, ie. lblLabel of Panel2.
How do I change the Text property of the label in the first instance of Layout1, ie. lblLabel of Panel1?
I will be referencing many Views and I don't want to use Panel.GetView(x). Is there some way to change between layouts, or some method to access Views by name, in other instances of the layout?