use of com.bourke.glimmr.common.GlimmrPagerAdapter in project glimmr by brk3.
the class GroupViewerActivity method initViewPager.
@Override
protected void initViewPager() {
mViewPager = (ViewPager) findViewById(R.id.viewPager);
mAdapter = new GlimmrPagerAdapter(getSupportFragmentManager(), mViewPager, mActionBar, CONTENT) {
@Override
public Fragment getItemImpl(int position) {
switch(position) {
case GROUP_POOL_PAGE:
return GroupPoolGridFragment.newInstance(mGroup);
case GROUP_ABOUT_PAGE:
return GroupAboutFragment.newInstance();
}
return null;
}
};
super.initViewPager();
}
Aggregations