use of cn.edu.cqupt.nmid.headline.ui.fragment.SlidingTabFragment in project nmid-headline by miao1007.
the class HomeActivity method onNavigationDrawerItemSelected.
@Override
public void onNavigationDrawerItemSelected(int position) {
FragmentManager fragmentManager = getSupportFragmentManager();
Fragment fragment = null;
switch(position) {
case 0:
fragment = new SlidingTabFragment();
break;
case 1:
fragment = new ImagesFeedFragment();
break;
case 2:
fragment = new FavFeedFragment();
break;
}
if (fragment != null) {
fragmentManager.beginTransaction().replace(R.id.base_fragment_container, fragment).commit();
}
}
Aggregations