Skip to content

Overscroll layout for NestedScrollView and RecyclerView

Notifications You must be signed in to change notification settings

bennyfajri/OverscrollScrollView

Repository files navigation

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

drawing

About

Overscroll layout for NestedScrollView and RecyclerView

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages