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