public abstract class BaseBehavior
extends <any>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canInit |
protected boolean |
isFirstMove |
protected AnimateHelper |
mAnimateHelper |
protected int |
mTouchSlop |
| Constructor and Description |
|---|
BaseBehavior(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
static BaseBehavior |
from(android.view.View view) |
void |
hide() |
void |
onNestedPreScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
android.view.View target,
int dx,
int dy,
int[] consumed) |
protected abstract void |
onNestPreScrollInit(android.view.View child) |
boolean |
onStartNestedScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
android.view.View directTargetChild,
android.view.View target,
int nestedScrollAxes) |
void |
show() |
protected final int mTouchSlop
protected boolean isFirstMove
protected boolean canInit
protected AnimateHelper mAnimateHelper
public BaseBehavior(android.content.Context context,
android.util.AttributeSet attrs)
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
android.view.View directTargetChild,
android.view.View target,
int nestedScrollAxes)
public void onNestedPreScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
android.view.View target,
int dx,
int dy,
int[] consumed)
protected abstract void onNestPreScrollInit(android.view.View child)
public void show()
public void hide()
public static BaseBehavior from(android.view.View view)