public class ActivityShuttersBackConsumer extends ShuttersConsumer
| 限定符和类型 | 字段和说明 |
|---|---|
protected android.app.Activity |
mActivity |
protected ActivityTranslucentUtil |
mActivityTranslucentUtil |
lastScreenDirection, mBaseAlpha, mCamera, mHorizontalSwiping, mLeavesCount, mPaint, mRefreshable, mRefreshing, mScreenshots, mScrimColor, mWaitForScreenshot, refreshDelayDEFAULT_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| 构造器和说明 |
|---|
ActivityShuttersBackConsumer(android.app.Activity activity) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
clampDistanceHorizontal(int distanceX,
int dx) |
int |
clampDistanceVertical(int distanceY,
int dy) |
void |
onAttachToWrapper(SmartSwipeWrapper wrapper,
SwipeHelper swipeHelper)
Called when SwipeConsumer add to Wrapper
|
protected void |
onClosed() |
void |
onDetachFromWrapper()
Called when removed from Wrapper
|
protected void |
onDisplayDistanceChanged(int distanceXToDisplay,
int distanceYToDisplay,
int dx,
int dy)
Called to refresh UI when swipe distance is changed. final value has clamped and modified by Resistor(if it not null)
|
protected void |
onOpened() |
void |
onSwipeAccepted(int activePointerId,
boolean settling,
float initialMotionX,
float initialMotionY) |
dispatchDraw, getLeavesCount, getScrimColor, isRefreshable, isWaitForScreenshot, onLayout, recycleScreenshots, refreshBitmap, setLeavesCount, setRefreshable, setRefreshFrameRate, setScrimColor, setWaitForScreenshotaddConsumer, addListener, addToExclusiveGroup, as, calSwipeDirection, canChildScroll, close, close, disableAllDirections, disableBottom, disableDirection, disableHorizontal, disableLeft, disableRight, disableTop, disableVertical, 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, getOpenDistance, getOverSwipeFactor, getProgress, getReleaseMode, getSensitivity, getSwipeDistanceCalculator, getSwipeHelper, getSwipeOpenDistance, getTag, getVerticalRange, getWidth, getWrapper, initChildrenFormXml, 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, notifySwipeProgress, notifySwipeRelease, notifySwipeStart, notifySwipeStateChanged, onDraw, onMeasure, onStateChanged, onSwipeDistanceChanged, onSwipeReleased, open, removeAllListeners, removeListener, reset, setBottomOpen, setCurrentStateAsClosed, setDisableSwipeOnSettling, setEdgeSize, setHeight, setInterpolator, setLeftOpen, setMaxSettleDuration, setOpenDistance, setOverSwipeFactor, setReleaseMode, setRightOpen, setSensitivity, setSwipeDistanceCalculator, setTag, setTopOpen, setWidth, slideTo, smoothBottomOpen, smoothClose, smoothLeftOpen, smoothOpenOrClose, smoothRightOpen, smoothSlideTo, smoothSlideTo, smoothSlideTo, smoothTopOpen, tryAcceptMoving, tryAcceptSettling, unlockAllDirections, unlockBottom, unlockDirection, unlockHorizontal, unlockLeft, unlockRight, unlockTop, unlockVerticalprotected ActivityTranslucentUtil mActivityTranslucentUtil
protected android.app.Activity mActivity
public ActivityShuttersBackConsumer(android.app.Activity activity)
public void onAttachToWrapper(SmartSwipeWrapper wrapper, SwipeHelper swipeHelper)
SwipeConsumeronAttachToWrapper 在类中 SwipeConsumerwrapper - Wrapper to add toswipeHelper - SwipeHelper bind to this SwipeConsumerpublic void onSwipeAccepted(int activePointerId,
boolean settling,
float initialMotionX,
float initialMotionY)
onSwipeAccepted 在类中 ShuttersConsumerprotected void onDisplayDistanceChanged(int distanceXToDisplay,
int distanceYToDisplay,
int dx,
int dy)
SwipeConsumeronDisplayDistanceChanged 在类中 ShuttersConsumerdistanceXToDisplay - distance changed in pixels along the X axis to show UIdistanceYToDisplay - distance changed in pixels along the Y axis to show UIdx - Change in X position from the last calldy - Change in Y position from the last callSwipeDistanceCalculatorpublic void onDetachFromWrapper()
SwipeConsumeronDetachFromWrapper 在类中 ShuttersConsumerprotected void onOpened()
onOpened 在类中 SwipeConsumerprotected void onClosed()
onClosed 在类中 ShuttersConsumerpublic int clampDistanceVertical(int distanceY,
int dy)
public int clampDistanceHorizontal(int distanceX,
int dx)