Stay organized with collections
Save and categorize content based on your preferences.
interface OnScrollChangedListener
Interface definition for a callback to be invoked when something in the view tree has been scrolled.
Summary
Public methods |
abstract Unit |
Callback method to be invoked when something in the view tree has been scrolled.
|
Public methods
abstract fun onScrollChanged(): Unit
Callback method to be invoked when something in the view tree has been scrolled.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ViewTreeObserver.OnScrollChangedListener\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnScrollChangedListener\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/ViewTreeObserver.OnScrollChangedListener \"View this page in Java\") \n\n```\ninterface OnScrollChangedListener\n```\n\n|------------------------------------------------------------|\n| [android.view.ViewTreeObserver.OnScrollChangedListener](#) |\n\nInterface definition for a callback to be invoked when something in the view tree has been scrolled.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onScrollChanged](#onScrollChanged())`()` Callback method to be invoked when something in the view tree has been scrolled. |\n\nPublic methods\n--------------\n\n### onScrollChanged\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onScrollChanged(): Unit\n```\n\nCallback method to be invoked when something in the view tree has been scrolled."]]