My CustomView has two panels, the default panel and an embedded panel.
The embedded panel needs to have its own ColorDrawable property and I'd like to have this ColorDrawable property accessible in the Designer.
This is what I'd like to have:
B4X:
#DesignerProperty: Key: EmbedDrawable, DisplayName: Embed Drawable, FieldType: ColorDrawable, DefaultValue: NULL, Description: The ColorDrawable for the embeded panel
But B4A doesn't accept "FieldType: ColorDrawable" as a field type for a DesignerProperty.
Oops. I should have said I wanted a Designer property similar to Base Background > Drawable which gives me the options of ColorDrawable, GradientDrawable and BitmapDrawable. See picture.
I could create 4 individual properties for GradientDrawable, namely CornerRadius, Orientation, FirstColor and SecondColor. But before I do that I was wondering if there is a predefined property type that I could use.