Searched refs:halfScreenSize (Results 1 – 2 of 2) sorted by relevance
1195 final int halfScreenSize = getMeasuredWidth() / 2; in getScrollProgress() local1196 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress()1693 int halfScreenSize = mOrientationHandler.getMeasuredSize(this) / 2; in snapToPageWithVelocity() local1709 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()1710 float distance = halfScreenSize + halfScreenSize * in snapToPageWithVelocity()
3605 val halfScreenSize = width / 2 in calculateDuration() constant3608 val distance = halfScreenSize + halfScreenSize * distanceInfluenceForSnapDuration in calculateDuration()3621 TAG, "halfScreenSize:" + halfScreenSize + " delta:" + delta + " distanceRatio:" + in calculateDuration()