FragmenManager replace makes overlay

前端 未结 3 1445
无人共我
无人共我 2021-01-06 09:59

I\'m using supportlib v4 to reach master-detail flow.

Problem: New instance of \"details\" fragment overlays the first one (xml created) instead replace it.<

3条回答
  •  抹茶落季
    2021-01-06 10:27

    Here is solution - just need to change fragment to FrameLayout without loading it at activity creation:

    
    
        
    
    
        
    
    
    

提交回复
热议问题