Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
RapsFan
Posts: 442
Registered: ‎08-02-2010
My Device: Z10

UI design question, best type of field for entering height and weight

Just want some opinions. What would be better (aethsthetically and functionality wise) for getting a user's height? I originally thought a type of spinner similar to DateField but coding this from scratch is beyond my skill level.

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: UI design question, best type of field for entering height and weight

If you are using 5.0 and higher you can use SpinBoxField. Once you get it working then you can work backwords to get it on older OSes/other devices.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
RapsFan
Posts: 442
Registered: ‎08-02-2010
My Device: Z10

Re: UI design question, best type of field for entering height and weight

Thanks :smileyhappy: I didn't know about spinboxfield
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: UI design question, best type of field for entering height and weight

In older OS's, the NumericChoiceField seems like a good choice where you have a limited range of numeric values to choose from.

Developer
RapsFan
Posts: 442
Registered: ‎08-02-2010
My Device: Z10

Re: UI design question, best type of field for entering height and weight

Thanks peter. That sounds like the way to go for older OS's