public class TranslucentSlidingConsumer extends SlidingConsumer
Note:
TranslucentSlidingConsumer works similar to SpaceConsumer, differences are:
1. SpaceConsumer is simple, just make contentView movable
2. TranslucentSlidingConsumer can do something like SlidingConsumer, such as:
2.1 show shadow while swiping;
2.2 delete from data list with ListView/RecyclerView... on fully swiped
3. TranslucentSlidingConsumer is the base class of ActivitySlidingBackConsumer
FACTOR_COVER, FACTOR_FOLLOW, mDrawerExpandable, mDrawerH, mDrawerW, mEdgeAffinity, mRelativeMoveFactorb, l, mCurDrawerView, mDrawerViewRequired, mDrawerViews, mScrimColor, mScrimView, mShadowColor, mShadowSize, mShowScrimAndShadowOutsideContentView, r, tDEFAULT_OPEN_DISTANCE_IN_DP, DIRECTION_ALL, DIRECTION_BOTTOM, DIRECTION_HORIZONTAL, DIRECTION_LEFT, DIRECTION_NONE, DIRECTION_RIGHT, DIRECTION_TOP, DIRECTION_VERTICAL, mCachedSwipeDistanceX, mCachedSwipeDistanceY, mCurDisplayDistanceX, mCurDisplayDistanceY, mCurSwipeDistanceX, mCurSwipeDistanceY, mDirection, mDisableSwipeOnSettling, mEdgeSize, mEnableNested, mHeight, mInterpolator, mListeners, mMaxSettleDuration, mOpenDistance, mOpenDistanceSpecified, mOverSwipeFactor, mProgress, mReleaseMode, mSwipeDistanceCalculator, mSwipeHelper, mSwipeMaxDistance, mSwipeOpenDistance, mSwiping, mTag, mWidth, mWrapper, PROGRESS_CLOSE, PROGRESS_OPEN, RELEASE_MODE_AUTO_CLOSE, RELEASE_MODE_AUTO_OPEN, RELEASE_MODE_AUTO_OPEN_CLOSE, RELEASE_MODE_HOLE_OPEN, RELEASE_MODE_NONE| 构造器和说明 |
|---|
TranslucentSlidingConsumer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
changeDrawerViewVisibility(int visibility) |
android.view.View |
getDrawerView(int direction) |
protected void |
initChildrenFormXml()
init children via xml usage of
SmartSwipeWrapper |
protected void |
layoutDrawerView() |
TranslucentSlidingConsumer |
setDrawerView(int direction,
android.view.View drawerView)
set a extension to the direction, also set direction enable if drawerView is not null(otherwise, disable the direction)
direction can be a single direction or mixed direction(eg: DIRECTION_LEFT | DIRECTION_RIGHT)
|
SwipeConsumer |
setOverSwipeFactor(float overSwipeFactor)
set over swipe factor.
|
calculateDrawerDirectionInitPosition, getRelativeMoveFactor, isDrawerExpandable, isEdgeAffinity, layoutContentView, onDetachFromWrapper, onDisplayDistanceChanged, orderChildren, setDrawerExpandable, setEdgeAffinity, setRelativeMoveFactorcanChildScroll, getOpenDistance, getShadowSize, initScrimView, isDrawerViewRequired, isScrimAndShadowOutsideContentView, layoutChildren, layoutScrimView, notifySwipeProgress, notifySwipeRelease, notifySwipeStart, onAttachToWrapper, onClick, onClosed, onLayout, onOpened, onSwipeAccepted, setAllDirectionDrawerView, setBottomDrawerView, setCurrentStateAsClosed, setDrawerViewRequired, setHorizontalDrawerView, setLeftDrawerView, setRightDrawerView, setScrimColor, setShadowColor, setShadowSize, setTopDrawerView, setVerticalDrawerView, showScrimAndShadowInsideContentView, showScrimAndShadowOutsideContentView, tryAcceptMovingaddConsumer, addListener, addToExclusiveGroup, as, calSwipeDirection, clampDistanceHorizontal, clampDistanceVertical, close, close, disableAllDirections, disableBottom, disableDirection, disableHorizontal, disableLeft, disableRight, disableTop, disableVertical, dispatchDraw, enableAllDirections, enableBottom, enableDirection, enableDirection, enableHorizontal, enableLeft, enableNestedFlyAllDirections, enableNestedFlyBottom, enableNestedFlyHorizontal, enableNestedFlyLeft, enableNestedFlyRight, enableNestedFlyTop, enableNestedFlyVertical, enableNestedScrollAllDirections, enableNestedScrollBottom, enableNestedScrollHorizontal, enableNestedScrollLeft, enableNestedScrollRight, enableNestedScrollTop, enableNestedScrollVertical, enableRight, enableTop, enableVertical, findTopChildUnder, getDirection, getDragState, getEdgeSize, getHeight, getHorizontalRange, getInterpolator, getMaxSettleDuration, getOverSwipeFactor, getProgress, getReleaseMode, getSensitivity, getSwipeDistanceCalculator, getSwipeHelper, getSwipeOpenDistance, getTag, getVerticalRange, getWidth, getWrapper, isAllDirectionsEnable, isAllDirectionsLocked, isBottomEnable, isBottomLocked, isClosed, isDirectionEnable, isDirectionLocked, isDisableSwipeOnSetting, isHorizontalDirection, isHorizontalEnable, isHorizontalLocked, isLeftEnable, isLeftLocked, isNestedAndDisabled, isNestedFlyEnable, isNestedScrollEnable, isOpened, isRightEnable, isRightLocked, isSwiping, isTopEnable, isTopLocked, isVerticalDirection, isVerticalEnable, isVerticalLocked, isViewUnder, lockAllDirections, lockBottom, lockDirection, lockDirection, lockHorizontal, lockLeft, lockRight, lockTop, lockVertical, notifyAttachToWrapper, notifyDetachFromWrapper, notifySwipeClosed, notifySwipeOpened, notifySwipeStateChanged, onDraw, onMeasure, onStateChanged, onSwipeDistanceChanged, onSwipeReleased, open, removeAllListeners, removeListener, reset, setBottomOpen, setDisableSwipeOnSettling, setEdgeSize, setHeight, setInterpolator, setLeftOpen, setMaxSettleDuration, setOpenDistance, setReleaseMode, setRightOpen, setSensitivity, setSwipeDistanceCalculator, setTag, setTopOpen, setWidth, slideTo, smoothBottomOpen, smoothClose, smoothLeftOpen, smoothOpenOrClose, smoothRightOpen, smoothSlideTo, smoothSlideTo, smoothSlideTo, smoothTopOpen, tryAcceptSettling, unlockAllDirections, unlockBottom, unlockDirection, unlockHorizontal, unlockLeft, unlockRight, unlockTop, unlockVerticalprotected void initChildrenFormXml()
SwipeConsumerSmartSwipeWrapperinitChildrenFormXml 在类中 DrawerConsumerDrawerConsumer,
SlidingConsumerpublic android.view.View getDrawerView(int direction)
getDrawerView 在类中 DrawerConsumerprotected void layoutDrawerView()
layoutDrawerView 在类中 SlidingConsumerpublic TranslucentSlidingConsumer setDrawerView(int direction, android.view.View drawerView)
DrawerConsumersetDrawerView 在类中 DrawerConsumerdirection - direction to setdrawerView - viewprotected void changeDrawerViewVisibility(int visibility)
public SwipeConsumer setOverSwipeFactor(float overSwipeFactor)
SwipeConsumerSwipeConsumer.getSwipeOpenDistance() * (1 + overSwipeFactor)setOverSwipeFactor 在类中 SwipeConsumeroverSwipeFactor - over swipe factor