public class RefreshFooterBehavior<V extends android.view.View> extends VerticalIndicatorBehavior<V,FooterBehaviorController> implements Loader
RefreshContentBehavior, otherwise it'll not work.
The view to which this behavior is attached must be a direct child of CoordinatorLayout.
AnimationOffsetBehavior.ScrollingListenerconfiguration, controller, GOLDEN_RATIO, handler, mChild, mListeners, mParent, progressBase, TYPE_UNKNOWN| Constructor and Description |
|---|
RefreshFooterBehavior(android.content.Context context) |
RefreshFooterBehavior(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnLoadListener(OnLoadListener listener) |
void |
addOnScrollListener(OnScrollListener listener) |
FooterBehaviorController |
getController() |
protected int |
getInitialOffset(CoordinatorLayout parent,
android.view.View child) |
protected int |
getMaxOffset(CoordinatorLayout parent,
android.view.View child) |
protected int |
getMinOffset(CoordinatorLayout parent,
android.view.View child) |
protected int |
getRefreshTriggerOffset(CoordinatorLayout parent,
android.view.View child) |
boolean |
layoutDependsOn(CoordinatorLayout parent,
V child,
android.view.View dependency) |
void |
load()
Begin loading.
|
void |
loadComplete()
Loading complete, it will reset the loading state of footer behavior.
|
void |
loadError(java.lang.Throwable throwable)
The same as
Loader.loadComplete(), in addition it can report exceptions to the loader
listeners. |
boolean |
onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection) |
getContentBehavior, onDependentViewChanged, onMeasureChild, onStartNestedScroll, onStopNestedScrolladdScrollListener, animateOffsetDeltaWithDuration, animateOffsetWithDuration, cancelAnimation, enqueuePendingActions, executePendingActions, getChild, getConfiguration, getParent, handleMessage, onAttachedToLayoutParams, onDetachedFromLayoutParams, removeScrollListener, requestLayout, runOnUiThread, runWithView, setConfigurationgetLeftAndRightOffset, getTopAndBottomOffset, layoutChild, setLeftAndRightOffset, setTopAndBottomOffsetpublic RefreshFooterBehavior(android.content.Context context)
public RefreshFooterBehavior(android.content.Context context,
android.util.AttributeSet attrs)
public boolean onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection)
onLayoutChild in class VerticalIndicatorBehavior<V extends android.view.View,FooterBehaviorController>public void addOnScrollListener(OnScrollListener listener)
public void load()
Loaderpublic void loadComplete()
LoaderloadComplete in interface Loaderpublic void loadError(java.lang.Throwable throwable)
LoaderLoader.loadComplete(), in addition it can report exceptions to the loader
listeners.public void addOnLoadListener(OnLoadListener listener)
public FooterBehaviorController getController()
getController in class AnimationOffsetBehavior<V extends android.view.View,FooterBehaviorController>protected int getInitialOffset(CoordinatorLayout parent,
android.view.View child)
getInitialOffset in class VerticalIndicatorBehavior<V extends android.view.View,FooterBehaviorController>protected int getRefreshTriggerOffset(CoordinatorLayout parent,
android.view.View child)
getRefreshTriggerOffset in class VerticalIndicatorBehavior<V extends android.view.View,FooterBehaviorController>protected int getMinOffset(CoordinatorLayout parent,
android.view.View child)
getMinOffset in class VerticalIndicatorBehavior<V extends android.view.View,FooterBehaviorController>protected int getMaxOffset(CoordinatorLayout parent,
android.view.View child)
getMaxOffset in class VerticalIndicatorBehavior<V extends android.view.View,FooterBehaviorController>public boolean layoutDependsOn(CoordinatorLayout parent,
V child,
android.view.View dependency)
layoutDependsOn in class VerticalIndicatorBehavior<V extends android.view.View,FooterBehaviorController>