Searched refs:halfScreenSize (Results 1 – 2 of 2) sorted by relevance
1193 final int halfScreenSize = getMeasuredWidth() / 2; in getScrollProgress() local1194 int delta = screenCenter - (getScrollForPage(page) + halfScreenSize); in getScrollProgress()1680 int halfScreenSize = mOrientationHandler.getMeasuredSize(this) / 2; in snapToPageWithVelocity() local1696 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity()1697 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()