Searched refs:mSwipeDirection (Results 1 – 1 of 1) sorted by relevance
72 private final int mSwipeDirection; field in SwipeHelper103 mSwipeDirection = swipeDirection; in SwipeHelper()131 return mSwipeDirection == X ? ev.getX() : ev.getY(); in getPos()135 return mSwipeDirection == X ? ev.getY() : ev.getX(); in getPerpendicularPos()139 return mSwipeDirection == X ? v.getTranslationX() : v.getTranslationY(); in getTranslation()143 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()149 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation()154 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()171 if (mSwipeDirection == X) { in setTranslation()179 return mSwipeDirection == X ? v.getMeasuredWidth() : v.getMeasuredHeight(); in getSize()[all …]