public abstract class AnimationOffsetBehavior<V extends android.view.View,CTR extends BehaviorController> extends ViewOffsetBehavior<V> implements android.os.Handler.Callback
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnimationOffsetBehavior.ScrollingListener |
| Modifier and Type | Field and Description |
|---|---|
protected BehaviorConfiguration |
configuration |
protected CTR |
controller |
static float |
GOLDEN_RATIO |
protected android.os.Handler |
handler |
protected V |
mChild |
protected java.util.List<AnimationOffsetBehavior.ScrollingListener> |
mListeners |
protected CoordinatorLayout |
mParent |
protected int |
progressBase |
static int |
TYPE_UNKNOWN |
| Constructor and Description |
|---|
AnimationOffsetBehavior(android.content.Context context) |
AnimationOffsetBehavior(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addScrollListener(AnimationOffsetBehavior.ScrollingListener listener) |
protected void |
animateOffsetDeltaWithDuration(CoordinatorLayout parent,
android.view.View child,
int offsetDelta,
int initialOffset,
int triggerOffset,
int minOffset,
int maxOffset,
long duration,
int type) |
protected void |
animateOffsetWithDuration(CoordinatorLayout parent,
android.view.View child,
int destOffset,
int initialOffset,
int triggerOffset,
int minOffset,
int maxOffset,
long duration,
int type) |
protected void |
cancelAnimation() |
protected void |
enqueuePendingActions(java.lang.Runnable action) |
protected void |
executePendingActions() |
V |
getChild() |
BehaviorConfiguration |
getConfiguration() |
CTR |
getController() |
CoordinatorLayout |
getParent() |
boolean |
handleMessage(android.os.Message msg) |
void |
onAttachedToLayoutParams(CoordinatorLayout.LayoutParams params) |
void |
onDetachedFromLayoutParams() |
boolean |
onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection) |
boolean |
onMeasureChild(CoordinatorLayout parent,
V child,
int parentWidthMeasureSpec,
int widthUsed,
int parentHeightMeasureSpec,
int heightUsed) |
protected void |
removeScrollListener(AnimationOffsetBehavior.ScrollingListener listener) |
void |
requestLayout() |
protected void |
runOnUiThread(java.lang.Runnable action) |
protected void |
runWithView(java.lang.Runnable action) |
void |
setConfiguration(BehaviorConfiguration configuration) |
getLeftAndRightOffset, getTopAndBottomOffset, layoutChild, setLeftAndRightOffset, setTopAndBottomOffsetpublic static final int TYPE_UNKNOWN
public static final float GOLDEN_RATIO
protected V extends android.view.View mChild
protected CoordinatorLayout mParent
protected int progressBase
protected java.util.List<AnimationOffsetBehavior.ScrollingListener> mListeners
protected android.os.Handler handler
protected CTR extends BehaviorController controller
protected BehaviorConfiguration configuration
public AnimationOffsetBehavior(android.content.Context context)
public AnimationOffsetBehavior(android.content.Context context,
android.util.AttributeSet attrs)
public boolean onMeasureChild(CoordinatorLayout parent,
V child,
int parentWidthMeasureSpec,
int widthUsed,
int parentHeightMeasureSpec,
int heightUsed)
public boolean onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection)
onLayoutChild in class ViewOffsetBehavior<V extends android.view.View>public void onAttachedToLayoutParams(CoordinatorLayout.LayoutParams params)
public void onDetachedFromLayoutParams()
protected void cancelAnimation()
protected void animateOffsetDeltaWithDuration(CoordinatorLayout parent,
android.view.View child,
int offsetDelta,
int initialOffset,
int triggerOffset,
int minOffset,
int maxOffset,
long duration,
int type)
protected void animateOffsetWithDuration(CoordinatorLayout parent,
android.view.View child,
int destOffset,
int initialOffset,
int triggerOffset,
int minOffset,
int maxOffset,
long duration,
int type)
public CoordinatorLayout getParent()
public V getChild()
protected void addScrollListener(AnimationOffsetBehavior.ScrollingListener listener)
protected void removeScrollListener(AnimationOffsetBehavior.ScrollingListener listener)
protected void runWithView(java.lang.Runnable action)
protected void runOnUiThread(java.lang.Runnable action)
protected void enqueuePendingActions(java.lang.Runnable action)
public boolean handleMessage(android.os.Message msg)
handleMessage in interface android.os.Handler.Callbackprotected void executePendingActions()
public void requestLayout()
public CTR getController()
public BehaviorConfiguration getConfiguration()
public void setConfiguration(BehaviorConfiguration configuration)