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?
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 good mentalist. And so does this tiny ad:
Thread Boost - a very different sort of advertising