Getting “Fragment did not create a view” after addition of other Fragment without UI

后端 未结 2 1066
南旧
南旧 2021-01-04 08:14

I\'m having a really weird problem. I have a common fragment that is added in almost every activity of my app. This fragment shows a small version of the player bar. So it l

2条回答
  •  自闭症患者
    2021-01-04 08:28

    Oh my God, I can't beleive it. I solved my problem just setting the ID of the fragment that was having problem.

    Now, the XML's layout of the Activity is like this:

    
    
        
    
        
    
    

    I don't know why. It must be a bug.

提交回复
热议问题