use of tr.bcxip.hummingbird.UserInfoFragment in project Hummingbird-for-Android by xiprox.
the class ProfileTabsPagerAdapter method getItem.
@Override
public Fragment getItem(int position) {
Bundle args = new Bundle();
Fragment fragment = null;
switch(position) {
case 0:
fragment = new UserInfoFragment();
break;
case 1:
fragment = new FeedFragment();
break;
case 2:
fragment = new FavoriteAnimeFragment();
}
args.putString(ProfileFragment.ARG_USERNAME, username);
if (fragment != null)
fragment.setArguments(args);
return fragment;
}
Aggregations