Skip to content

About

Demonstrates how to progammatically scroll a RecyclerView or NestedScrollView with a Drag Handle

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

ScrollHandleExample

YouTube: Scroll Handle Example

Demonstrates how to progammatically scroll a RecyclerView by manipulating a View with a TouchListener. Although only a RecyclerView is shown in the code, the same method works just as well with NestedScrollView.

The method can be especially useful when constructing layouts that make use of CollapsingToolbarLayout from the Android Design Support Library. This is because layout elements beyond the RecyclerView can be added below the collapsing toolbar, yet still cause it to collapse and expand based on touch events in the same way as a RecyclerView or NestedScrollView.

A demonstration video is on YouTube and a blog post at Partisan Apps that goes into more detail.

About

Demonstrates how to progammatically scroll a RecyclerView or NestedScrollView with a Drag Handle

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages