@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); final View thisView = this; updateCompleteState(thisView.getHeight()); }
@Override public void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (handler != null) { handler.notifyDispSizeChanged(right - left, bottom - top); } isSurfaceCreated = true; }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (changed) { updateClipBounds(); } }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { final View thisView = this; super.onLayout(changed, left, top, right, bottom); mPathsDrawable.setBounds(thisView.getPaddingLeft(), thisView.getPaddingTop(), Math.max((right - left) - thisView.getPaddingRight(), thisView.getPaddingLeft()), Math.max((bottom - top) - thisView.getPaddingTop(), thisView.getPaddingTop())); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (changed) { removeCallbacks(mShowIndicatorRunnable); if (!isInEditMode() && mIndicator != null) { mIndicator.dismissComplete(); } updateFromDrawableState(); } }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); // Setup all the view measurement code after the view is laid out. If this is done any // earlier the height and width are not yet determined mStartTime = SystemClock.uptimeMillis(); float viewCenterX = getWidth() / 2.f; float viewCenterY = getHeight() / 2.f; float shortSide = viewCenterX < viewCenterY ? viewCenterX : viewCenterY; TrailedShape.setViewCenterX(viewCenterX); TrailedShape.setViewCenterY(viewCenterY); mBassCircle.setShapeRadiusFromCenter(shortSide * RADIUS_BASS); mMidSquare.setShapeRadiusFromCenter(shortSide * RADIUS_MID); mTrebleTriangle.setShapeRadiusFromCenter(shortSide * RADIUS_TREBLE); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (!changed) return; if (getWidth() == 0 || getHeight() == 0) return; updateCorners(); if (rippleDrawable != null) rippleDrawable.setBounds(0, 0, getWidth(), getHeight()); }
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (changed) { left = getPaddingLeft(); top = getPaddingTop(); right = getWidth() - getPaddingRight(); bottom = getHeight() - getPaddingBottom(); mThisWidth = right - left; mThisHeight = bottom - top; if (mShouldSetupCropBounds) { mShouldSetupCropBounds = false; setTargetAspectRatio(mTargetAspectRatio); } } }