Fragment overlaps sometimes when switching tabs [duplicate]
问题 This question already has answers here : Android: fragments overlapping issue (16 answers) Closed 5 years ago . I have a two pane layout with my buttons on the left. When a button is pressed its corresponding fragment is displayed on the right. Sometimes the fragments overlap but this is an intermittent issue. I can't replicate it all the time but it does happen public void onClick(View v) { switch (v.getId()) { case R.id.imageButtonSettingsManageBooks: SettingsManageBooksFragment mbFragment