문제

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?

도움이 되었습니까?

해결책

Have you thought about first saving the questions in a list and then accordingly generating your fragments on the Adapter

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top