Dim MyCustomView As FourWayButton
MyCustomView.Initialize(Me,"EventName")
Dim xpnlBase As B4XView = xui.CreatePanel("") 'the view is built on this panel
xpnlBase.SetLayoutAnimated(0,0,0,40dip,20dip)
Dim xlbl As Label 'some custom views are using this label for properties from the designer
xlbl.Initialize("")
Dim PropMap As Map 'This is the Properties Map from the designer
PropMap.Initialize
PropMap.Put("CustomProp1","") 'look in the custom view to get the props with the right keys. These are located at the top and start with "#DesignerProperty".
MyCustomView.DesignerCreateView(xpnlBase,xlbl,PropMap)