Fragment newFragment = newExampleFragment();FragmentTransaction transaction =getFragmentManager().beginTransaction();transaction.replace(R.id.fragment_container,newFragment);transaction.commit();那你直接替换viewpager里面的view不就完事儿了