NestedScrollView

public class NestedScrollView implements NestedScrollingParent, NestedScrollingParent2, NestedScrollingParent3, NestedScrollingChild, NestedScrollingChild2, NestedScrollingChild3, ScrollingView


NestedScrollView is just like 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 types

NestedScrollView.OnScrollChangeListener

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

Public constructors

NestedScrollView(
    @NonNull Context context,
    @Nullable AttributeSet attrs,
    int defStyleAttr
)

Public methods

@Override void
@Override void
addView(View child, int index)
@Override void
@Override void
addView(View child, int index, ViewGroup.LayoutParams params)
boolean
arrowScroll(int direction)

Handle scrolling in response to an up or down arrow click.

@Override void
@Override boolean
@Override boolean
dispatchNestedFling(float velocityX, float velocityY, boolean consumed)
@Override boolean
dispatchNestedPreFling(float velocityX, float velocityY)
@Override boolean
dispatchNestedPreScroll(
    int dx,
    int dy,
    int[] consumed,