1page.title=Planning Screens and Their Relationships
2parent.title=Designing Effective Navigation
3parent.link=index.html
4
5trainingnavtop=true
6next.title=Planning for Multiple Touchscreen Sizes
7next.link=multiple-sizes.html
8
9@jd:body
10
11<div id="tb-wrapper">
12<div id="tb">
13
14<h2>This lesson teaches you to</h2>
15<ol>
16  <li><a href="#screen-list">Create a Screen List</a></li>
17  <li><a href="#diagram-relationships">Diagram Screen Relationships</a></li>
18  <li><a href="#beyond-simplistic-design">Go Beyond a Simplistic Design</a></li>
19</ol>
20
21</div>
22</div>
23
24
25<p>Most apps have an inherent information model that can be expressed as a tree or graph of object types. In more obvious terms, you can draw a diagram of different kinds of information that represents the types of things users interact with in your app. Software engineers and data architects often use entity-relationship diagrams (ERDs) to describe an application's information model.</p>
26
27<p>Let's consider an example application that allows users to browse through a set of categorized news stories and photos. One possible model for such an app is shown below in the form of an ERD.</p>
28
29
30<img src="{@docRoot}images/training/app-navigation-screen-planning-erd.png"
31  alt="Entity-relationship diagram for the example news application" id="figure-erd">
32
33<p class="img-caption"><strong>Figure 1.</strong> Entity-relationship diagram for the example news application.</p>
34
35
36<h2 id="screen-list">Create a Screen List</h2>
37
38<p>Once you define the information model, you can begin to define the contexts necessary to enable users to effectively discover, view, and act upon the data in your application. In practice, one way to do this is to <em>determine the exhaustive set of screens</em> needed to allow users to navigate to and interact with the data. The set of screens we actually expose should generally vary depending on the target device; it's important to consider this early in the design process to ensure that the application can adapt to its environment.</p>
39
40<p>In our example application, we want to enable users to <strong>view</strong>, <strong>save</strong>, and <strong>share</strong> <em>categorized</em> <strong>stories</strong> and <strong>photos</strong>. Below is an exhaustive list of screens that covers these use cases.</p>
41
42<ul>
43  <li>Home or "launchpad" screen for accessing stories and photos</li>
44  <li>List of categories</li>
45  <li>List of news stories for a given category</li>
46  <li>Story detail view (from which we can save and share)</li>
47  <li>List of photos, uncategorized</li>
48  <li>Photo detail view (from which we can save and share)</li>
49  <li>List of all saved items</li>
50  <li>List of saved photos</li>
51  <li>List of saved stories</li>
52</ul>
53
54
55<h2 id="diagram-relationships">Diagram Screen Relationships</h2>
56
57<p>Now we can define the directed relationships between screens; an arrow from one screen <em>A</em> to another screen <em>B</em> implies that screen <em>B</em> should be directly reachable via some user interaction in screen <em>A</em>. Once we define both the set of screens and the relationships between them, we can express these in concert as a screen map, which shows all of your screens and their relationships:</p>
58
59
60<img src="{@docRoot}images/training/app-navigation-screen-planning-exhaustive-map.png"
61  alt="Exhaustive screen map for the example news application" id="figure-exhaustive-map">
62
63<p class="img-caption"><strong>Figure 2.</strong> Exhaustive screen map for the example news application.</p>
64
65<p>If we later wanted to allow users to submit news stories or upload photos, we could add additional screens to this diagram.</p>
66
67
68<h2 id="beyond-simplistic-design">Go Beyond a Simplistic Design</h2>
69
70<p>At this point, it's possible to design a completely functional application from this exhaustive screen map. A simplistic user interface could consist of lists and buttons leading to child screens:</p>
71
72<ul>
73  <li>Buttons leading to different sections (e.g., stories, photos, saved items)</li>
74  <li>Vertical lists representing collections (e.g., story lists, photo lists, etc.)</li>
75  <li>Detail information (e.g., story view, full-screen photo view, etc.)</li>
76</ul>
77
78<p>However, you can use screen grouping techniques and more sophisticated navigation elements to present content in a more intuitive and device-sensitive way. In the next lesson, we explore screen grouping techniques, such as providing multi-pane layouts for tablet devices. Later, we'll dive into the various navigation patterns common on Android.</p>
79