blob: 1590363ad576a9fb3bacaa54c5ecc14456b6ad8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
page.title=Devices and Displays
page.metaDescription=Take advantage of Android's flexible layout system and create apps that gracefully scale from phones to tablets and beyond.
@jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/layout/principles.html">
<div>
<h3>Material Design</h3>
<p>Layout Principles<p>
</div>
</a>
<p>Android powers hundreds of millions of phones, tablets, and other devices in a wide variety of screen sizes and
form factors. By taking advantage of Android's flexible layout system, you can create apps that
gracefully scale from large tablets to smaller phones.</p>
<img src="{@docRoot}design/media/devices_displays_main.png">
<div class="vspace size-2"> </div>
<div class="layout-content-row">
<div class="layout-content-col span-4">
<h4>Be flexible</h4>
<p>Stretch and compress your layouts to accommodate various heights and widths.</p>
</div>
<div class="layout-content-col span-5">
<h4>Optimize layouts</h4>
<p>On larger devices, take advantage of extra screen real estate. Create compound views that combine
multiple views to reveal more content and ease navigation.</p>
</div>
<div class="layout-content-col span-4">
<h4>Assets for all</h4>
<p>Provide resources for different screen densities (<acronym title="Dots per inch">DPI</acronym>) to
ensure that your app looks great on any device.</p>
</div>
</div>
<img src="{@docRoot}design/media/devices_displays_density@2x.png" alt="" height="160" />
<h4>Strategies</h4>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/layout/structure.html">
<div>
<h3>Material Design</h3>
<p>Layout Structure<p>
</div>
</a>
<p>So where do you begin when designing for multiple screens? One approach is to work in the base
standard (normal size and <acronym title="Medium density (160 dpi)">MDPI</acronym>) and scale it up or
down for the other buckets. Another approach is to start with the device with the largest screen
size, and then scale down and figure out the UI compromises you'll need to make on smaller screens.</p>
<p>For details about designing layouts for larger screens, see the <a
href="{@docRoot}design/patterns/multi-pane-layouts.html">Multi-pane Layouts</a> guide.</p>
<div class="note develop">
<p><strong>Developer Guide</strong></p>
<p>For information about how to build flexible layouts for multiple screen sizes and densities,
read
<a href="{@docRoot}training/multiscreen/index.html">Designing for Multiple Screens</a> and
<a href="{@docRoot}training/basics/fragments/index.html">Building a Dynamic UI with
Fragments</a>.</p>
</div>
|