Yesterday an Italian member used that method in B4J and there is a problem: when the user resizes the form, the last added custom view automatically moves to an unwanted position (basically to the original position).
I'm attaching here the faulty project (prova.zip) and also an alternative solution (caselle_lm.zip; uses a support Pane in which to load the layout containing the custom view and then move the latter to the real destination Pane).
please, test this project i put 5 B4XFloatTextField into Pane from code, and is OK but resizing form, last B4XFloatTextField split at top am I wrong or..? (sorry for the bad english)
Actually, that way the problem doesn't happen anymore, but I would say that it's not recommended to do it that way, since you might want other views to be automatically repositioned.
please, test this project i put 5 B4XFloatTextField into Pane from code, and is OK but resizing form, last B4XFloatTextField split at top am I wrong or..? (sorry for the bad english)
From different posters, which is why I linked it here.
In my opinion I would say that this is not a bug. The custom view process was designed for the views to be added in a layout. If you choose to use them in a different way, you should expect to have to make changes and / or compromises. And it is then on the user to ensure that it works the way they want it to both now, and in the future if they change anything else in the app.