Deprecated: use FragmentPagerAdapter(FragmentManager, int) with BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMEN
viewpage+多fragment时,
遇到以下deprecated
Deprecated: use FragmentPagerAdapter(FragmentManager, int) with BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT
解决办法:
vp_main.adapter = object : FragmentPagerAdapter(supportFragmentManager,
FragmentPagerAdapter.BEHA
原创
2020-06-01 18:36:06 ·
3972 阅读 ·
3 评论