Home | History | Annotate | Download | only in widgets

Lines Matching defs:viewHeight

265         final float viewHeight = getHeight();
275 float heightScale = Math.min(viewHeight / h, 10.0f);
278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F);
280 matrix.postTranslate((viewWidth - w) / 2F, (viewHeight - h) / 2F);
327 public static float maxZoom(int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) {
329 final float fh = (float)bitmapHeight / viewHeight;
493 int viewHeight = getHeight();
494 if (height < viewHeight) {
495 deltaY = (viewHeight - height) / 2 - rect.top;
498 } else if (rect.bottom < viewHeight) {