public OverScrollBounceEffectDecoratorBase(IOverScrollDecoratorAdapter viewAdapter, float decelerateFactor, float touchDragRatioFwd, float touchDragRatioBck) { mViewAdapter = viewAdapter; mBounceBackState = new BounceBackState(decelerateFactor); mOverScrollingState = new OverScrollingState(touchDragRatioFwd, touchDragRatioBck); mIdleState = new IdleState(); mCurrentState = mIdleState; attach(); }
@Override public void handleEntryTransition(IDecoratorState fromState) { mStateListener.onOverScrollStateChange(OverScrollBounceEffectDecoratorBase.this, fromState.getStateId(), this.getStateId()); } }