Searched refs:halfScreenSize (Results 1 – 3 of 3) sorted by relevance
821 int halfScreenSize = getMeasuredWidth() / 2; in dispatchDraw() local824 int screenCenter = mOverScrollX + halfScreenSize; in dispatchDraw()1142 final int halfScreenSize = getMeasuredWidth() / 2; in getScrollProgress() local1146 getRelativeChildOffset(page) + halfScreenSize); in getScrollProgress()1519 int halfScreenSize = getMeasuredWidth() / 2; in snapToPageWithVelocity() local1539 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()1540 float distance = halfScreenSize + halfScreenSize * in snapToPageWithVelocity()
1114 int halfScreenSize = getViewportWidth() / 2; in dispatchDraw() local1115 int screenCenter = getScrollX() + halfScreenSize; in dispatchDraw()1471 final int halfScreenSize = getViewportWidth() / 2; in getScrollProgress() local1473 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress()2009 int halfScreenSize = getViewportWidth() / 2; in snapToPageWithVelocity() local2026 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()2027 float distance = halfScreenSize + halfScreenSize * in snapToPageWithVelocity()
5002 final float halfScreenSize = width / 2; in calculateDuration() local5005 float distance = halfScreenSize + halfScreenSize * distanceInfluenceForSnapDuration; in calculateDuration()5018 Log.e(TAG, "halfScreenSize:" + halfScreenSize + " delta:" + delta + " distanceRatio:" in calculateDuration()