ViewPager: Recursive entry to executePendingTransactions

前端 未结 3 1992
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 02:44

I have a ViewPager within a ViewPager and I am getting this exception

09-07 18:30:26.392: ERROR/AndroidRuntime(841): FATAL EXCEPTION: main
    java.lang.Ille         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 03:12

    Refer to this. Display fragment viewpager within a fragment

    It can be done, but has be done through an Asysnc as you have to let the first fragments transaction complete first. You can have fragments within fragments. I know because I have several projects doing it.

提交回复
热议问题