SkillAgentSearch skills...

ScrollHandleExample

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

Install / Use

/learn @PPartisan/ScrollHandleExample
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated4y ago
Forks5

Languages

Java

Security Score

75/100

Audited on Jul 6, 2021

No findings