Search in sources :

Example 1 with TwitterSearchFragment

use of com.klinker.android.twitter.activities.search.TwitterSearchFragment in project Talon-for-Twitter by klinker24.

the class SearchPagerAdapter method getItem.

@Override
public Fragment getItem(int i) {
    Fragment f = null;
    switch(i) {
        case 0:
            f = new TimelineSearchFragment();
            f.setArguments(getTimelineBundle());
            break;
        case 1:
            f = new TwitterSearchFragment();
            f.setArguments(getTwitterBundle());
            break;
        case 2:
            f = new UserSearchFragment();
            f.setArguments(getUserBundle());
            break;
    }
    return f;
}
Also used : UserSearchFragment(com.klinker.android.twitter.activities.search.UserSearchFragment) Fragment(android.app.Fragment) TimelineSearchFragment(com.klinker.android.twitter.activities.search.TimelineSearchFragment) UserSearchFragment(com.klinker.android.twitter.activities.search.UserSearchFragment) TwitterSearchFragment(com.klinker.android.twitter.activities.search.TwitterSearchFragment) TimelineSearchFragment(com.klinker.android.twitter.activities.search.TimelineSearchFragment) TwitterSearchFragment(com.klinker.android.twitter.activities.search.TwitterSearchFragment)

Aggregations

Fragment (android.app.Fragment)1 TimelineSearchFragment (com.klinker.android.twitter.activities.search.TimelineSearchFragment)1 TwitterSearchFragment (com.klinker.android.twitter.activities.search.TwitterSearchFragment)1 UserSearchFragment (com.klinker.android.twitter.activities.search.UserSearchFragment)1