Searched refs:viewportHeight (Results 1 – 3 of 3) sorted by relevance
234 public static RectF adjustToFitInBounds(RectF rect, int viewportWidth, int viewportHeight) { in adjustToFitInBounds() argument247 if (newRect.height() < viewportHeight) { in adjustToFitInBounds()248 dy = viewportHeight / 2 - (newRect.top + newRect.bottom) / 2; in adjustToFitInBounds()252 } else if (newRect.bottom < viewportHeight) { in adjustToFitInBounds()253 dy = viewportHeight - newRect.bottom; in adjustToFitInBounds()
156 int viewportHeight = mActivity.findViewById(R.id.suc_layout_content).getHeight(); in adjustToScreenSize() local157 if (contentHeight > viewportHeight) { in adjustToScreenSize()158 int targetHeight = layoutParams.height - (contentHeight - viewportHeight); in adjustToScreenSize()
544 int viewportHeight) { in postScale() argument554 viewportHeight); in postScale()558 int viewportWidth, int viewportHeight) { in updateTransform() argument564 viewportWidth, viewportHeight); in updateTransform()