B4J Question [Solved] CustomView DesignerProperty

Daestrum

Expert
Licensed User
Longtime User
I know in the tutorial it says what data types are valid, but I cannot get it to recognise Double.
(but it does recognise Float instead, but won't allow decimal places).

Anyone have a workaround ?.
 

Daestrum

Expert
Licensed User
Longtime User
Thanks for the reply.
I still can't input decimal places in the internal designer properties grid, it acts like an int and removes them.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
It works OK here.

B4X:
#DesignerProperty: Key: FloatExample, DisplayName: Float Test, FieldType: Float, DefaultValue: 0, Description: Example of a Float property.

In fact it also suffers from the typical float value storage problem (0.15 ends up as 0.15000000596046448) . I would probably use a string value and cast it to a Double when reading.
 
Upvote 0
Top