am 6621a4f6: am 9fe34d90: Merge "docs: Fixes to watch faces docs." into lmp-docs

* commit '6621a4f6f9c63ff952c5e64a5ae1e41ef5ac5960':
  docs: Fixes to watch faces docs.
This commit is contained in:
Ricardo Cervera
2014-12-11 19:43:25 +00:00
committed by Android Git Automerger
6 changed files with 26 additions and 11 deletions

View File

@@ -2,7 +2,6 @@ page.title=Android Wear
@jd:body
<p>Designing apps for wearable devices powered by Android Wear
is substantially different than designing for phones or
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 -->
<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>
<h3>Developer Docs</h3>
<p>Creating Custom Watch Faces</p>
<p>Creating Watch Faces</p>
</div>
</a>
@@ -158,8 +158,8 @@ screens.</p>
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
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
also filled images with pixel patterns. For analog watch face designs, hollow out the center
your regular ambient mode designs with outlined shapes in burn-protected ambient mode. Also
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>
</div>
<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">
<div class="nav-section-header">
<a href="<?cs var:toroot ?>training/wearables/watch-faces/index.html"
description="How to create custom watch faces for wearables."
>Creating Custom Watch Faces</a>
description="How to create watch faces for wearables."
>Creating Watch Faces</a>
</div>
<ul>
<li>

View File

@@ -16,6 +16,14 @@ page.title=Designing Watch Faces
</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
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

View File

@@ -1,4 +1,4 @@
page.title=Creating Custom Watch Faces
page.title=Creating Watch Faces
@jd:body
@@ -13,6 +13,14 @@ page.title=Creating Custom Watch Faces
</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,
animations, and relevant contextual information. The <a
href="https://play.google.com/store/apps/details?id=com.google.android.wearable.app">Android

View File

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