Searched refs:mOffLayout (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
H A DSwitch.java138 private Layout mOffLayout; field in class:Switch
607 if (mOffLayout == null) {
608 mOffLayout = makeLayout(mTextOff);
627 maxTextWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth())
1037 final Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java136 private Layout mOffLayout; field in class:SwitchCompat
497 if (mOffLayout == null) {
498 mOffLayout = makeLayout(mTextOff);
517 maxTextWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth())
893 final Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout;

Completed in 73 milliseconds