Merge "docs: Add Cross-References to Material Design Spec" into lmp-docs

This commit is contained in:
Joe Fernandez
2015-04-14 19:55:35 +00:00
committed by Android (Google) Code Review
28 changed files with 381 additions and 47 deletions

View File

@ -2,6 +2,14 @@ page.title=Buttons
page.tags=button,input page.tags=button,input
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/buttons.html">
<div>
<h3>Material Design</h3>
<p>Buttons<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/button.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/button.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>

View File

@ -2,6 +2,14 @@ page.title=Dialogs
page.tags=dialog,alert,popup,toast page.tags=dialog,alert,popup,toast
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/dialogs.html">
<div>
<h3>Material Design</h3>
<p>Dialogs<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/dialogs.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/dialogs.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
@ -35,7 +43,7 @@ user to adjust settings or enter text.</p>
<h4>Action buttons</h4> <h4>Action buttons</h4>
<p>Action buttons are typically Cancel and/or OK, with OK indicating the preferred or most likely action. However, if the options consist of specific actions such as Close or Wait rather than a confirmation or cancellation of the action described in the content, then all the buttons should be active verbs. Order actions following these rules:</p> <p>Action buttons are typically Cancel and/or OK, with OK indicating the preferred or most likely action. However, if the options consist of specific actions such as Close or Wait rather than a confirmation or cancellation of the action described in the content, then all the buttons should be active verbs. Order actions following these rules:</p>
<ul> <ul>
<li>The dismissive action of a dialog is always on the left. Dismissive actions return to the user to the previous state.</li> <li>The dismissive action of a dialog is always on the left. Dismissive actions return to the user to the previous state.</li>
<li>The affirmative actions are on the right. Affirmative actions continue progress toward the user goal that triggered the dialog.</li> <li>The affirmative actions are on the right. Affirmative actions continue progress toward the user goal that triggered the dialog.</li>
</ul> </ul>
@ -152,6 +160,15 @@ advances the workflow, and simply touching outside the popup dismisses it.</p>
away from an email before you send it triggers a "Draft saved" toast to let you know that you can away from an email before you send it triggers a "Draft saved" toast to let you know that you can
continue editing later. Toasts automatically disappear after a timeout.</p> continue editing later. Toasts automatically disappear after a timeout.</p>
<a class="notice-designers-material left"
href="http://www.google.com/design/spec/components/snackbars-toasts.html">
<div>
<h3>Material Design</h3>
<p>Toasts<p>
</div>
</a>
<a class="notice-developers left" href="{@docRoot}guide/topics/ui/notifiers/toasts.html"> <a class="notice-developers left" href="{@docRoot}guide/topics/ui/notifiers/toasts.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>

View File

@ -4,6 +4,15 @@ page.tags=gridview,layout,listview
<img src="{@docRoot}design/media/gridview_overview.png"> <img src="{@docRoot}design/media/gridview_overview.png">
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/grid-lists.html">
<div>
<h3>Material Design</h3>
<p>Grid lists<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/layout/gridview.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/layout/gridview.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>

View File

@ -2,10 +2,11 @@ page.title=Lists
page.tags=listview,layout page.tags=listview,layout
@jd:body @jd:body
<a class="notice-developers" href="{@docRoot}guide/topics/ui/layout/listview.html"> <a class="notice-designers-material"
href="http://www.google.com/design/spec/components/lists.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Material Design</h3>
<p>List View</p> <p>Lists<p>
</div> </div>
</a> </a>
@ -22,7 +23,7 @@ well as drilldown navigation.</p>
</div> </div>
<div class="layout-content-col span-4 with-callouts"> <div class="layout-content-col span-4 with-callouts">
<ol> <ol style="margin-bottom: 60px;">
<li> <li>
<h4>Section Divider</h4> <h4>Section Divider</h4>
<p>Use section dividers to organize the content of your list into groups and facilitate scanning.</p> <p>Use section dividers to organize the content of your list into groups and facilitate scanning.</p>
@ -35,5 +36,21 @@ well as drilldown navigation.</p>
</li> </li>
</ol> </ol>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/layout/listview.html">
<div>
<h3>Developer Docs</h3>
<p>List View</p>
</div>
</a>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/lists-controls.html">
<div>
<h3>Material Design</h3>
<p>Lists: Controls<p>
</div>
</a>
</div> </div>
</div> </div>

View File

