user3062157
user3062157

Reputation: 23

How to implement "step-by-step" UI pattern in Android?

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:

enter image description here

Upvotes: 1

Views: 650

Answers (3)

Barışcan Kayaoğlu
Barışcan Kayaoğlu

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

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

Plasma
Plasma

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

Related Questions