FragmentPagerAdapter deprecated

后端 未结 3 1368
北恋
北恋 2020-12-28 11:43

Since API 27 FragmentPagerAdapter is deprecated. What\'s the best alternative to use for this?

In my case, I understand something like super(fragm

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 12:22

    It seems like not only the constructor without behavior, but the class FragmentPagerAdapter (which can consume a good amount of memory by keeping Framents in memory), and FragmentStatePagerAdapter are both in deprication stage. I wonder what can be used to extend abstract class PagerAdapter to extend codebase lifespan.

提交回复
热议问题