@ -2,6 +2,14 @@ page.title=Progress &amp; Activity
page.tags=progressbar,download,network page.tags=progressbar,download,network
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/progress-activity.html">
<div>
<h3>Material Design</h3>
<p>Progress and Activity<p>
</div>
</a>
<p>Progress bars and activity indicators signal to users that something is happening that will take a moment.</p> <p>Progress bars and activity indicators signal to users that something is happening that will take a moment.</p>
<h2 id="progress">Progress bars</h2> <h2 id="progress">Progress bars</h2>

View File

@ -2,6 +2,7 @@ page.title=Scrolling
page.tags=scrollview,listview page.tags=scrollview,listview
@jd:body @jd:body
<p>Scrolling allows the user to navigate to content in the overflow using a swipe gesture. The <p>Scrolling allows the user to navigate to content in the overflow using a swipe gesture. The
scrolling speed is proportional to the speed of the gesture.</p> scrolling speed is proportional to the speed of the gesture.</p>
<h2 id="indicator">Scroll Indicator</h2> <h2 id="indicator">Scroll Indicator</h2>

View File

@ -2,6 +2,14 @@ page.title=Seek Bars and Sliders
page.tags=seekbar,progressbar page.tags=seekbar,progressbar
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/sliders.html">
<div>
<h3>Material Design</h3>
<p>Sliders<p>
</div>
</a>
<p>Interactive sliders make it possible to select a value from a continuous or discrete range of values <p>Interactive sliders make it possible to select a value from a continuous or discrete range of values
by moving the slider thumb. The smallest value is to the left, the largest to the right. The by moving the slider thumb. The smallest value is to the left, the largest to the right. The
interactive nature of the slider makes it a great choice for settings that reflect intensity levels, interactive nature of the slider makes it a great choice for settings that reflect intensity levels,

View File

@ -2,6 +2,14 @@ page.title=Spinners
page.tags=spinner,dropdown page.tags=spinner,dropdown
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/menus.html">
<div>
<h3>Material Design</h3>
<p>Menus<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/spinner.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/spinner.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>

View File

@ -2,6 +2,14 @@ page.title=Switches
page.tags=switch,checkbox,radiobutton,button page.tags=switch,checkbox,radiobutton,button
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/selection-controls.html">
<div>
<h3>Material Design</h3>
<p>Selection Controls<p>
</div>
</a>
<p>Switches allow the user to select options. There are three kinds of switches: checkboxes, radio <p>Switches allow the user to select options. There are three kinds of switches: checkboxes, radio
buttons, and on/off switches.</p> buttons, and on/off switches.</p>

View File

@ -4,10 +4,18 @@ page.tags=tabs,actionbar,navigation,viewpager
<img src="{@docRoot}design/media/tabs_overview.png"> <img src="{@docRoot}design/media/tabs_overview.png">
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/tabs.html">
<div>
<h3>Material Design</h3>
<p>Tabs<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}training/implementing-navigation/lateral.html"> <a class="notice-developers" href="{@docRoot}training/implementing-navigation/lateral.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
<p>Creating Swipe Views with Tabs</p> <p>Creating Swipe Views<br>with Tabs</p>
</div> </div>
</a> </a>

View File

@ -2,6 +2,15 @@ page.title=Text Fields
page.tags=text,edittext,input page.tags=text,edittext,input
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/components/text-fields.html">
<div>
<h3>Material Design</h3>
<p>Text Fields<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/text.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/text.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>

View File

