Home
last modified time | relevance | path

Searched refs:margins (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd17 <li>As of Android 4.0, app widgets have margins automatically applied</li>
84 margins between the edges of the bounding box and the frame, and padding between the inner edges of
89 alt="Widgets generally have margins and padding between bounding box, frame, and controls"
92 <p class="img-caption"><strong>Figure 2.</strong> Widgets generally have margins between the
97 margins between the widget frame and the app widget's bounding box to provide better alignment with
122 <p>While the width and height of a cell&mdash;as well as the amount of automatic margins applied to
176 some text margins. Your minimum width should be the minimum usable widths of the
178 of 10 characters), plus any horizontal text margins.</p>
182 alt="Example sizes and margins for minimum width/height calculations" id="music_example_redline">
184 <p class="img-caption"><strong>Figure 4.</strong> Example sizes and margins for
[all …]
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java336 private void writeMargins(Margins margins, Parcel parcel) { in writeMargins() argument
337 if (margins == null) { in writeMargins()
341 margins.writeToParcel(parcel); in writeMargins()
461 public Builder setMinMargins(Margins margins) { in setMinMargins() argument
462 if (margins == null) { in setMinMargins()
465 mPrototype.mMinMargins = margins; in setMinMargins()
DPrintAttributes.java137 public void setMinMargins(Margins margins) { in setMinMargins() argument
138 mMinMargins = margins; in setMinMargins()
1319 public Builder setMinMargins(Margins margins) { in setMinMargins() argument
1320 mAttributes.setMinMargins(margins); in setMinMargins()
/frameworks/base/core/java/android/widget/
DFastScroller.java602 final Rect margins = mTempMargins; in measurePreview() local
603 margins.left = mPreviewImage.getPaddingLeft(); in measurePreview()
604 margins.top = mPreviewImage.getPaddingTop(); in measurePreview()
605 margins.right = mPreviewImage.getPaddingRight(); in measurePreview()
606 margins.bottom = mPreviewImage.getPaddingBottom(); in measurePreview()
609 measureFloating(v, margins, out); in measurePreview()
611 measureViewToSide(v, mThumbImage, margins, out); in measurePreview()
626 private void measureViewToSide(View view, View adjacent, Rect margins, Rect out) { in measureViewToSide() argument
630 if (margins == null) { in measureViewToSide()
635 marginLeft = margins.left; in measureViewToSide()
[all …]
DGridLayout.java687 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins(); in getMargin() local
691 return margins[index]; in getMargin()
1673 int[] margins = leading ? leadingMargins : trailingMargins;
1681 margins[index] = max(margins[index], getMargin1(c, horizontal, leading));
/frameworks/base/docs/html-intl/intl/zh-cn/design/style/
Dwriting.jd21 <div class="layout-content-col span-6 layout-with-list-item-margins">
44 <div class="layout-content-col span-6 layout-with-list-item-margins">
104 <div class="layout-content-col span-6 layout-with-list-item-margins">
127 <div class="layout-content-col span-6 layout-with-list-item-margins">
150 <div class="layout-content-col span-6 layout-with-list-item-margins">
182 <div class="layout-content-col span-6 layout-with-list-item-margins">
/frameworks/base/docs/html/design/style/
Dwriting.jd20 <div class="layout-content-col span-6 layout-with-list-item-margins">
43 <div class="layout-content-col span-6 layout-with-list-item-margins">
104 <div class="layout-content-col span-6 layout-with-list-item-margins">
127 <div class="layout-content-col span-6 layout-with-list-item-margins">
150 <div class="layout-content-col span-6 layout-with-list-item-margins">
182 <div class="layout-content-col span-6 layout-with-list-item-margins">
Dbranding.jd99 <div class="layout-content-col span-6 lasyout-with-list-item-margins">
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java862 Margins margins = attributes.getMinMargins(); in doWriteStateLocked() local
863 if (margins != null) { in doWriteStateLocked()
866 margins.getLeftMils())); in doWriteStateLocked()
868 margins.getTopMils())); in doWriteStateLocked()
870 margins.getRightMils())); in doWriteStateLocked()
872 margins.getBottomMils())); in doWriteStateLocked()
1110 Margins margins = new Margins(leftMils, topMils, rightMils, bottomMils); in parsePrintJob() local
1111 builder.setMinMargins(margins); in parsePrintJob()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java300 Margins margins = (Margins) args.arg4; in handleMessage() local
305 mediaSize, margins); in handleMessage()
/frameworks/base/docs/html/training/tv/start/
Dlayouts.jd108 <li>Add sufficient margins between layout controls to avoid a cluttered UI.</li>
124 example layout demonstrates how to set these margins in the root layout for a TV app:
142 <strong>Caution:</strong> Do not apply overscan margins to your layout if you are using the
144 widgets, as those layouts already incorporate overscan-safe margins.
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java675 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins(); in getMargin() local
679 return margins[index]; in getMargin()
1550 int[] margins = leading ? leadingMargins : trailingMargins;
1558 margins[index] = max(margins[index], getMargin1(c, horizontal, leading));
/frameworks/base/docs/html/design/tv/
Dstyle.jd42 <li>Avoid a cluttered interface by adding sufficient margins between layout controls.</li>
/frameworks/base/docs/html/training/wearables/ui/
Dcards.jd172 on round and square devices, using wider side margins on round screens. However,
/frameworks/base/docs/html/guide/topics/appwidgets/
Dindex.jd354 <h3 id="AddingMargins">Adding margins to App Widgets</h3>
356 …s and should not visually be flush with other widgets, so you should add margins on all sides arou…
360 …rite a single layout that has custom margins applied for earlier versions of the platform, and has…
364 …cRoot}guide/topics/resources/more-resources.html#Dimension">dimension resource</a> for its margins:
384 …s, one in <code>res/values/</code> to provide the pre-Android 4.0 custom margins, and one in <code…
394margins into your <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">nine-patch…
/frameworks/base/docs/html/training/material/
Dlists-cards.jd170 // set the view's size, margins, paddings and layout parameters
/frameworks/base/docs/html/guide/topics/ui/
Ddeclaring-layout.jd209 LayoutParams also include optional margins and borders. <p>
295 margins. However, view groups provide such a support. Refer to
/frameworks/base/docs/html/tools/help/
Dadt.jd221 context-sensitive actions in the layout actions bar, such as adjusting layout margins and
324 toggling the fill mode of the view and specifying margins. For instance, if you select a
/frameworks/base/docs/html/distribute/essentials/quality/
Dtablets.jd130 <li>At a minimum, customize dimensions such as font sizes, margins, spacing
369 <li>Use default system margins.</li>
/frameworks/base/docs/html/tools/support-library/
Dindex.jd875 <li>Added support for margins between pages.
877 to fill the margins.</li>
/frameworks/base/docs/html/tools/debugging/
Ddebugging-ui.jd425 or black rectangle represents the <strong>margins</strong>, the distance between the
/frameworks/base/docs/html/about/versions/
Dandroid-4.3.jd687 bounds, blue lines indicate the clip bounds, and pink indicates margins.</p>