弃用 setUserVisibleHint. FragmentPagerAdapter 构造器新增参数,使用 setMaxLifecycle() API 确保fragment resumed 时对用户可见.
確定! 回上一頁