使用setUserVisibleHint 方法判断Fragment 是否可见. 场景:ViewPager中嵌套多个Fragment,判断Fragment是否可见 以下为Kotlin代码. MainActivity.kt ...
確定! 回上一頁