User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am planning to create a rate convertor for food recipes. The user has to introduce the quantity of some food and then select the unit (gr,kg,mg,cl...). First of all I think in seekbar, but as the quantity could be infinite the seekbar doesn't make sense.

The best approach I can think of is: +[EditBox]- [Select unit(gr,Kg)…]

What do you think is the best option? Do you have any tip or advice?

share|improve this question
Thanks Patrick for the help – rallat Sep 3 '10 at 13:35
up vote 6 down vote accepted

Disclaimer: some of this belongs as a comment, but I don't have the rep yet.

Can the amount really be infinite? For example, I've never seen a recipe with 100kg of flour in it. There's probably a reasonable limit of some kind, and that might give you the ability to simplify the UI element.

Also, why two separate boxes? Why not just have them input the amount and unit in the same box and then parse the quantity. The separate unit of measure selector introduces two additional clicks which are basically unnecessary. As a user I would be thinking of the quantity and unit of measurement as one thing. You could do something with simple help text:

alt text

share|improve this answer
Thanks jasonrr, good idea :) I will tink about it – rallat Sep 3 '10 at 13:36
strToDate is a function to do this with dates like "2 weeks" or "three days". Works like a charm. It's not trivial though to capture all of the use cases. Test alot. – Glen Lipka Sep 8 '10 at 0:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.