code: private void initializeFragmentSwitcher() {
      mFragmentSwitcher = (FragmentSwitcher) findViewById(R.id.fragment_switcher);
      mFragmentAdapter = new FragmentStateArrayPagerAdapter(getSupportFragmentManager());
      mFragmentSwitcher.setAdapter(mFragmentAdapter);
    }
docs: Initializes the fragment switcher.  It works just like a viewpager.