This is a java implementation of ViewPager2 wrapper class to enable nested scrolling in viewpager2 (which is disabled by default unlike ViewPager)
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
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
}
}