Searched refs:mSwipeDirection (Results 1 – 2 of 2) sorted by relevance
63 private int mSwipeDirection; field in SwipeHelper80 mSwipeDirection = swipeDirection; in SwipeHelper()111 return mSwipeDirection == X ? ev.getX() : ev.getY(); in getPos()115 return mSwipeDirection == X ? v.getTranslationX() : v.getTranslationY(); in getTranslation()119 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()125 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation()130 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()135 if (mSwipeDirection == X) { in setTranslation()144 return mSwipeDirection == X ? dm.widthPixels : dm.heightPixels; in getSize()226 || (velocity == 0 && getTranslation(view) == 0 && mSwipeDirection == Y)) { in dismissChild()[all …]
68 private int mSwipeDirection; field in SwipeHelper90 mSwipeDirection = swipeDirection; in SwipeHelper()115 return mSwipeDirection == X ? ev.getX() : ev.getY(); in getPos()119 return mSwipeDirection == X ? v.getTranslationX() : v.getTranslationY(); in getTranslation()123 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()129 mSwipeDirection == X ? "translationX" : "translationY", newPos); in createTranslationAnimation()134 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()139 if (mSwipeDirection == X) { in setTranslation()147 return mSwipeDirection == X ? v.getMeasuredWidth() : in getSize()319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) in dismissChild()