Searched refs:getTranslation (Results 1 – 2 of 2) sorted by relevance
114 private float getTranslation(View v) { in getTranslation() method in SwipeHelper155 float pos = getTranslation(view); in getAlphaForOffset()203 mInitialTouchPos = pos - getTranslation(mCurrView); in onInterceptTouchEvent()224 || (velocity == 0 && getTranslation(view) < 0) in dismissChild()226 || (velocity == 0 && getTranslation(view) == 0 && mSwipeDirection == Y)) { in dismissChild()234 (int) (Math.abs(newPos - getTranslation(view)) * in dismissChild()356 float translation = getTranslation(mCurrView); in endSwipe()
118 private float getTranslation(View v) { in getTranslation() method in SwipeHelper163 float pos = getTranslation(view); in getSwipeProgressForOffset()271 mInitialTouchPos = getPos(ev) - getTranslation(mCurrAnimView); in onInterceptTouchEvent()317 || (velocity == 0 && getTranslation(animView) < 0) in dismissChild()319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) in dismissChild()321 || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) { in dismissChild()331 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()448 Math.abs(getTranslation(mCurrAnimView)) > 0.4 * getSize(mCurrAnimView); in onTouchEvent()451 (velocity > 0) == (getTranslation(mCurrAnimView) > 0); in onTouchEvent()