你应该是切换到后台再回来时出现重叠,判断Activity的onCreate方法中的savedInstanceState不为null的话说明是从后台切回应用的,这时不要再新创建fragment,而要使用findFragmentByTag方法