Previous fragment visible below new fragment

后端 未结 2 1025
南笙
南笙 2021-01-20 02:09

I have a TabLayout with a ViewPager. The ViewPager have four fragments F1, F2, F3 and F4. F1 contains a FrameLayout which can have 2 fragments F11 and F12. Initially I add F

2条回答
  •  Happy的楠姐
    2021-01-20 02:28

    I know it's too late but this answer can help others. it's not a proper solution but it's working for me. So put android:clickable="true" and android:background="?android:attr/colorBackground" in the root view of your fragment. hope this will work.

提交回复
热议问题