@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); loadImageIfNecessary(true); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); }
@Override protected void onLayout( boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // use a separate method to layout the image so it's possible // to override this behaviour without skipping super.onLayout() layoutImage(changed, left, top, right, bottom); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); mCircleCenterX = getWidth() / 2; mCircleCenterY = getHeight() / 2; mCircleX = mCircleCenterX - mTargetWidth / 2; mCircleY = mCircleCenterY - mTargetHeight / 2; }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); mThisWidth = right - left; mThisHeight = bottom - top; Runnable r = mOnLayoutRunnable; if (r != null) { mOnLayoutRunnable = null; r.run(); } if (mBitmapDisplayed.getBitmap() != null) { getProperBaseMatrix(mBitmapDisplayed, mBaseMatrix); setImageMatrix(getImageViewMatrix()); } }
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); mViewWidth = r - l - getPaddingLeft() - getPaddingRight(); mViewHeight = b - t - getPaddingTop() - getPaddingBottom(); if (mBitmap != null) initLayout(mViewWidth, mViewHeight); }
super.onLayout(changed, left, top, right, bottom);
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); final float density = getContext().getResources().getDisplayMetrics().density; mDiameter = Math.min(getMeasuredWidth(), getMeasuredHeight());