Searched refs:textWidth (Results 1 – 8 of 8) sorted by relevance
109 int textWidth = mRemainingSecondsView.getMeasuredWidth(); in startFadeOutAnimation() local113 mRemainingSecondsView.setTranslationX(mPreviewArea.centerX() - textWidth / 2); in startFadeOutAnimation()115 mRemainingSecondsView.setPivotX(textWidth / 2); in startFadeOutAnimation()
166 final float textWidth = mParams.getTextPaint().measureText(text); in updatePreviewPosition() local169 final float rectWidth = textWidth + hPad * 2.0f; in updatePreviewPosition()179 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f); in updatePreviewPosition()
101 float textWidth = mPaint.measureText(text); in drawText() local102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin); in drawText()104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f); in drawText()
48 int textWidth = getResources().getDimensionPixelSize( in ContactListPinnedHeaderView() local50 int widthIncludingPadding = paddingStartOffset + textWidth; in ContactListPinnedHeaderView()
127 float textWidth = gPaint.measureText(mText); in onDraw() local130 int x = (int) ((w - textWidth) / 2); in onDraw()
829 final float textWidth = TypefaceUtils.getStringWidth(text, paint); in fitsTextIntoWidth() local830 if (textWidth < width) { in fitsTextIntoWidth()834 final float scaleX = maxTextWidth / textWidth; in fitsTextIntoWidth()
444 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); in generatePhoneNumberIcon() local445 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize in generatePhoneNumberIcon()
537 float textWidth = mFolderName.getPaint().measureText(mFolderName.getText().toString()); in animateOpen() local538 float translation = (footerWidth - textWidth) / 2; in animateOpen()