Previous fragment visible under the new fragment

后端 未结 7 1370
心在旅途
心在旅途 2021-02-05 04:10

I have a tab + ViewPager layout and in one of these tabs I have a list view. When I replace that list fragment upon the onclick I can still see the old fragment u

7条回答
  •  醉梦人生
    2021-02-05 04:23

    Add this to both fragment parent layout

    android:background="@android:color/white".

    The one which you are replacing and one which you will replace.

提交回复
热议问题