Search in sources :

Example 1 with PicFragment

use of com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.PicFragment in project Talon-for-Twitter by klinker24.

the class TimelinePagerAdapter method getFrag.

public Fragment getFrag(int type, long listId) {
    switch(type) {
        case AppSettings.PAGE_TYPE_LIST:
            Fragment f = new ListFragment();
            Bundle b = new Bundle();
            b.putLong("list_id", listId);
            f.setArguments(b);
            return f;
        case AppSettings.PAGE_TYPE_LINKS:
            return new LinksFragment();
        case AppSettings.PAGE_TYPE_PICS:
            return new PicFragment();
        case AppSettings.PAGE_TYPE_FAV_USERS:
            return new FavUsersFragment();
    }
    return null;
}
Also used : PicFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.PicFragment) FavUsersFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.FavUsersFragment) Bundle(android.os.Bundle) Fragment(android.app.Fragment) PicFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.PicFragment) WorldTrendsFragment(com.klinker.android.twitter.activities.main_fragments.other_fragments.trends.WorldTrendsFragment) FavUsersFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.FavUsersFragment) LinksFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.LinksFragment) LocalTrendsFragment(com.klinker.android.twitter.activities.main_fragments.other_fragments.trends.LocalTrendsFragment) HomeFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.HomeFragment) LinksFragment(com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.LinksFragment)

Aggregations

Fragment (android.app.Fragment)1 Bundle (android.os.Bundle)1 HomeFragment (com.klinker.android.twitter.activities.main_fragments.home_fragments.HomeFragment)1 FavUsersFragment (com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.FavUsersFragment)1 LinksFragment (com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.LinksFragment)1 PicFragment (com.klinker.android.twitter.activities.main_fragments.home_fragments.extentions.PicFragment)1 LocalTrendsFragment (com.klinker.android.twitter.activities.main_fragments.other_fragments.trends.LocalTrendsFragment)1 WorldTrendsFragment (com.klinker.android.twitter.activities.main_fragments.other_fragments.trends.WorldTrendsFragment)1