@@ -0,0 +1,1893 @@
+package in.joind.adapter;%0A%0Aimport android.content.Context;%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v4.app.FragmentManager;%0Aimport android.support.v4.app.FragmentStatePagerAdapter;%0A%0Aimport in.joind.EventListFragment;%0Aimport in.joind.R;%0A%0Apublic class EventTypePagerAdapter extends FragmentStatePagerAdapter %7B%0A    Context context;%0A%0A    public EventTypePagerAdapter(FragmentManager fm, Context context) %7B%0A        super(fm);%0A        this.context = context;%0A    %7D%0A%0A    @Override%0A    public Fragment getItem(int position) %7B%0A        Fragment fragment = new EventListFragment();%0A        Bundle args = new Bundle();%0A        args.putString(EventListFragment.ARG_LIST_TYPE_KEY, getItemTypeForPosition(position));%0A        fragment.setArguments(args);%0A%0A        return fragment;%0A    %7D%0A%0A    @Override%0A    public int getCount() %7B%0A        // Hot, Upcoming, My events, Past%0A        return 4;%0A    %7D%0A%0A    @Override%0A    public CharSequence getPageTitle(int position) %7B%0A        switch (position) %7B%0A            case 0:%0A            default:%0A                return context.getString(R.string.activityMainEventsHot);%0A            case 1:%0A                return context.getString(R.string.activityMainEventsUpcoming);%0A            case 2:%0A                return context.getString(R.string.activityMainEventsMyEvent);%0A            case 3:%0A                return context.getString(R.string.activityMainEventsPast);%0A        %7D%0A    %7D%0A%0A    private String getItemTypeForPosition(int position)%0A    %7B%0A        switch (position) %7B%0A            case 0:%0A            default:%0A                return EventListFragment.LIST_TYPE_HOT;%0A            case 1:%0A                return EventListFragment.LIST_TYPE_UPCOMING;%0A            case 2:%0A                return EventListFragment.LIST_TYPE_MY_EVENTS;%0A            case 3:%0A                return EventListFragment.LIST_TYPE_PAST;%0A        %7D%0A    %7D%0A%7D%0A

Add adapter class for ViewPager.