Merge "docs: Fixes to watch faces docs." into lmp-docs

This commit is contained in:
Ricardo Cervera
2014-12-11 19:28:39 +00:00
committed by Android (Google) Code Review
6 changed files with 26 additions and 11 deletions

View File

@@ -2,7 +2,6 @@ page.title=Android Wear
@jd:body @jd:body
<p>Designing apps for wearable devices powered by Android Wear <p>Designing apps for wearable devices powered by Android Wear
is substantially different than designing for phones or is substantially different than designing for phones or
tablets: different strengths and weaknesses, different use cases, different ergonomics. tablets: different strengths and weaknesses, different use cases, different ergonomics.

View File

@@ -4,10 +4,10 @@ page.title=Watch Faces for Android Wear
<!-- developer docs box --> <!-- developer docs box -->
<a class="notice-developers right" href="{@docRoot}training/wearables/watch-faces/index.html" <a class="notice-developers right" href="{@docRoot}training/wearables/watch-faces/index.html"
style="clear:left;margin-bottom:70px"> style="clear:left;margin-bottom:90px">
<div> <div>
<h3>Developer Docs</h3> <h3>Developer Docs</h3>
<p>Creating Custom Watch Faces</p> <p>Creating Watch Faces</p>
</div> </div>
</a> </a>
@@ -158,8 +158,8 @@ screens.</p>
burn-in effect. When these screens are in ambient mode, the system shifts the contents of burn-in effect. When these screens are in ambient mode, the system shifts the contents of
the screen periodically by a few pixels to avoid pixel burn-in. Do not use large blocks of the screen periodically by a few pixels to avoid pixel burn-in. Do not use large blocks of
pixels in your ambient mode designs and keep 95% of the pixels black. Replace solid shapes in pixels in your ambient mode designs and keep 95% of the pixels black. Replace solid shapes in
your regular ambient mode designs with outlined shapes in burn-protected ambient mode. Replace your regular ambient mode designs with outlined shapes in burn-protected ambient mode. Also
also filled images with pixel patterns. For analog watch face designs, hollow out the center replace filled images with pixel patterns. For analog watch face designs, hollow out the center
where the hands meet to avoid pixel burn-in in this mode.</p> where the hands meet to avoid pixel burn-in in this mode.</p>
</div> </div>
<div class="layout-content-col span-4"> <div class="layout-content-col span-4">

View File

@@ -838,8 +838,8 @@ include the action bar on devices running Android 2.1 or higher."
<li class="nav-section"> <li class="nav-section">
<div class="nav-section-header"> <div class="nav-section-header">
<a href="<?cs var:toroot ?>training/wearables/watch-faces/index.html" <a href="<?cs var:toroot ?>training/wearables/watch-faces/index.html"
description="How to create custom watch faces for wearables." description="How to create watch faces for wearables."
>Creating Custom Watch Faces</a> >Creating Watch Faces</a>
</div> </div>
<ul> <ul>
<li> <li>

View File

@@ -16,6 +16,14 @@ page.title=Designing Watch Faces
</div> </div>
</div> </div>
<!-- design guide box -->
<a class="notice-designers wide" href="{@docRoot}design/wear/watchfaces.html">
<div>
<h3>Design Guide</h3>
<p>Watch Faces</p>
</div>
</a>
<p>Similar to the process of designing a traditional watch face, creating one for <p>Similar to the process of designing a traditional watch face, creating one for
Android Wear is an exercise in visualizing time clearly. Android Wear devices Android Wear is an exercise in visualizing time clearly. Android Wear devices
provide advanced capabilities for watch faces that you can leverage in your designs, such as provide advanced capabilities for watch faces that you can leverage in your designs, such as

View File

@@ -1,4 +1,4 @@
page.title=Creating Custom Watch Faces page.title=Creating Watch Faces
@jd:body @jd:body
@@ -13,6 +13,14 @@ page.title=Creating Custom Watch Faces
</div> </div>
</div> </div>
<!-- design guide box -->
<a class="notice-designers wide" href="{@docRoot}design/wear/watchfaces.html">
<div>
<h3>Design Guide</h3>
<p>Watch Faces</p>
</div>
</a>
<p>Watch faces in Android Wear leverage a dynamic digital canvas to tell time using colors, <p>Watch faces in Android Wear leverage a dynamic digital canvas to tell time using colors,
animations, and relevant contextual information. The <a animations, and relevant contextual information. The <a
href="https://play.google.com/store/apps/details?id=com.google.android.wearable.app">Android href="https://play.google.com/store/apps/details?id=com.google.android.wearable.app">Android

View File

@@ -75,7 +75,7 @@ android { ... }
dependencies { dependencies {
... ...
wearApp project(':wear') wearApp project(':wear')
compile 'com.google.android.gms:play-services:6.1.+' compile 'com.google.android.gms:play-services:6.5.+'
} }
</pre> </pre>
@@ -90,7 +90,7 @@ android { ... }
dependencies { dependencies {
... ...
compile 'com.google.android.support:wearable:1.1.+' compile 'com.google.android.support:wearable:1.1.+'
compile 'com.google.android.gms:play-services-wearable:6.1.+' compile 'com.google.android.gms:play-services-wearable:6.5.+'
} }
</pre> </pre>
@@ -183,7 +183,7 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService {
} }
&#64;Override &#64;Override
public void onDraw(Canvas canvas) { public void onDraw(Canvas canvas, Rect bounds) {
/* draw your watch face */ /* draw your watch face */
} }