Home
last modified time | relevance | path

Searched refs:layouts (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/base/docs/html/design/style/
Ddevices-displays.jd16 <p>Stretch and compress your layouts to accommodate various heights and widths.</p>
21 <h4>Optimize layouts</h4>
43 <p>For details about designing layouts for larger screens, see the <a
44 href="{@docRoot}design/patterns/multi-pane-layouts.html">Multi-pane Layouts</a> guide.</p>
48 <p>For information about how to build flexible layouts for multiple screen sizes and densities,
Dmetrics-grids.jd21 alternative layouts for some of the different size buckets, and provide alternative bitmap images
24 <p>Because it's important that you design and implement your layouts for multiple densities,
/frameworks/base/docs/html/training/design-navigation/
Dmultiple-sizes.jd18 <li><a href="#multi-pane-layouts">Group Screens with Multi-pane Layouts</a></li>
25 …<li><a href="{@docRoot}design/patterns/multi-pane-layouts.html">Android Design: Multi-pane Layouts…
37 <h2 id="multi-pane-layouts">Group Screens with Multi-pane Layouts</h2>
42 href="{@docRoot}design/patterns/multi-pane-layouts.html">Multi-pane Layouts</a> pattern guide.</p>
51 …interface) design into a larger layout and how to address these issues with multi-pane layouts:</p>
55 …alt="Single pane layouts on large screens in landscape lead to awkward whitespace and exceedingly …
57 <p class="img-caption"><strong>Figure 1.</strong> Single pane layouts on large screens in landscape…
61 …alt="Multi-pane layouts in landscape offer better a visual balance while offering more utility and…
63 <p class="img-caption"><strong>Figure 2.</strong> Multi-pane layouts in landscape result in a bette…
66 …ch to draw the line between single-pane and multi-pane layouts, you can provide different layouts
[all …]
/frameworks/base/docs/html/training/multiscreen/
Dscreensizes.jd84 <p>You can construct fairly complex layouts using nested instances of {@link
147 like the one in the previous sections. While those layouts adapt to
150 application should not only implement flexible layouts, but should also provide
151 several alternative layouts to target different screen configurations. You do
160 to implement these layouts, you could have the following files:</p>
183 different layouts for different devices in this category (such as for 5" and 7" devices), even
190 list on smaller screens), you can use the same two layouts from the previous section for single
191 and two-pane layouts, but instead of the <code>large</code> size qualifier, use
240 layouts:</p>
277 <p>Some layouts work well in both landscape and portrait orientations, but most of them can
[all …]
/frameworks/base/docs/html-intl/ja/training/multiscreen/
Dscreensizes.jd235 <p><code>res/values/layouts.xml</code>:</p>
236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all}
238 <p><code>res/values-sw600dp-land/layouts.xml</code>:</p>
239 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-land/layouts.xml
242 <p><code>res/values-sw600dp-port/layouts.xml</code>:</p>
243 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-port/layouts.xml
246 <p><code>res/values-large-land/layouts.xml</code>:</p>
247 {@sample development/samples/training/multiscreen/newsreader/res/values-large-land/layouts.xml all}
249 <p><code>res/values-large-port/layouts.xml</code>:</p>
250 {@sample development/samples/training/multiscreen/newsreader/res/values-large-port/layouts.xml all}
/frameworks/base/docs/html-intl/ko/training/multiscreen/
Dscreensizes.jd235 <p><code>res/values/layouts.xml</code>:</p>
236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all}
238 <p><code>res/values-sw600dp-land/layouts.xml</code>:</p>
239 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-land/layouts.xml
242 <p><code>res/values-sw600dp-port/layouts.xml</code>:</p>
243 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-port/layouts.xml
246 <p><code>res/values-large-land/layouts.xml</code>:</p>
247 {@sample development/samples/training/multiscreen/newsreader/res/values-large-land/layouts.xml all}
249 <p><code>res/values-large-port/layouts.xml</code>:</p>
250 {@sample development/samples/training/multiscreen/newsreader/res/values-large-port/layouts.xml all}
/frameworks/base/docs/html-intl/zh-cn/training/multiscreen/
Dscreensizes.jd235 <p><code>res/values/layouts.xml</code>:</p>
236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all}
238 <p><code>res/values-sw600dp-land/layouts.xml</code>:</p>
239 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-land/layouts.xml
242 <p><code>res/values-sw600dp-port/layouts.xml</code>:</p>
243 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-port/layouts.xml
246 <p><code>res/values-large-land/layouts.xml</code>:</p>
247 {@sample development/samples/training/multiscreen/newsreader/res/values-large-land/layouts.xml all}
249 <p><code>res/values-large-port/layouts.xml</code>:</p>
250 {@sample development/samples/training/multiscreen/newsreader/res/values-large-port/layouts.xml all}
/frameworks/base/docs/html-intl/ru/training/multiscreen/
Dscreensizes.jd235 <p><code>res/values/layouts.xml</code>:</p>
236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all}
238 <p><code>res/values-sw600dp-land/layouts.xml</code>:</p>
239 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-land/layouts.xml
242 <p><code>res/values-sw600dp-port/layouts.xml</code>:</p>
243 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-port/layouts.xml
246 <p><code>res/values-large-land/layouts.xml</code>:</p>
247 {@sample development/samples/training/multiscreen/newsreader/res/values-large-land/layouts.xml all}
249 <p><code>res/values-large-port/layouts.xml</code>:</p>
250 {@sample development/samples/training/multiscreen/newsreader/res/values-large-port/layouts.xml all}
/frameworks/base/docs/html/tools/help/
Dlayoutopt.jd7 layouts and layout hierarchies of your applications.<p>
11 href="{@docRoot}tools/debugging/debugging-ui.html#layoutopt">Optimizing layouts with
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboardHelper.java85 boolean useFullScreenWidth, int layouts[]) { in PasswordEntryKeyboardHelper() argument
91 if (layouts != null) { in PasswordEntryKeyboardHelper()
92 if (layouts.length != mLayouts.length) { in PasswordEntryKeyboardHelper()
96 mLayouts[i] = layouts[i]; in PasswordEntryKeyboardHelper()
/frameworks/base/docs/html/training/improving-layouts/
Dreusing-layouts.jd40 re-use complete layouts, you can use the {@code &lt;include/&gt;} and {@code &lt;merge/&gt;} tags
43 <p>Reusing layouts is particularly powerful as it allows you create reusable complex layouts. For
45 It also means that any elements of your application that are common across multiple layouts can be
123 re-used in multiple layouts, then the re-usable layout in which you place the two views requires its
Doptimizing-layout.jd7 next.link=reusing-layouts.html
38 layouts. However, each widget and layout you add to your application requires initialization,
66 of text on the right. It is especially important that layouts that will be inflated multiple
109 the root node allows for such layouts. So, when this design is converted to use {@link
143 <li>Deep layouts - Layouts with too much nesting are bad for performance. Consider using flatter la…
Dindex.jd46 <dt><b><a href="reusing-layouts.html">Re-using Layouts with &lt;include/&gt;</a></b></dt>
49 UI layouts.</dd>
Dloading-ondemand.jd7 previous.link=reusing-layouts.html
84 doesn’t currently support the {@code &lt;merge/&gt;} tag in the layouts to be inflated.</p>
/frameworks/base/docs/html/training/tv/
Dindex.jd30 <dt><b><a href="optimizing-layouts-tv.html">Optimizing Layouts for TV</a></b></dt>
31 …<dd>Shows you how to optimize app layouts for TV screens, which have some unique characteristics s…
/frameworks/base/docs/html/training/basics/fragments/
Dindex.jd19 layouts</a></li>
64 <dd>Learn how to build your app with layouts that provide different fragment configurations for
/frameworks/base/docs/html/training/basics/supporting-devices/
Dscreens.jd18 <li><a href="#create-layouts">Create Different Layouts</a></li>
44 <p>To declare different layouts and bitmaps you'd like to use for different screens, you must place
53 <h2 id="create-layouts">Create Different Layouts</h2>
62 properly fit the screen. Thus, your layouts for different screen sizes don't
/frameworks/base/docs/html/distribute/googleplay/quality/
Dtablet.jd9 <li><a href="#optimize-layouts">2. Optimize your layouts</a></li>
75 <h2 id="optimize-layouts">2. Optimize your layouts for larger screens</h2>
82 &mdash; you need to optimize your layouts and other UI components for each
89 tablets, you can start by making minor adjustments to your layouts, fonts, and
103 layouts lead to awkward whitespace and excessive line lengths. Use padding to
104 reduce the width of UI elements and consider using multi-pane layouts.</p>
108 <li>Provide custom layouts as needed for <code>large</code> and
109 <code>xlarge</code> screens. You can also provide layouts that are loaded based
125 <p>In particular, make sure that your layouts do not appear "stretched"
146 layouts based on density-independent grids.
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd13 <li>App Widget layouts should be flexible, resizing to fit their parent container</li>
118 Layouts and Background Graphics</a> below, using nine-patch backgrounds and flexible layouts for app
255 <p>For the contents of the widget, you should use flexible layouts such as {@link
257 android.widget.FrameLayout}. Just as your activity layouts must adapt to different physical screen
258 sizes, widget layouts must adapt to different Home screen grid cell sizes.</p>
297 use flexible layouts attributes like so:</p>
301 alt="Excerpt flexible layouts and attributes for an example music widget"
304 <p class="img-caption"><strong>Figure 6.</strong> Excerpt flexible layouts and attributes.</p>
/frameworks/base/docs/html-intl/es/training/multiscreen/
Dscreensizes.jd235 <p><code>res/values/layouts.xml</code>:</p>
236 {@sample development/samples/training/multiscreen/newsreader/res/values/layouts.xml all}
238 <p><code>res/values-sw600dp-land/layouts.xml</code>:</p>
239 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-land/layouts.xml
242 <p><code>res/values-sw600dp-port/layouts.xml</code>:</p>
243 {@sample development/samples/training/multiscreen/newsreader/res/values-sw600dp-port/layouts.xml
246 <p><code>res/values-large-land/layouts.xml</code>:</p>
247 {@sample development/samples/training/multiscreen/newsreader/res/values-large-land/layouts.xml all}
249 <p><code>res/values-large-port/layouts.xml</code>:</p>
250 {@sample development/samples/training/multiscreen/newsreader/res/values-large-port/layouts.xml all}
/frameworks/base/docs/html/guide/practices/
Dtablets-and-handsets.jd45 resources</a> (such as alternative layouts that reposition some views or alternative
56 UI into separate parts, which you can then combine to create multi-pane layouts when running on a
67 supports different screen sizes and densities with flexible layouts and alternative bitmaps,
80 different combinations&mdash;in multi-pane layouts on tablets and single-pane layouts on handsets.
112 <li><strong>Implement flexible layouts</strong>, as discussed in the
125 information about creating flexible layouts, refer to the links provided above.</p>
167 layouts with different combinations of fragments, such that you can design "multi-pane" layouts for
168 tablets and "single-pane" layouts for handsets. For example, a news application on a tablet might
217 layouts to display either one or two fragments at a time, depending on the size of the screen:</p>
273 width your layouts require. For example, both a 5" and 7" device qualify as a "large" screen, so
[all …]
/frameworks/base/docs/html/design/patterns/
Dnew.jd133 <p>You can supply separate landscape and portrait layouts for your widgets, which
163 <p>You can supply separate landscape and portrait layouts for your
207 <h4>Multi-pane layouts</h4>
211 sizes is important in the Android world. Multi-pane layouts allow you to
/frameworks/base/docs/html/distribute/googleplay/publish/
Dlocalizing.jd34 translating your UI strings and localizing dates and times, layouts, text
94 <h4>Design a single set of flexible layouts</h4>
96 <p>As you create your layouts, make sure that any UI elements that hold text are
106 layouts for all of the languages you support. See <a
110 <h4 id="rtl">Use alternative layouts where needed</h4>
116 Android makes it easy to declare sets of layouts and other resources to load for
120 <p>Although you can use alternative layouts to work around isolated issues, they
124 <h4 id="rtl">Support RTL layouts and text</h4>
127 should consider implementing support for RTL layouts and text display and
134 android-42.html">full native support for RTL layouts</a>, including layout
[all …]
/frameworks/base/docs/html/guide/topics/ui/
Ddeclaring-layout.jd47 …ry that corresponds to the View classes and subclasses, such as those for widgets and layouts.</li>
52 …lication's UI. For example, you could declare your application's default layouts in XML, including…
62 for debugging layouts &mdash; it reveals layout property values,
66 you quickly analyze your layouts and hierarchies for inefficiencies or other problems.</li>
70 …o modify your source code and recompile. For example, you can create XML layouts for different scr…
79 Layout Objects</a>. There are also a collection of tutorials on building various layouts in the
84 <p>Using Android's XML vocabulary, you can quickly design UI layouts and the screen elements they c…
330 <p class="note"><strong>Note:</strong> Although you can nest one or more layouts within another
332 possible. Your layout draws faster if it has fewer nested layouts (a wide view hierarchy is
383 <p>Common layouts backed by an adapter include:</p>
/frameworks/base/docs/html/training/monetization/
Dindex.jd17 <li>Experience with <a href="{@docRoot}guide/topics/ui/declaring-layout.html">XML layouts</a></li>

12345