@ -12,6 +12,7 @@ and implementation.</p>
<div class="layout-content-row"> <div class="layout-content-row">
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
<p>Drag and drop your way to beautifully designed Android apps. The stencils feature the <p>Drag and drop your way to beautifully designed Android apps. The stencils feature the
rich typography, colors, interactive controls, and icons found throughout Android, along with rich typography, colors, interactive controls, and icons found throughout Android, along with
phone and tablet outlines to frame your creations. Source files for icons and controls are also phone and tablet outlines to frame your creations. Source files for icons and controls are also
@ -23,15 +24,31 @@ available.</p>
<img src="{@docRoot}design/media/downloads_stencils.png"> <img src="{@docRoot}design/media/downloads_stencils.png">
</div> </div>
<div class="layout-content-col span-4">
<div class="layout-content-col span-4">
<a class="notice-designers-material"
style="width:218px;"
href="http://www.google.com/design/spec/resources/layout-templates.html">
<div>
<h3>Material Design</h3>
<p>Layout Templates<p>
</div>
</a>
</div>
<div class="layout-content-col span-4">
<a class="notice-designers-material"
style="width:218px;"
href="http://www.google.com/design/spec/resources/sticker-sheets-icons.html">
<div>
<h3>Material Design</h3>
<p>Sticker Sheets<p>
</div>
</a>
</div>
<div class="layout-content-col span-4">
<p> <p>
<!--<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Fireworks Stencil');"
href="{@docRoot}downloads/design/Android_Design_Fireworks_Stencil_20120814.png">Adobe&reg; Fireworks&reg; PNG Stencil</a>
<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Illustrator Stencil');"
href="{@docRoot}downloads/design/Android_Design_Illustrator_Vectors_20120814.ai">Adobe&reg; Illustrator&reg; Stencil</a>
<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'OmniGraffle Stencil');"
href="{@docRoot}downloads/design/Android_Design_OmniGraffle_Stencil_20120814.graffle">Omni&reg; OmniGraffle&reg; Stencil</a>-->
<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Photoshop Sources');" <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Photoshop Sources');"
href="{@docRoot}downloads/design/Android_Design_Stencils_Sources_20131106.zip">Adobe&reg; Photoshop&reg; Stencils and Sources</a> href="{@docRoot}downloads/design/Android_Design_Stencils_Sources_20131106.zip">Adobe&reg; Photoshop&reg; Stencils and Sources</a>
</p> </p>
@ -61,6 +78,18 @@ modify to match your theme, plus source files.</p>
<img src="{@docRoot}design/media/iconography_actionbar_style.png"> <img src="{@docRoot}design/media/iconography_actionbar_style.png">
</div> </div>
<div class="layout-content-col span-4">
<a class="notice-designers-material"
style="width:218px;"
href="http://www.google.com/design/spec/resources/sticker-sheets-icons.html">
<div>
<h3>Material Design</h3>
<p>Sticker Sheets<p>
</div>
</a>
</div>
<div class="layout-content-col span-4"> <div class="layout-content-col span-4">
<p> <p>
@ -238,6 +267,18 @@ requirements of UI and high-resolution screens.</p>
<img src="{@docRoot}design/media/downloads_roboto_specimen_preview.png"> <img src="{@docRoot}design/media/downloads_roboto_specimen_preview.png">
</div> </div>
<div class="layout-content-col span-4">
<a class="notice-designers-material"
style="width:218px;"
href="http://www.google.com/design/spec/resources/roboto-noto-fonts.html">
<div>
<h3>Material Design</h3>
<p>Roboto Font<p>
</div>
</a>
</div>
<div class="layout-content-col span-4"> <div class="layout-content-col span-4">
<p> <p>
@ -264,6 +305,18 @@ shade that can be used as a complement when needed.</p>
<img src="{@docRoot}design/media/downloads_color_swatches.png"> <img src="{@docRoot}design/media/downloads_color_swatches.png">
</div> </div>
<div class="layout-content-col span-4">
<a class="notice-designers-material"
style="width:218px;"
href="http://www.google.com/design/spec/resources/color-palettes.html">
<div>
<h3>Material Design</h3>
<p>Color Palettes<p>
</div>
</a>
</div>
<div class="layout-content-col span-4"> <div class="layout-content-col span-4">
<p> <p>

View File

@ -3,6 +3,14 @@ page.tags="accessibility","navigation","input"
page.metaDescription=Design an app that's universally accessible to people with visual impairment, color deficiency, hearing loss, and limited dexterity. page.metaDescription=Design an app that's universally accessible to people with visual impairment, color deficiency, hearing loss, and limited dexterity.
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/usability/accessibility.html">
<div>
<h3>Material Design</h3>
<p>Accessibility<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}training/accessibility/index.html"> <a class="notice-developers" href="{@docRoot}training/accessibility/index.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>

View File

@ -5,6 +5,14 @@ page.metaDescription=The Action bar is an essential design element for all apps.
<img src="{@docRoot}design/media/action_bar_pattern_overview.png"> <img src="{@docRoot}design/media/action_bar_pattern_overview.png">
<a class="notice-designers-material" href="http://www.google.com/design/spec/layout/structure.html#structure-app-bar">
<div>
<h3>Material Design</h3>
<p>App Bar<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/actionbar.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/actionbar.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
@ -12,7 +20,6 @@ page.metaDescription=The Action bar is an essential design element for all apps.
</div> </div>
</a> </a>
<p>The <em>action bar</em> is a dedicated piece of real estate at the top of each screen that is generally persistent throughout the app.</p> <p>The <em>action bar</em> is a dedicated piece of real estate at the top of each screen that is generally persistent throughout the app.</p>
<p><strong>It provides several key functions</strong>:</p> <p><strong>It provides several key functions</strong>:</p>
<ul> <ul>

