Searched refs:mTranslateRect (Results 1 – 1 of 1) sorted by relevance
170 private RectF mTranslateRect = new RectF(); field in PhotoView284 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()286 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()294 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; in scale()295 float heightBuffer = (getHeight() - mTranslateRect.height()) / relativeScale; in scale()297 if (mTranslateRect.width() <= widthBuffer * 2) { in scale()298 centerX = mTranslateRect.centerX(); in scale()300 centerX = Math.min(Math.max(mTranslateRect.left + widthBuffer, in scale()301 e.getX()), mTranslateRect.right - widthBuffer); in scale()303 if (mTranslateRect.height() <= heightBuffer * 2) { in scale()[all …]