Reputation: 23
I have a task to port some Iphone app to Android. I've faced a problem. App should include step-by-step answering questions. I wonder, how to implement this feature. I thought about FragmentActivity, wich switches between predefined types of Fragments (I have static types of questions and answers, which are received from back-end).
Here is the iPhone screenshot:
Upvotes: 1
Views: 650
Reputation: 1304
You could just implement a state diagram and inflate layouts according to your diagram if you have a finite count of state with static information.
Upvotes: 0
Reputation: 5971
I would recommend ViewPager with fragments. You can disable scrolling and select next page on specific action.
here is a tutorial from google
Upvotes: 0
Reputation: 1961
Check out the ViewFlipper. It allows you to flip through several views. You could make one view for each question and then iterate through them
Upvotes: 2