Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.08 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.08 KB

NestedScrollableHost

JitPack

This is a java implementation of ViewPager2 wrapper class to enable nested scrolling in viewpager2 (which is disabled by default unlike ViewPager)


Gradle Dependency

Repository

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Dependency

Add this to your module's build.gradle file:

dependencies {
	...
	implementation 'com.github.BUSY-LOOPING:NestedScrollableHost:0.0.2'
	}
}

(If the class is still not acessible, add this to your 'settings.gradle' file):

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" } //this line is important
        jcenter() // Warning: this repository is going to shut down soon
    }
}