FragmentPagerAdapter(androidx.fragment.app.FragmentManager)‘ 已被弃用
源代码public MyAdapter(FragmentManager fragmentManager) {super(fragmentManager);}改为public MyAdapter(FragmentManager fragmentManager) {super(fragmentManager,FragmentPagerAdapter.BEHAVIOR_RESUME_ONLY_CURRE
·
原代码
public MyAdapter(FragmentManager fragmentManager) {
super(fragmentManager);
}
改为
public MyAdapter(FragmentManager fragmentManager) {
super(fragmentManager,FragmentPagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
}
更多推荐
已为社区贡献3条内容
所有评论(0)