I have a Fragment State Pager Adapter and a list of Questions which I retrieve from a server as JSON. Does anyone know how I can dynamically (based on the number of questions returned from the server), create many instances of the same fragment, and load them into my activity's view?
Asked
Active
Viewed 145 times
1 Answers
0
Have you thought about first saving the questions in a list and then accordingly generating your fragments on the Adapter

Terril Thomas
- 1,486
- 13
- 32
-
That's the thing, I don't know how to generate the fragments from a list. Any tutorials or references, you can show me? – Abimbola Esuruoso Mar 11 '14 at 21:47
-
See some example related to pager adapter – Terril Thomas Mar 17 '14 at 04:53