Lines Matching refs:padding

142      * Width required to draw the switch track and thumb. Includes padding and
148 * Height required to draw the switch track and thumb. Includes padding and
154 * Width of the thumb's content region. Does not include padding or
400 * Set the amount of horizontal padding between the switch and the associated text.
402 * @param pixels Amount of padding in pixels
412 * Get the amount of horizontal padding between the switch and the associated text.
414 * @return Amount of padding in pixels
448 * Set the horizontal padding around the text drawn on the switch itself.
450 * @param pixels Horizontal padding for switch thumb text in pixels
460 * Get the horizontal padding around the text drawn on the switch itself.
462 * @return Horizontal padding for switch thumb text in pixels
805 final Rect padding = mTempRect;
809 // Cached thumb width does not include padding.
810 mThumbDrawable.getPadding(padding);
811 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right;
830 mTrackDrawable.getPadding(padding);
833 padding.setEmpty();
837 // Adjust left and right padding to ensure there's enough room for the
838 // thumb's padding (when present).
839 int paddingLeft = padding.left;
840 int paddingRight = padding.right;
1131 final Rect padding = mTempRect;
1148 mTrackDrawable.getPadding(padding);
1150 // Adjust thumb position for track padding.
1151 thumbInitialLeft += padding.left;
1159 if (thumbInsets.left > padding.left) {
1160 trackLeft += thumbInsets.left - padding.left;
1162 if (thumbInsets.top > padding.top) {
1163 trackTop += thumbInsets.top - padding.top;
1165 if (thumbInsets.right > padding.right) {
1166 trackRight -= thumbInsets.right - padding.right;
1168 if (thumbInsets.bottom > padding.bottom) {
1169 trackBottom -= thumbInsets.bottom - padding.bottom;
1177 mThumbDrawable.getPadding(padding);
1179 final int thumbLeft = thumbInitialLeft - padding.left;
1180 final int thumbRight = thumbInitialLeft + mThumbWidth + padding.right;
1198 final Rect padding = mTempRect;
1201 trackDrawable.getPadding(padding);
1203 padding.setEmpty();
1208 final int switchInnerTop = switchTop + padding.top;
1209 final int switchInnerBottom = switchBottom - padding.bottom;
1215 thumbDrawable.copyBounds(padding);
1216 padding.left += insets.left;
1217 padding.right -= insets.right;
1220 canvas.clipRect(padding, Region.Op.DIFFERENCE);
1264 int padding = super.getCompoundPaddingLeft() + mSwitchWidth;
1266 padding += mSwitchPadding;
1268 return padding;
1276 int padding = super.getCompoundPaddingRight() + mSwitchWidth;
1278 padding += mSwitchPadding;
1280 return padding;
1285 * thumb scroll range. Accounts for both track and thumb padding.
1301 final Rect padding = mTempRect;
1302 mTrackDrawable.getPadding(padding);
1311 return mSwitchWidth - mThumbWidth - padding.left - padding.right