261 comments found.

DemskyT

DemskyT Purchased

Hey MarkO1337 – how i can add a new Page? When i add a new page and i going back / switch to the first page the cover display does not displayed.

public class TabPagerAdapter extends FragmentStatePagerAdapter { MainScreen mainScreen = new MainScreen(); RadiosScreen radioStreen = new RadiosScreen(); RadiosScreen radioStreen2 = new RadiosScreen(); public TabPagerAdapter(FragmentManager fm) { super(fm); // TODO Auto-generated constructor stub } @Override public Fragment getItem(int i) { switch (i) { case 0: return mainScreen; case 1: return radioStreen; case 2: return radioStreen2; } return null; } @Override public int getCount() { // TODO Auto-generated method stub return 3; //No of Tabs } }
by
by
by
by
by
by