/LazyFragment

懒加载Fragment,提供可见和隐藏的回调,支持在ViewPager中多重嵌套,支持support和androidx

Primary LanguageJava

LazyFragment

DEMO下载

androidx-demo

support-demo

集成

  • 添加jitpack库

// build.gradle(Project:)
allprojects {
    repositories {
        ...
            maven { url 'https://www.jitpack.io' }
    }
}
// build.gradle(Module:)
dependencies {
    // support
    implementation 'com.github.goweii.LazyFragment:lazyfragment:1.1.0'
    // androidx
    implementation 'com.github.goweii.LazyFragment:lazyfragmentx:1.1.0'
}