public class HorizontalOverScrollBounceEffectDecorator extends OverScrollBounceEffectDecoratorBase
OverScrollBounceEffectDecoratorBase for a horizontal orientation.| Modifier and Type | Class and Description |
|---|---|
protected static class |
HorizontalOverScrollBounceEffectDecorator.AnimationAttributesHorizontal |
protected static class |
HorizontalOverScrollBounceEffectDecorator.MotionAttributesHorizontal |
OverScrollBounceEffectDecoratorBase.AnimationAttributes, OverScrollBounceEffectDecoratorBase.BounceBackState, OverScrollBounceEffectDecoratorBase.IDecoratorState, OverScrollBounceEffectDecoratorBase.IdleState, OverScrollBounceEffectDecoratorBase.MotionAttributes, OverScrollBounceEffectDecoratorBase.OverScrollingState, OverScrollBounceEffectDecoratorBase.OverScrollStartAttributesDEFAULT_DECELERATE_FACTOR, DEFAULT_TOUCH_DRAG_MOVE_RATIO_BCK, DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD, MAX_BOUNCE_BACK_DURATION_MS, mBounceBackState, mCurrentState, mIdleState, MIN_BOUNCE_BACK_DURATION_MS, mOverScrollingState, mStartAttr, mStateListener, mUpdateListener, mVelocity, mViewAdapter, TAG| Constructor and Description |
|---|
HorizontalOverScrollBounceEffectDecorator(IOverScrollDecoratorAdapter viewAdapter)
C'tor, creating the effect with default arguments:
Touch-drag ratio in 'forward' direction will be set to DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD. |
HorizontalOverScrollBounceEffectDecorator(IOverScrollDecoratorAdapter viewAdapter,
float touchDragRatioFwd,
float touchDragRatioBck,
float decelerateFactor)
C'tor, creating the effect with explicit arguments.
|
| Modifier and Type | Method and Description |
|---|---|
protected OverScrollBounceEffectDecoratorBase.AnimationAttributes |
createAnimationAttributes() |
protected OverScrollBounceEffectDecoratorBase.MotionAttributes |
createMotionAttributes() |
protected void |
translateView(android.view.View view,
float offset) |
protected void |
translateViewAndEvent(android.view.View view,
float offset,
android.view.MotionEvent event) |
attach, detach, getCurrentState, getView, issueStateTransition, onTouch, setOverScrollStateListener, setOverScrollUpdateListenerpublic HorizontalOverScrollBounceEffectDecorator(IOverScrollDecoratorAdapter viewAdapter)
viewAdapter - The view's encapsulation.public HorizontalOverScrollBounceEffectDecorator(IOverScrollDecoratorAdapter viewAdapter, float touchDragRatioFwd, float touchDragRatioBck, float decelerateFactor)
viewAdapter - The view's encapsulation.touchDragRatioFwd - Ratio of touch distance to actual drag distance when in 'forward' direction.touchDragRatioBck - Ratio of touch distance to actual drag distance when in 'backward'
direction (opposite to initial one).decelerateFactor - Deceleration factor used when decelerating the motion to create the
bounce-back effect.protected OverScrollBounceEffectDecoratorBase.MotionAttributes createMotionAttributes()
createMotionAttributes in class OverScrollBounceEffectDecoratorBaseprotected OverScrollBounceEffectDecoratorBase.AnimationAttributes createAnimationAttributes()
createAnimationAttributes in class OverScrollBounceEffectDecoratorBaseprotected void translateView(android.view.View view,
float offset)
translateView in class OverScrollBounceEffectDecoratorBaseprotected void translateViewAndEvent(android.view.View view,
float offset,
android.view.MotionEvent event)
translateViewAndEvent in class OverScrollBounceEffectDecoratorBase