View File

@ -2,6 +2,15 @@ page.title=App Structure
page.tags=navigation,layout,tablet page.tags=navigation,layout,tablet
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/patterns/app-structure.html">
<div>
<h3>Material Design</h3>
<p>App Structure<p>
</div>
</a>
<p>Apps come in many varieties that address very different needs. For example:</p> <p>Apps come in many varieties that address very different needs. For example:</p>
<ul> <ul>
<li>Apps such as Calculator or Camera that are built around a single focused activity handled from a <li>Apps such as Calculator or Camera that are built around a single focused activity handled from a
@ -63,7 +72,7 @@ layouts that are visually engaging and appropriate for the data type and screen
<div class="figure-caption"> <div class="figure-caption">
Play Music allows navigation among artists, albums, and playlists through rich content display. Play Music allows navigation among artists, albums, and playlists through rich content display.
It is also enriched with tailored recommendations and promotions that surface content of interest It is also enriched with tailored recommendations and promotions that surface content of interest
to the user. Search is readily available from the action bar. to the user. Search is readily available from the action bar.
</div> </div>
</div> </div>
@ -92,7 +101,7 @@ important actions.</p>
<img src="{@docRoot}design/media/app_structure_gmail.png"> <img src="{@docRoot}design/media/app_structure_gmail.png">
<div class="figure-caption"> <div class="figure-caption">
A calendar is about productivity, so an efficient, easy-to-skim view with higher data density works A calendar is about productivity, so an efficient, easy-to-skim view with higher data density works
well. Navigation supports switching views of day, week, month, and agenda views. well. Navigation supports switching views of day, week, month, and agenda views.
</div> </div>
</div> </div>

View File

@ -2,6 +2,14 @@ page.title=Gestures
page.tags=gesture,input,touch page.tags=gesture,input,touch
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/patterns/gestures.html">
<div>
<h3>Material Design</h3>
<p>Gestures<p>
</div>
</a>
<p>Gestures allow users to interact with your app by manipulating the screen objects you provide. The <p>Gestures allow users to interact with your app by manipulating the screen objects you provide. The
following table shows the core gesture set that is supported in Android.</p> following table shows the core gesture set that is supported in Android.</p>
@ -92,7 +100,7 @@ following table shows the core gesture set that is supported in Android.</p>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -5,6 +5,14 @@ page.metaDescription=Design guide with examples of how to flatten navigation and
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/layout/structure.html#structure-ui-regions">
<div>
<h3>Material Design</h3>
<p>UI Regions and Guidance<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}training/basics/fragments/index.html"> <a class="notice-developers" href="{@docRoot}training/basics/fragments/index.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
@ -47,7 +55,7 @@ you can use to adjust the layout after orientation change while keeping function
<div class="layout-content-col span-8"> <div class="layout-content-col span-8">
<img src="{@docRoot}design/media/multipane_stretch.png"> <img src="{@docRoot}design/media/multipane_stretch.png">
</div> </div>
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
@ -61,7 +69,7 @@ you can use to adjust the layout after orientation change while keeping function
<div class="layout-content-col span-8"> <div class="layout-content-col span-8">
<img src="{@docRoot}design/media/multipane_stack.png"> <img src="{@docRoot}design/media/multipane_stack.png">
</div> </div>
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
@ -75,7 +83,7 @@ you can use to adjust the layout after orientation change while keeping function
<div class="layout-content-col span-8"> <div class="layout-content-col span-8">
<img src="{@docRoot}design/media/multipane_expand.png"> <img src="{@docRoot}design/media/multipane_expand.png">
</div> </div>
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
@ -89,7 +97,7 @@ you can use to adjust the layout after orientation change while keeping function
<div class="layout-content-col span-8"> <div class="layout-content-col span-8">
<img src="{@docRoot}design/media/multipane_show.png"> <img src="{@docRoot}design/media/multipane_show.png">
</div> </div>
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">

View File

