Home

Awesome

Android Arsenal

OverscrolllableNestedScrollView

Small custom view with smooth overscroll. You can add scale background

dependencies {
        implementation 'com.github.vovaksenov99:OverscrollableScrollView:1.0'
}

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

Work example

View params.

ParameterDescriptionunits
maxOverscrollDistancemax overscroll distancedp
scaleCoefficientdepends from current overscroll. Smaller the value -> increase scale.-
pullUpAnimationTimepull up animation durationms
pullUpInterpolatorprovides smooth pull up animationInterpolator

scaleView - view which will be scaled when overscroll start (can be null)

headerView - view which can be above OverscrolllableNestedScrollView, like at the example (can be null)