Search in sources :

Example 1 with FeedFragment

use of tr.bcxip.hummingbird.FeedFragment 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;
}
Also used : Bundle(android.os.Bundle) FavoriteAnimeFragment(tr.bcxip.hummingbird.FavoriteAnimeFragment) UserInfoFragment(tr.bcxip.hummingbird.UserInfoFragment) UserInfoFragment(tr.bcxip.hummingbird.UserInfoFragment) Fragment(android.support.v4.app.Fragment) FavoriteAnimeFragment(tr.bcxip.hummingbird.FavoriteAnimeFragment) FeedFragment(tr.bcxip.hummingbird.FeedFragment) ProfileFragment(tr.bcxip.hummingbird.ProfileFragment) FeedFragment(tr.bcxip.hummingbird.FeedFragment)

Aggregations

Bundle (android.os.Bundle)1 Fragment (android.support.v4.app.Fragment)1 FavoriteAnimeFragment (tr.bcxip.hummingbird.FavoriteAnimeFragment)1 FeedFragment (tr.bcxip.hummingbird.FeedFragment)1 ProfileFragment (tr.bcxip.hummingbird.ProfileFragment)1 UserInfoFragment (tr.bcxip.hummingbird.UserInfoFragment)1