@ -3,6 +3,14 @@ page.tags=DrawerLayout,SlidingPaneLayout
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/layout/structure.html#structure-side-nav">
<div>
<h3>Material Design</h3>
<p>Side Nav<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}training/implementing-navigation/nav-drawer.html"> <a class="notice-developers" href="{@docRoot}training/implementing-navigation/nav-drawer.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
@ -12,7 +20,7 @@ page.tags=DrawerLayout,SlidingPaneLayout
<p>The navigation drawer is a panel that transitions in from the left edge of the screen and <p>The navigation drawer is a panel that transitions in from the left edge of the screen and
displays the apps main navigation options.</p> displays the apps main navigation options.</p>
<h4>Displaying the navigation drawer</h4> <h4>Displaying the navigation drawer</h4>
@ -92,7 +100,7 @@ anywhere in the app, navigation up to the top level is faster and more efficient
<p>The navigation drawer is a reflection of your apps structure and displays its major <p>The navigation drawer is a reflection of your apps structure and displays its major
navigation hubs. Think of navigation hubs as those places in your app that a user will want navigation hubs. Think of navigation hubs as those places in your app that a user will want
to visit frequently or use as a jumping-off point to other parts of the app. to visit frequently or use as a jumping-off point to other parts of the app.
At a minimum, the navigation hubs are the top-level views, since they correspond to your apps At a minimum, the navigation hubs are the top-level views, since they correspond to your apps
major functional areas.</p> major functional areas.</p>
<p> If your apps structure is deep, you can add screens from lower levels that your users will <p> If your apps structure is deep, you can add screens from lower levels that your users will
@ -125,8 +133,8 @@ likely visit often and make those navigation hubs as well.</p>
<h2 id="Content">Content of the Navigation Drawer</h2> <h2 id="Content">Content of the Navigation Drawer</h2>
<p> Keep the content of the navigation drawer focused on app navigation. Expose the navigation <p> Keep the content of the navigation drawer focused on app navigation. Expose the navigation
hubs of your app as list items inside the navigation drawer - one item per row. hubs of your app as list items inside the navigation drawer - one item per row.
<div class="layout-content-row"> <div class="layout-content-row">
<div class="layout-content-col span-8"> <div class="layout-content-col span-8">
<h4>Titles, icons, and counters</h4> <h4>Titles, icons, and counters</h4>
@ -139,7 +147,7 @@ hubs of your app as list items inside the navigation drawer - one item per row.
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
<img src="{@docRoot}design/media/navigation_drawer_titles_icons.png"> <img src="{@docRoot}design/media/navigation_drawer_titles_icons.png">
<div class="figure-caption"> <div class="figure-caption">
Use titles and icons to organize your drawer. Use titles and icons to organize your drawer.
</div> </div>
</div> </div>
</div> </div>
@ -149,13 +157,13 @@ hubs of your app as list items inside the navigation drawer - one item per row.
<img src="{@docRoot}design/media/navigation_drawer_collapse.png"> <img src="{@docRoot}design/media/navigation_drawer_collapse.png">
<div class="figure-caption"> <div class="figure-caption">
Collapsible navigation items are split. Use the left side for navigation and the right Collapsible navigation items are split. Use the left side for navigation and the right
to collapse and expand items. to collapse and expand items.
</div> </div>
</div> </div>
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
<h4>Collapsible navigation items</h4> <h4>Collapsible navigation items</h4>
<p>If you have many views with some subordinate to others, consider collapsing them into one <p>If you have many views with some subordinate to others, consider collapsing them into one
expandable item to conserve space. expandable item to conserve space.
The parent in the navigation drawer then turns into a split item. The left side allows The parent in the navigation drawer then turns into a split item. The left side allows
navigation to the parent items view, and the right side collapses or expands the list of navigation to the parent items view, and the right side collapses or expands the list of
child items. </p> child items. </p>
@ -189,7 +197,7 @@ is fully expanded:</p>
<img src="{@docRoot}design/media/navigation_drawer_open_overflow.png"> <img src="{@docRoot}design/media/navigation_drawer_open_overflow.png">
<div class="figure-caption"> <div class="figure-caption">
Clean up the action bar when the drawer is fully expanded. Remove actions that are not needed Clean up the action bar when the drawer is fully expanded. Remove actions that are not needed
and display your app's name in the title area. and display your app's name in the title area.
</div> </div>
<h4>Actions</h4> <h4>Actions</h4>
@ -232,7 +240,7 @@ re-display the CAB.</p>
<img src="{@docRoot}design/media/navigation_drawer_CAB.png"> <img src="{@docRoot}design/media/navigation_drawer_CAB.png">
<div class="figure-caption"> <div class="figure-caption">
Hide contextual action bars while the drawer is visible. Hide contextual action bars while the drawer is visible.
</div> </div>
<p>If the user navigates away from a view with selected content, deselect the content before <p>If the user navigates away from a view with selected content, deselect the content before

