I usesd this topic for adding controls by code:
Though this works fine in B4A it does not in B4i. The controls are added to the panel but they keep their position as set in the designer. Setting TOP and LEFT has no effect. Is this solvable?
[B4X] I need 100 <custom view here>s. How to add programmatically?
Custom views are designed to be added with the designer. It is however very simple to create a layout file with the custom view and load it multiple times. Tip: remove the call to AutoScaleAll from the designer script. Complete example: Sub Globals Private B4XSwitch1 As B4XSwitch End...
www.b4x.com