Overscroll layout for NestedScrollView and RecyclerView

OverscrollScrollView

Overscroll layout for NestedScrollView and RecyclerView

thanks to Bouncy Library and Juan Mengual repository

Nested Scroll View

just use layout from the dependency by using :

 <com.factor.bouncy.BouncyNestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        < ...
          ...
        />

 </com.factor.bouncy.BouncyNestedScrollView>

Recycler View

You have two option for recycler view, using from the dependency or build your own bounce factory

  1. Bounce Factory here are the factory code that i modify little bit

BounceEffectFactory.kt SecondActivity

  1. From Bouncy Library using in xml code, just like using an original recycler view :

 <com.factor.bouncy.BouncyRecyclerView
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       ...
 />

Preview

GitHub

View Github