Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.


interface OnScrollChangeListener

Interface definition for a callback to be invoked when the scroll X or Y positions of a view change.

This version of the interface works on all versions of Android, back to API v4.


Public methods
abstract Unit
onScrollChange(v: NestedScrollView!, scrollX: Int, scrollY: Int, oldScrollX: Int, oldScrollY: Int)

Called when the scroll position of a view changes.

Public methods


abstract fun onScrollChange(
    v: NestedScrollView!,
    scrollX: Int,
    scrollY: Int,
    oldScrollX: Int,
    oldScrollY: Int
): Unit

Called when the scroll position of a view changes.

v NestedScrollView!: The view whose scroll position has changed.
scrollX Int: Current horizontal scroll origin.
scrollY Int: Current vertical scroll origin.
oldScrollX Int: Previous horizontal scroll origin.
oldScrollY Int: Previous vertical scroll origin.