Overscrollable ScrollView

Additional

Language
Kotlin
Version
1.0 (Aug 7, 2019)
Created
Jun 11, 2019
Updated
Aug 8, 2019 (Retired)
Owner
Aksenov Vladimir (vovaksenov99)
Contributor
Aksenov Vladimir (vovaksenov99)
1
Activity
Badge
Generate
Download
Source code

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.

Parameter Description units
maxOverscrollDistance max overscroll distance dp
scaleCoefficient depends from current overscroll. Smaller the value -> increase scale. -
pullUpAnimationTime pull up animation duration ms
pullUpInterpolator provides smooth pull up animation Interpolator

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)