NestedScrollView
open class NestedScrollView : FrameLayout, NestedScrollingParent3, NestedScrollingChild3, ScrollingView
kotlin.Any | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | androidx.core.widget.NestedScrollView |
NestedScrollView is just like android.widget.ScrollView
, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.
Summary
Nested classes | |
---|---|
abstract |
Interface definition for a callback to be invoked when the scroll X or Y positions of a view change. |
Public constructors | |
---|---|
<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?) |
|
<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?, defStyleAttr: Int) |
Public methods | |
---|---|
open Unit | |
open Unit | |
open Unit |
addView(child: View!, params: LayoutParams!) |
open Unit |
addView(child: View!, index: Int, params: LayoutParams!) |
open Boolean |
arrowScroll(direction: Int) Handle scrolling in response to an up or down arrow click. |
open Unit | |
open Boolean |
dispatchKeyEvent(event: KeyEvent!) |
open Boolean |
dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean) |
open Boolean |
dispatchNestedPreFling(velocityX: Float, velocityY: Float) |
open Boolean | |
open Boolean |
dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?) |
open Unit | |
open Boolean |
dispatchNestedScroll(dxConsumed: Int, |