public abstract class VerticalIndicatorBehaviorController<B extends VerticalIndicatorBehavior> extends BehaviorController<B>
| Modifier and Type | Field and Description |
|---|---|
protected int |
mode |
static int |
MODE_FOLLOW
Follow content view.
|
static int |
MODE_FOLLOW_DOWN
Follow when scroll down.
|
static int |
MODE_FOLLOW_UP
Follow when scroll up.
|
static int |
MODE_STILL
Still, does not follow content view.
|
behavior, mLoadListeners, mRefreshListeners, mScrollListeners, proxy| Constructor and Description |
|---|
VerticalIndicatorBehaviorController(B behavior) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
computeOffsetDeltaOnDependentViewChanged(CoordinatorLayout parent,
android.view.View child,
android.view.View dependency,
VerticalIndicatorBehavior behavior,
ScrollingContentBehavior contentBehavior) |
abstract float |
consumeOffsetOnDependentViewChanged(CoordinatorLayout parent,
android.view.View child,
VerticalIndicatorBehavior behavior,
ScrollingContentBehavior contentBehavior,
int currentOffset,
int offsetDelta) |
abstract boolean |
isHiddenPartVisible(CoordinatorLayout parent,
android.view.View child,
VerticalIndicatorBehavior behavior)
Tell if the hidden part of the view is visible.
|
void |
setMode(int mode) |
abstract int |
transformOffsetCoordinate(CoordinatorLayout parent,
android.view.View child,
VerticalIndicatorBehavior behavior,
int currentOffset) |
addOnLoadListener, addOnRefreshListener, addOnScrollListener, copyRemainListeners, getBehavior, getProxy, hasOnLoadListeners, hasOnRefreshListeners, load, loadComplete, loadError, onPreScroll, onScroll, onStartScroll, onStopScroll, refresh, refreshComplete, refreshError, runOnUiThread, runWithView, setBehavior, setProxypublic static final int MODE_FOLLOW
public static final int MODE_STILL
public static final int MODE_FOLLOW_DOWN
public static final int MODE_FOLLOW_UP
protected int mode
public VerticalIndicatorBehaviorController(B behavior)
public void setMode(int mode)
public abstract int computeOffsetDeltaOnDependentViewChanged(CoordinatorLayout parent,
android.view.View child,
android.view.View dependency,
VerticalIndicatorBehavior behavior,
ScrollingContentBehavior contentBehavior)
public abstract float consumeOffsetOnDependentViewChanged(CoordinatorLayout parent,
android.view.View child,
VerticalIndicatorBehavior behavior,
ScrollingContentBehavior contentBehavior,
int currentOffset,
int offsetDelta)
public abstract int transformOffsetCoordinate(CoordinatorLayout parent,
android.view.View child,
VerticalIndicatorBehavior behavior,
int currentOffset)
public abstract boolean isHiddenPartVisible(CoordinatorLayout parent,
android.view.View child,
VerticalIndicatorBehavior behavior)