Fragment replaced still visible on background

后端 未结 3 967
一整个雨季
一整个雨季 2020-12-28 18:59

I\'m trying to replace one fragment with another one using new navigation drawer pattern. It seems to work but when I choose another option from drawer the new fragment is l

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 19:38

    I have same issue with some fragments. To solve it I simple set background color for all fragment layouts, for example:

    android:background="?android:attr/colorBackground"
    

提交回复
热议问题