Home
last modified time | relevance | path

Searched refs:maxTextWidth (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DNumberPicker.java1180 int maxTextWidth = 0; in tryComputeMaxWidth() local
1195 maxTextWidth = (int) (numberOfDigits * maxDigitWidth); in tryComputeMaxWidth()
1200 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1201 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
1205 maxTextWidth += mInputText.getPaddingLeft() + mInputText.getPaddingRight(); in tryComputeMaxWidth()
1206 if (mMaxWidth != maxTextWidth) { in tryComputeMaxWidth()
1207 if (maxTextWidth > mMinWidth) { in tryComputeMaxWidth()
1208 mMaxWidth = maxTextWidth; in tryComputeMaxWidth()
DSwitch.java491 final int maxTextWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth()); in onMeasure() local
493 maxTextWidth * 2 + mThumbTextPadding * 4 + mTempRect.left + mTempRect.right); in onMeasure()
496 mThumbWidth = maxTextWidth + mThumbTextPadding * 2; in onMeasure()