Advertisement
Guest User

Untitled

a guest
Nov 20th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. @Override
  2. public Fragment getItem(int position) {
  3. //return Con_70s.newInstance(position);//this is why it shows the same list on every page
  4. switch (position) {
  5. case 0://Page 1
  6. {
  7. return Con_70s.newInstance(position);//return 1970s
  8. break;
  9. }
  10. case 1://Page 2
  11. {
  12. //CHANGE THIS
  13. return Con_70s.newInstance(position);//Return 1980s
  14. break;
  15. }
  16. }
  17. return null;
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement