Tabs + ViewPager swiping | Techbirds
import java.util.HashMap; import java.util.List; import java.util.Vector; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.view.ViewPager; import android.view.View; import android.widget.TabHost; import android.widget.TabHost.TabContentFactory; import com.andy.R; import com.andy.fragments.viewpager.PagerAdapter; /** * The TabsViewPagerFragmentActivity class implements the Fragment activity that maintains a TabHost using a ViewPager. * @author mwho */ public class TabsViewPagerFragmentActivity extends FragmentActivity implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener {