Hello all,
I'm creating a hybrid app and because that using always B4XViews instead of labels and platform specific resources. In some places I need to dinamically construct the layout using runtime created arrays of views like this:
In B4A i was able to capture a click event associated to this view easily using the sub:
But I noticed that a B4XView hasn't the initialize method and so I can't define the associated event. How can this be done in B4X/Hybrid code?
Does anybody know?
I'm creating a hybrid app and because that using always B4XViews instead of labels and platform specific resources. In some places I need to dinamically construct the layout using runtime created arrays of views like this:
B4X:
Dim lblPrice(itensQuant) As B4XView
lblPrice(itensQuant).initialize("lblPrice")
In B4A i was able to capture a click event associated to this view easily using the sub:
B4X:
sub lblPrice_click
Dim lblPrice as label = sender
... (use tags to identify which label was clicked and run code)
end sub
But I noticed that a B4XView hasn't the initialize method and so I can't define the associated event. How can this be done in B4X/Hybrid code?
Does anybody know?