Skip to content

统一Fragment可见性监听逻辑,支持ViewPager多级嵌套

License

Notifications You must be signed in to change notification settings

Brook007/LazyFragmentUtil

Repository files navigation

Fragment懒加载工具类

Fragment懒加载工具,支持ViewPager嵌套

引入依赖

  1. 根项目的build.gradle中加入以下代码
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
  1. 在需要的模块加入以下的依赖
dependencies {
	implementation 'com.gitee.brook_007:LazyFragmentUtil:1.0.2'
}
  1. 然后在Fragment的构造方法中创建FragmentUserVisibilityController实例,再在Fragment中调用FragmentUserVisibilityController中对应的方法,推荐在BaseFragment中使用

About

统一Fragment可见性监听逻辑,支持ViewPager多级嵌套

Resources

License

Stars

Watchers

Forks

Packages

No packages published