@Override
    public Fragment getItem(int position) {
        switch (position) {
        case 0:
            return new SearchRepositoryListFragment();
        case 1:
            return new SearchUserListFragment();
        default:
            return null;
        }
    }
Create search pager adapter

@param activity
app/src/main/java/com/github/pockethub/android/ui/search/SearchPagerAdapter.java