Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DNumberPicker.java1306 int maxTextWidth = 0; in tryComputeMaxWidth() local
1321 maxTextWidth = (int) (numberOfDigits * maxDigitWidth); in tryComputeMaxWidth()
1326 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1327 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
1331 maxTextWidth += mInputText.getPaddingLeft() + mInputText.getPaddingRight(); in tryComputeMaxWidth()
1332 if (mMaxWidth != maxTextWidth) { in tryComputeMaxWidth()
1333 if (maxTextWidth > mMinWidth) { in tryComputeMaxWidth()
1334 mMaxWidth = maxTextWidth; in tryComputeMaxWidth()
DSwitch.java836 final int maxTextWidth; in onMeasure() local
838 maxTextWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth()) in onMeasure()
841 maxTextWidth = 0; in onMeasure()
844 mThumbWidth = Math.max(maxTextWidth, thumbWidth); in onMeasure()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java816 final int maxTextWidth; in onMeasure() local
818 maxTextWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth()) in onMeasure()
821 maxTextWidth = 0; in onMeasure()
824 mThumbWidth = Math.max(maxTextWidth, thumbWidth); in onMeasure()