Lesson 1
[B4X] Custom Views with Enhanced Designer Support


Public Sub DesignerCreateView (Base As Pane, Lbl As Label, Props As Map)
End Sub
- Base
- Lbl
- Props (map)
Designer Properties
Key – To get the value from the Props map.
DisplayName – The property name in the properties grid.
FieldType – String, Int, Float, Boolean or Color (case insensitive).
DefaultValue – The default value.
Optional fields:
Description – Displayed at the bottom when the property is selected.
MinRange / MaxRange – Minimum and maximum numeric values allowed.
List – A pipe (|) separated list of items (should be used with string fields).
Note: The example works in Java SDK 8. There is error compiling in Java 11.