Replacing Fragments isn't working/Am I executing this the proper way?

后端 未结 5 773
滥情空心
滥情空心 2020-12-14 08:43

It\'s taken me some time to wrap my head around fragments, but this should be my last question on fragments, since I think I just about have them down. I know this is a huge

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 09:03

    In short, you CAN NOT replace fragment if u defined it in XML with fragment tag. Instead, as @pawelzieba adviced add Frame tag in your layout, find it and add,remove, replace fragments there.. Hope it helped. Cheers

提交回复
热议问题