All I want to implement load more in viewPager
like ListView
does when reached its last position, it loads more data and merges all previous one and new one. So how to implement in viewPager
when user reaches last position of fragment then load more 10(or any number of fragment)and get result like list view.
This is possible in case of viewPager
?
Asked
Active
Viewed 1,387 times
4

Anshul Tyagi
- 446
- 3
- 24

Mak
- 71
- 6
-
why not? Everything is possible what is possible in an activity. – Anshul Tyagi Mar 31 '15 at 12:19
-
but how to get rid from this problem – Mak Mar 31 '15 at 12:26
-
Go to google and search about lazy list, get a demo and try to implement it. – Anshul Tyagi Mar 31 '15 at 12:27
-
You can use adapters in a viewpager like you do for a list view. Look for PagerAdapter. – miva2 Mar 31 '15 at 12:28
-
Got your solution here ...check this out :) https://github.com/lianghanzhen/EndlessViewPager/blob/master/library/src/com/lianghanzhen/endless/viewpager/EndlessPagerAdapter.java – Ajeet Mar 31 '15 at 12:30