Background: I’ve want my users to select their birth year from a list of birth years.
I’m currently using a spinner with an item resource in XML that creates a long-scrolling drop-down list. I’ve read posts on using DatePicker but it would require some major modifications that make is somewhat unstable from platform to platform. So my question is:
How best to represent a selectable list of years in a form?
I do not think there is much of best practice available here. What you choose will depend on the feel of your application and how well the method integrates with it.
That said, a simple
EditTextis likely best – nothing clever required. Consider also settingandroid:digits="1234567890"on it. Doing so will also display the comfortable numeric keyboard.