protected void onMeasure(int paramInt1, int paramInt2) { this.itemLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.lineLayout.scaleToBounds(this.itemLayout); this.programLayout.scaleToBounds(this.itemLayout); this.channelnameLayout.scaleToBounds(this.itemLayout); this.otherInfoLayout.scaleToBounds(this.itemLayout); this.triangularLayout.scaleToBounds(this.itemLayout); this.livingLayout.scaleToBounds(this.itemLayout); this.remindLayout.scaleToBounds(this.itemLayout); this.mChannelNamePaint.setTextSize(SkinManager.getInstance().getSubTextSize()); this.mStatePaint.setTextSize(SkinManager.getInstance().getTeenyTinyTextSize()); this.mDownloadStatePaint.setTextSize(SkinManager.getInstance().getTeenyTinyTextSize()); this.mUpdateTimePaint.setTextSize(SkinManager.getInstance().getTeenyTinyTextSize()); this.mTimePaint.setTextSize(SkinManager.getInstance().getTeenyTinyTextSize()); this.mItemHeight = getThisHeight(); generateRect(); this.recentItemLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.recentIndicatorLayout.scaleToBounds(this.recentItemLayout); this.recentTitleLayout.scaleToBounds(this.recentItemLayout); this.recentCloseButtonLayout.scaleToBounds(this.recentItemLayout); this.recentLineLayout.scaleToBounds(this.recentItemLayout); if ((this.mNode != null) && (this.mNode.nodeName.equalsIgnoreCase("playhistory"))) { setMeasuredDimension(this.recentItemLayout.width, this.recentItemLayout.height); return; } setMeasuredDimension(this.itemLayout.width, this.mItemHeight); }
protected void onMeasure(int paramInt1, int paramInt2) { this.standardLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.standardLayout.measureView(this.mListView); this.standardLayout.measureView(this.mBubbleView); setMeasuredDimension(this.standardLayout.width, this.standardLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { int i = View.MeasureSpec.getSize(paramInt1); int j = View.MeasureSpec.getSize(paramInt2); this.standardLayout.scaleToBounds(i, j); webView.measure( this.webviewLayout.getWidthMeasureSpec(), this.webviewLayout.getHeightMeasureSpec()); setMeasuredDimension(this.standardLayout.width, this.standardLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { this.standardLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.headLayout.scaleToBounds(this.standardLayout); this.mListView.measure( this.standardLayout.getWidthMeasureSpec(), View.MeasureSpec.makeMeasureSpec( this.standardLayout.height - this.headLayout.height, 1073741824)); this.headLayout.measureView(this.mHeadView); setMeasuredDimension(this.standardLayout.width, this.standardLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { super.onMeasure(paramInt1, paramInt2); this.cLU = View.MeasureSpec.getSize(paramInt1); this.cLV = View.MeasureSpec.getSize(paramInt2); n.al("MicroMsg.MultiTouchImageView", "MultiTouchImageView width:" + this.cLU + " height:" + this.cLV); if (!this.aKy) { this.aKy = true; init(); ain(); } }
protected void onMeasure(int paramInt1, int paramInt2) { this.standardLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.itemLayout.scaleToBounds(this.standardLayout); this.iconLayout.scaleToBounds(this.itemLayout); this.nameLayout.scaleToBounds(this.itemLayout); this.titleLayout.scaleToBounds(this.standardLayout); this.mNamePaint.setTextSize(SkinManager.getInstance().getSubTextSize()); int i = (this.itemLayout.height - this.iconLayout.height - this.nameLayout.height) / 2; this.mIconRect.set( (this.itemLayout.width - this.iconLayout.width) / 2, i, (this.itemLayout.width + this.iconLayout.width) / 2, i + this.iconLayout.height); setMeasuredDimension(this.standardLayout.width, getThisHeight()); }
protected void onMeasure(int paramInt1, int paramInt2) { this.standardLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.timeLayout.scaleToBounds(this.standardLayout); this.actionLayout.scaleToBounds(this.standardLayout); this.iconLayout.scaleToBounds(this.actionLayout); this.roundLayout.scaleToBounds(this.standardLayout); this.lineLayout.scaleToBounds(this.actionLayout); this.mActionBg.measure( this.actionLayout.leftMargin, this.standardLayout.height - this.actionLayout.getBottom(), this.actionLayout.getRight(), this.standardLayout.height - this.actionLayout.topMargin); int i = this.actionLayout.leftMargin; int j = this.mActionBg.getTopMargin(); this.mBackwardElement.measure( i + this.iconLayout.leftMargin, j + this.iconLayout.topMargin, i + this.iconLayout.getRight(), j + this.iconLayout.getBottom()); this.mLineElement.measure( i + this.lineLayout.leftMargin, j + this.lineLayout.topMargin, i + this.lineLayout.getRight(), j + this.lineLayout.getBottom()); int k = this.standardLayout.width / 2; this.mForwardElement.measure( k + this.iconLayout.leftMargin, j + this.iconLayout.topMargin, k + this.iconLayout.getRight(), j + this.iconLayout.getBottom()); int m = (this.standardLayout.height - this.timeLayout.height) / 2; this.mTimeBg.measure( this.timeLayout.leftMargin, m, this.timeLayout.getRight(), m + this.timeLayout.height); this.mLeftTimeElement.measure( this.timeLayout.leftMargin, m, this.standardLayout.width / 2 - this.roundLayout.width, m + this.timeLayout.height); this.mRightTimeElement.measure( this.standardLayout.width / 2, m, this.timeLayout.getRight(), m + this.timeLayout.height); this.mLeftTimeElement.setTextSize(SkinManager.getInstance().getLargeTextSize()); this.mRightTimeElement.setTextSize(SkinManager.getInstance().getLargeTextSize()); this.mTimeBg.setRoundCornerRadius(this.roundLayout.width); this.mActionBg.setRoundCornerRadius(this.roundLayout.width); super.onMeasure(paramInt1, paramInt2); }
protected void onMeasure(int paramInt1, int paramInt2) { this.itemLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.typeLayout.scaleToBounds(this.itemLayout); this.memberLayout.scaleToBounds(this.itemLayout); this.lineLayout.scaleToBounds(this.itemLayout); this.numberLayout.scaleToBounds(this.itemLayout); this.arrowLayout.scaleToBounds(this.itemLayout); measureAvatars(); this.mBg.measure(this.itemLayout); this.mArrowElement.measure(this.arrowLayout); this.mTypeElement.measure(this.typeLayout); this.mTypeElement.setTextSize(SkinManager.getInstance().getMiddleTextSize()); this.mNumberElement.measure(this.numberLayout); this.mNumberElement.setTextSize(SkinManager.getInstance().getSubTextSize()); this.mNeedMeasure = true; setMeasuredDimension(this.itemLayout.width, this.itemLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { int i = View.MeasureSpec.getSize(paramInt1); int j = View.MeasureSpec.getSize(paramInt2); this.standardLayout.scaleToBounds(i, j); this.webviewLayout.scaleToBounds(this.standardLayout); boolean bool = this.needMiniPlayer; int k = 0; if (bool) { this.miniLayout.scaleToBounds(this.standardLayout); this.miniLayout.measureView(this.mMiniView); k = this.miniLayout.height; } this.webView.measure(this.webviewLayout.getWidthMeasureSpec(), this.webviewLayout.getHeightMeasureSpec() - k); this.mLoadingView.measure(this.standardLayout.getWidthMeasureSpec(), View.MeasureSpec.makeMeasureSpec(this.standardLayout.height - k, 1073741824)); setMeasuredDimension(this.standardLayout.width, this.standardLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { this.itemLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.nameLayout.scaleToBounds(this.itemLayout); this.infoLayout.scaleToBounds(this.itemLayout); this.arrowLayout.scaleToBounds(this.itemLayout); this.lineLayout.scaleToBounds(this.itemLayout); this.livingLayout.scaleToBounds(this.itemLayout); this.mNameElement.measure(this.nameLayout); this.mInfoElement.measure(this.infoLayout); this.mArrowElement.measure(this.arrowLayout); this.mBgElement.measure(this.itemLayout); this.mStateElement.measure(this.livingLayout); this.mLineElement.measure(this.lineLayout); this.mNameElement.setTextSize(SkinManager.getInstance().getNormalTextSize()); this.mInfoElement.setTextSize(SkinManager.getInstance().getSubTextSize()); setMeasuredDimension(this.itemLayout.width, this.itemLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { this.itemLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.tagLayout.scaleToBounds(this.itemLayout); this.moreLayout.scaleToBounds(this.itemLayout); this.arrowLayout.scaleToBounds(this.itemLayout); this.labelLayout.scaleToBounds(this.itemLayout); this.mArrow.measure(this.arrowLayout); this.mLabel.measure( this.labelLayout.leftMargin, this.labelLayout.topMargin, this.labelLayout.getRight(), this.labelLayout.getBottom()); this.mTag.measure(this.tagLayout); this.mTag.setTextSize(SkinManager.getInstance().getNormalTextSize()); this.mMore.measure(this.moreLayout); this.mMore.setTextSize(SkinManager.getInstance().getSubTextSize()); setMeasuredDimension(this.itemLayout.width, this.itemLayout.height); }
protected void onMeasure(int paramInt1, int paramInt2) { this.itemLayout.scaleToBounds( View.MeasureSpec.getSize(paramInt1), View.MeasureSpec.getSize(paramInt2)); this.ratingLayout.scaleToBounds(this.itemLayout); this.picLayout.scaleToBounds(this.itemLayout); this.nameLayout.scaleToBounds(this.itemLayout); this.descLayout.scaleToBounds(this.itemLayout); this.lineLayout.scaleToBounds(this.itemLayout); this.mBg.measure(this.itemLayout); this.mPic.measure(this.picLayout); this.mPic.setBoundLineWidth(this.lineLayout.height); this.mName.measure(this.nameLayout); this.mInfo.measure(this.descLayout); this.mRatingElement.measure(this.ratingLayout); this.mLineElement.measure( this.lineLayout.leftMargin, this.itemLayout.height - this.lineLayout.height, this.lineLayout.getRight(), this.itemLayout.height); this.mName.setTextSize(SkinManager.getInstance().getNormalTextSize()); this.mInfo.setTextSize(SkinManager.getInstance().getMiddleTextSize()); setMeasuredDimension(this.itemLayout.width, this.itemLayout.height); }
protected final void onMeasure(int paramInt1, int paramInt2) { int i = View.MeasureSpec.getSize(paramInt1); Paint localPaint = new Paint(); localPaint.setTextSize(this.NA.getTextSize()); localPaint.setTypeface(this.NA.getTypeface()); int j; int k; int m; String str; label62: int n; if (this.Ny != null) { j = this.Ny.length; k = 0; m = 0; str = null; if (k >= j) break label132; if (this.Ny[k] == null) break label168; n = (int)localPaint.measureText(this.Ny[k]); if ((n > i) || (n < m)) break label168; str = this.Ny[k]; } while (true) { k++; m = n; break label62; j = 0; break; label132: if ((str == null) || (!str.equals(this.NA.getText()))) this.NA.setText(str); super.onMeasure(paramInt1, paramInt2); return; label168: n = m; } }
protected void onMeasure(int paramInt1, int paramInt2) { if (!this.awW) { super.onMeasure(paramInt1, paramInt2); return; } int i = -1; int j = (int) TypedValue.applyDimension(1, 100.0F, getResources().getDisplayMetrics()); int k = getResources().getDisplayMetrics().widthPixels / 2; int m = View.MeasureSpec.getSize(paramInt1); if (getDrawable() != null) while (true) { int n; try { n = getDrawable().getIntrinsicWidth(); int i1 = getDrawable().getIntrinsicHeight(); if (n < j) { m = j; if (n <= 0) break label146; i = m * i1 / n; setMeasuredDimension(m, i); return; } } catch (Exception localException) { localException.printStackTrace(); setMeasuredDimension(m, i); return; } if (n > k) { m = k; } else { m = n; continue; label146: i = m; } } super.onMeasure(m, i); }