In All my custom views (B4A) I create a Panel called mBase, and in the createView I do mBase = Base, this ensures that I will always have full control over the physical appearance of my view.
It is also good practice to allow other developers to add your customview by code, by creating an AddToParent(Parent as Panel, Left as int....etc)
This way it can be created just like any other view.