View File

@ -2,6 +2,14 @@ page.title=Selection
page.tags=actionmode,navigation,contextual page.tags=actionmode,navigation,contextual
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/patterns/selection.html">
<div>
<h3>Material Design</h3>
<p>Selection<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/menus.html#context-menu"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/menus.html#context-menu">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
@ -9,6 +17,7 @@ page.tags=actionmode,navigation,contextual
</div> </div>
</a> </a>
<p>Android 3.0 changed the <em>long press</em> gesture&mdash;that is, a touch that's held in the same position for a moment&mdash;to be the global gesture to select data.. This affects the way you should <p>Android 3.0 changed the <em>long press</em> gesture&mdash;that is, a touch that's held in the same position for a moment&mdash;to be the global gesture to select data.. This affects the way you should
handle multi-select and contextual actions in your apps.</p> handle multi-select and contextual actions in your apps.</p>

View File

@ -2,6 +2,14 @@ page.title=Settings
page.tags=preferences,sharedpreferences page.tags=preferences,sharedpreferences
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/patterns/settings.html">
<div>
<h3>Material Design</h3>
<p>Settings<p>
</div>
</a>
<a class="notice-developers" href="{@docRoot}guide/topics/ui/settings.html"> <a class="notice-developers" href="{@docRoot}guide/topics/ui/settings.html">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
@ -9,6 +17,7 @@ page.tags=preferences,sharedpreferences
</div> </div>
</a> </a>
<p itemprop="description">Settings is a place in your app where users indicate their preferences for how your app should <p itemprop="description">Settings is a place in your app where users indicate their preferences for how your app should
behave. This benefits users because:</p> behave. This benefits users because:</p>

View File

@ -7,6 +7,14 @@ everyone else's. In Android, your app can shine as an extension of your brand. <
<h2 id="color">Color</h2> <h2 id="color">Color</h2>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/style/color.html#color-ui-color-application">
<div>
<h3>Material Design</h3>
<p>UI Color Application<p>
</div>
</a>
<p>Use your brand color for accent by overriding the Android framework's default blue in UI elements like checkboxes, progress bars, radio buttons, sliders, tabs, and scroll indicators.</p> <p>Use your brand color for accent by overriding the Android framework's default blue in UI elements like checkboxes, progress bars, radio buttons, sliders, tabs, and scroll indicators.</p>
<p>Look for opportunities to use high-contrast color for emphasis, for example, as the background color of the action bar or a primary button. But don't go overboard: not all actions are equal, so use it only for the one or two most important things.</p> <p>Look for opportunities to use high-contrast color for emphasis, for example, as the background color of the action bar or a primary button. But don't go overboard: not all actions are equal, so use it only for the one or two most important things.</p>
@ -62,17 +70,32 @@ and app name in the action bar.</p>
Example of a the logo in the action bar. This works well in cases where the brand's logo matches the name of the app. Example of a the logo in the action bar. This works well in cases where the brand's logo matches the name of the app.
</div> </div>
</div> </div>
</div> </div>
<h2 id="logo">Icons</h2> <h2 id="logo">Icons</h2>
<a class="notice-designers-material" href="http://www.google.com/design/spec/style/icons.html">
<div>
<h3>Material Design</h3>
<p>Icons<p>
</div>
</a>
<p>If you have icons that you're already using for your app on other platforms
and they have a distinctive look intended to fit your brand, use them on your
Android app as well. <strong>If you take this approach, make sure your brand styling is
applied to every single icon in your app.</strong></p>
<div class="layout-content-row"> <div class="layout-content-row">
<div class="layout-content-col span-6"> <div class="layout-content-col span-6">
<p>If you have icons that you're already using for your app on other platforms <p>One exception: For any icon in your existing set where the symbol is different from
and they have a distinctive look intended to fit your brand, use them on your Android's, use Android's symbol but give it your brand's styling. That way, users will
Android app as well. <strong>If you take this approach, make sure your brand styling is understand what the purpose of the icon is based on what they've learned in other
applied to every single icon in your app</strong>.</p> Android apps (Design principle:
<a href="{@docRoot}design/get-started/principles.html#give-me-tricks">Give me tricks that
work everywhere</a>). But the icon will still look like it belongs with all of
your other icons as a part of your brand.</p>
</div> </div>
@ -81,13 +104,6 @@ and app name in the action bar.</p>
</div> </div>
</div> </div>
</div> </div>
<p>One exception: For any icon in your existing set where the symbol is different from
Android's, use Android's symbol but give it your brand's styling. That way, users will
understand what the purpose of the icon is based on what they've learned in other
Android apps (Design principle:
<a href="{@docRoot}design/get-started/principles.html#give-me-tricks">Give me tricks that
work everywhere</a>). But the icon will still look like it belongs with all of
your other icons as a part of your brand.</p>
<div class="layout-content-row"> <div class="layout-content-row">
<div class="layout-content-col span-6"> <div class="layout-content-col span-6">

