SwipeRefreshLayout.OnChildScrollUpCallback

public interface SwipeRefreshLayout.OnChildScrollUpCallback


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

Summary

Public methods

abstract boolean

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

Public methods

canChildScrollUp

Added in 1.0.0
abstract boolean canChildScrollUp(@NonNull SwipeRefreshLayout parent, @Nullable View child)

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

Parameters
@NonNull SwipeRefreshLayout parent

SwipeRefreshLayout that this callback is overriding.

@Nullable View child

The child view of SwipeRefreshLayout.

Returns
boolean

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