a view pager, so I have taken the no of items(no of pages) to be loaded from the database. For eg, if I have 5 pages, I have to call 5 different APIs but the UI is Same for all the pages.
How should I proceed?
Create a layout file for the UI of pages, and inflate that in ur PagerAdapter's instantiateItem() method
Обсуждают сегодня