Android replace fragment still displays some of the replaced fragment

后端 未结 4 845
梦如初夏
梦如初夏 2020-12-03 17:50

I have a tab that contains a linear layout with a searchview and a listview. When the user clicks one of the search results, I want to replace that layout with another layou

4条回答
  •  不思量自难忘°
    2020-12-03 17:57

    I was using the correct ID, then also it wasnt going away. Turns out that you need to set the Background color to your needed color in new Fragment layout, like this.

    
    

提交回复
热议问题