Reputation: 397
I am working on a signup GUI and the process of signup include two steps (hence, two "screens").
Would you create two activities for that cause? or would you manipulate the UI in order to give that impression?
What is the best practice?
Upvotes: 1
Views: 39
Reputation: 855
I dont prefer manipulating the UI. It will unnecessarily clutter the code. So better you can go with multiple activities or fragments with a smooth transition.
Also check about ViewPager.
Upvotes: 1
Reputation: 167
There's a number of ways you can approach this. You can make two activities and use putExtra()
to send data between them. You can also use fragments to have different parts of the form appear when you need them.
Upvotes: 1