View File

@ -88,6 +88,13 @@ page.title=Color
} }
</style> </style>
<a class="notice-designers-material" href="http://www.google.com/design/spec/style/color.html">
<div>
<h3>Material Design</h3>
<p>Color<p>
</div>
</a>
<p>Use color primarily for emphasis. Choose colors that fit with your brand and provide good contrast <p>Use color primarily for emphasis. Choose colors that fit with your brand and provide good contrast
between visual components. Note that red and green may be indistinguishable to color-blind users.</p> between visual components. Note that red and green may be indistinguishable to color-blind users.</p>
@ -129,6 +136,6 @@ shade that can be used as a complement when needed.</p>
.css('color', color) .css('color', color)
.text(color.toUpperCase()); .text(color.toUpperCase());
}); });
}); });
</script> </script>

View File

@ -3,6 +3,14 @@ page.metaDescription=Take advantage of Android's flexible layout system and crea
@jd:body @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 <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 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> gracefully scale from large tablets to smaller phones.</p>
@ -15,12 +23,14 @@ gracefully scale from large tablets to smaller phones.</p>
<div class="layout-content-col span-4"> <div class="layout-content-col span-4">
<h4>Be flexible</h4> <h4>Be flexible</h4>
<p>Stretch and compress your layouts to accommodate various heights and widths.</p> <p>Stretch and compress your layouts to accommodate various heights and widths.</p>
</div> </div>
<div class="layout-content-col span-5"> <div class="layout-content-col span-5">
<h4>Optimize layouts</h4> <h4>Optimize layouts</h4>
<p>On larger devices, take advantage of extra screen real estate. Create compound views that combine <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> multiple views to reveal more content and ease navigation.</p>
@ -37,6 +47,15 @@ ensure that your app looks great on any device.</p>
<img src="{@docRoot}design/media/devices_displays_density@2x.png" alt="" height="160" /> <img src="{@docRoot}design/media/devices_displays_density@2x.png" alt="" height="160" />
<h4>Strategies</h4> <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 <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 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 down for the other buckets. Another approach is to start with the device with the largest screen

View File

@ -41,6 +41,14 @@ effectively down-scales your HDPI assets by 1/2 to match the expected size.</p>
<h2 id="launcher">Launcher</h2> <h2 id="launcher">Launcher</h2>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/style/icons.html#icons-product-icons">
<div>
<h3>Material Design</h3>
<p>Product Icons<p>
</div>
</a>
<p>The launcher icon is the visual representation of your app on the Home or All Apps screen. Since the <p>The launcher icon is the visual representation of your app on the Home or All Apps screen. Since the
user can change the Home screen's wallpaper, make sure that your launcher icon is clearly visible on user can change the Home screen's wallpaper, make sure that your launcher icon is clearly visible on
any type of background.</p> any type of background.</p>
@ -123,6 +131,14 @@ from above, so that users perceive some depth.</p>
<h2 id="action-bar">Action Bar</h2> <h2 id="action-bar">Action Bar</h2>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/style/icons.html#icons-system-icons">
<div>
<h3>Material Design</h3>
<p>System Icons<p>
</div>
</a>
<p> <p>
Action bar icons are graphic buttons that represent the most important actions people can take Action bar icons are graphic buttons that represent the most important actions people can take
@ -220,6 +236,14 @@ Disabled: <strong>30%</strong> opacity</p>
<h2 id="small-contextual">Small / Contextual Icons</h2> <h2 id="small-contextual">Small / Contextual Icons</h2>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/style/icons.html#icons-system-icons">
<div>
<h3>Material Design</h3>
<p>System Icons<p>
</div>
</a>
<p>Within the body of your app, use small icons to surface actions and/or provide status for specific <p>Within the body of your app, use small icons to surface actions and/or provide status for specific
items. For example, in the Gmail app, each message has a star icon that marks the message as items. For example, in the Gmail app, each message has a star icon that marks the message as
important.</p> important.</p>
@ -300,6 +324,15 @@ the background.</p>
<h2 id="notification">Notification Icons</h2> <h2 id="notification">Notification Icons</h2>
<a class="notice-designers-material"
href="http://www.google.com/design/spec/style/icons.html#icons-system-icons">
<div>
<h3>Material Design</h3>
<p>System Icons<p>
</div>
</a>
<p>If your app generates notifications, provide an icon that the system can display in the status bar <p>If your app generates notifications, provide an icon that the system can display in the status bar
whenever a new notification is available.</p> whenever a new notification is available.</p>

View File

@ -5,6 +5,16 @@ meta.tags="multiple screens, layout, tablets"
page.image=/design/media/metrics_closeup.png page.image=/design/media/metrics_closeup.png
@jd:body @jd:body
<a class="notice-designers-material"
href="http://www.google.com/design/spec/layout/metrics-keylines.html">
<div>
<h3>Material Design</h3>
<p>Metrics and Keylines<p>
</div>
</a>
<p>Devices vary not only in physical size, but also in screen density (<acronym title="Dots per <p>Devices vary not only in physical size, but also in screen density (<acronym title="Dots per
inch">DPI</acronym>). To simplify the way you design for multiple screens, think of each device as inch">DPI</acronym>). To simplify the way you design for multiple screens, think of each device as
falling into a particular size bucket and density bucket:</p> falling into a particular size bucket and density bucket:</p>

View File

@ -17,6 +17,16 @@ page.title=Themes
</div> </div>
<div class="layout-content-col span-7"> <div class="layout-content-col span-7">
<a class="notice-designers-material"
href="http://www.google.com/design/spec/style/color.html#color-themes">
<div>
<h3>Material Design</h3>
<p>Color Themes<p>
</div>
</a>
<p>Themes are Android's mechanism for applying a consistent style to an app or activity. <p>Themes are Android's mechanism for applying a consistent style to an app or activity.
The style specifies the visual properties of the elements that make up your user interface, The style specifies the visual properties of the elements that make up your user interface,
such as color, height, padding and font size. To promote greater cohesion between all apps such as color, height, padding and font size. To promote greater cohesion between all apps
@ -34,7 +44,7 @@ of which you can selectively implement your own visual stylings.</p>
<div class="note develop"> <div class="note develop">
<p><strong>Developer Guide</strong></p> <p><strong>Developer Guide</strong></p>
<p>For information about how to apply themes such as Holo Light and Dark, and <p>For information about how to apply themes such as Holo Light and Dark, and
how to build your own themes, see the how to build your own themes, see the
<a href="{@docRoot}guide/topics/ui/themes.html">Styles and Themes</a> API guide.</p> <a href="{@docRoot}guide/topics/ui/themes.html">Styles and Themes</a> API guide.</p>
</div> </div>

View File

@ -2,8 +2,17 @@ page.title=Touch Feedback
page.tags=input,button page.tags=input,button
@jd:body @jd:body
<div class="layout-content-row" style="margin-bottom: -100px"> <div class="layout-content-row" style="margin-bottom: -100px">
<div class="layout-content-col span-7"> <div class="layout-content-col span-7">
<a class="notice-designers-material"
href="http://www.google.com/design/spec/animation/responsive-interaction.html">
<div>
<h3>Material Design</h3>
<p>Responsive Interaction<p>
</div>
</a>
<p>Use illumination and dimming to respond to touches, reinforce the resulting behaviors <p>Use illumination and dimming to respond to touches, reinforce the resulting behaviors
of gestures, and indicate what actions are enabled and disabled.</p> of gestures, and indicate what actions are enabled and disabled.</p>

View File

@ -9,7 +9,17 @@ page.metaDescription=How to use typography in your Android apps.
<img src="{@docRoot}design/media/typography_main.png"> <img src="{@docRoot}design/media/typography_main.png">
</div> </div>
<div class="layout-content-col span-5">
<a class="notice-designers-material"
style="width: 278px;"
href="http://www.google.com/design/spec/style/typography.html">
<div>
<h3>Material Design</h3>
<p>Typography<p>
</div>
</a>
<div class="layout-content-col span-5">
<p> <p>
<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Roboto ZIP');" <a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Roboto ZIP');"