Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Fragment getItem(int position) {
- //return Con_70s.newInstance(position);//this is why it shows the same list on every page
- switch (position) {
- case 0://Page 1
- {
- return Con_70s.newInstance(position);//return 1970s
- break;
- }
- case 1://Page 2
- {
- //CHANGE THIS
- return Con_70s.newInstance(position);//Return 1980s
- break;
- }
- }
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement