Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Creating a signup page with many fields in Android

Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on an android project which has a sign up page with about 21 fields.Putting all the fields in one form wont work.So i was planning to divide it into 3 activities of 7 fields each.So i wanted to know as how to go about doing this.
Can i create three fragments for the form.?
Also how would i validate the fields?
Should i validate each page separately or all at the same time at the end?
Posts: 43081
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If this sign-up activity is voluntarily (i.e., people are free not to sign up), then I advise against so many required fields. The fewer fields, the higher the likelihood that people will go through with the process. You can always ask for more information later if people want to start some action in the app that requires it.

If you do go ahead with all the fields, I wouldn't use several activities - maybe have the activity switch between different layouts, or use a ViewPager with 3 tabs (which would imply 3 different fragments).

Vaiidation should occur as people advance from one page to the next (meaning, they should not be able to advance to the next page if the data entered so far does not validate). And you should make it clear from the beginning how many sign up pages there are.
I love a woman who dresses in stainless steel ... and carries tiny ads:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic