Android Question [solved] CustomView Properties: min/max range reading

udg

Expert
Licensed User
Longtime User
Hi all,
is there a way to read from code the values for MinRange and MaxRange optional values for a Designer property of type int?
Or are they used just for limiting the available settings while in the Designer?

TIA
 

udg

Expert
Licensed User
Longtime User
Thank you, Erel.
Could it be a subject for a wish or you can anticipate that it will be too complicated to achieve due to the way the Designer is currently made?
I'm thinking about an additional PropsOptions(Key) returning a map (so to accomodate multiple values and types).
 
Upvote 0

udg

Expert
Licensed User
Longtime User
You are the one who is setting the ranges so it should be simple to set the same values in the custom view code.
The need arises from a CustomView (a wheel selector) where I'd like to construct the list of values based on what the programmer sets as Min/Max (or List) when adding the component in the Designer.
Anyway, no problem. I already use a "custom" setup for lists passed by code.
My request was just for some kind of convenience and clearer code. Thanks again.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
You're right.
I didn't recall that those values aren't visible in the Designer itself.
Adding two props is one way to solve the problem, but it won't help in case of a list of values (like weekdays, months..).
For my needs I use a SetList or equivalent public sub to be called as part of the initialization, so no problem.
 
Upvote 0
Top