{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ScrollScope

public interface ScrollScope


Scope used for suspending scroll blocks

Summary

Public methods

abstract float
scrollBy(float pixels)

Attempts to scroll forward by pixels px.

Public methods

scrollBy

abstract float scrollBy(float pixels)

Attempts to scroll forward by pixels px.

Returns
float

the amount of the requested scroll that was consumed (that is, how far it scrolled)