Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

SwipeRefreshLayout.OnChildScrollUpCallback

public static interface SwipeRefreshLayout.OnChildScrollUpCallback

androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnChildScrollUpCallback


Classes that wish to override SwipeRefreshLayout.canChildScrollUp() method behavior should implement this interface.

Summary

Public methods

abstract boolean canChildScrollUp(SwipeRefreshLayout parent, View child)

Callback that will be called when SwipeRefreshLayout.canChildScrollUp() method is called to allow the implementer to override its behavior.

Public methods

canChildScrollUp

public abstract boolean canChildScrollUp (SwipeRefreshLayout parent, 
                View child)

Callback that will be called when SwipeRefreshLayout.canChildScrollUp() method is called to allow the implementer to override its behavior.

Parameters
parent SwipeRefreshLayout: SwipeRefreshLayout that this callback is overriding.

child View: The child view of SwipeRefreshLayout.

Returns
boolean Whether it is possible for the child view of parent layout to scroll up.