IllegalStateException: Can't change container ID of Fragment

后端 未结 10 1710
孤街浪徒
孤街浪徒 2020-11-29 04:18

Android platform: 3.1

I am trying to move a fragment from a container A to a container B. Here follows the code to accomplish this:

private void rea         


        
10条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 05:11

    I had a similar problem and calling manager.executePendingTransactions() before adding the fragment for the second time did the trick for me. Thanks!

提交回复
热议问题