summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRicardo Cervera <rcervera@google.com>2014-12-12 04:25:54 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-12 04:25:54 +0000
commitdd4b92b3fa75b455c7c335bd749567db9e44a562 (patch)
tree669c4c79cac67d9ca21ead914764a734f6fa6565 /docs
parentbde459f33ed927793ed91666623d5762ab724da0 (diff)
parentc0276ebd93554b9c3bfde2587b00ca79afa6ed05 (diff)
downloadframeworks_base-dd4b92b3fa75b455c7c335bd749567db9e44a562.zip
frameworks_base-dd4b92b3fa75b455c7c335bd749567db9e44a562.tar.gz
frameworks_base-dd4b92b3fa75b455c7c335bd749567db9e44a562.tar.bz2
am c0276ebd: am af7070e6: am 64d97cb2: am 6621a4f6: am 9fe34d90: Merge "docs: Fixes to watch faces docs." into lmp-docs automerge: 575c8c9
* commit 'c0276ebd93554b9c3bfde2587b00ca79afa6ed05': docs: Fixes to watch faces docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/html/design/wear/index.jd1
-rw-r--r--docs/html/design/wear/watchfaces.jd8
-rw-r--r--docs/html/training/training_toc.cs4
-rw-r--r--docs/html/training/wearables/watch-faces/designing.jd8
-rw-r--r--docs/html/training/wearables/watch-faces/index.jd10
-rw-r--r--docs/html/training/wearables/watch-faces/service.jd6
6 files changed, 26 insertions, 11 deletions
diff --git a/docs/html/design/wear/index.jd b/docs/html/design/wear/index.jd
index 104e154..c75723f 100644
--- a/docs/html/design/wear/index.jd
+++ b/docs/html/design/wear/index.jd
@@ -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.
diff --git a/docs/html/design/wear/watchfaces.jd b/docs/html/design/wear/watchfaces.jd
index ef700ee..1a4b1f9 100644
--- a/docs/html/design/wear/watchfaces.jd
+++ b/docs/html/design/wear/watchfaces.jd
@@ -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">
diff --git a/docs/html/training/training_toc.cs b/docs/html/training/training_toc.cs
index f883e25..f3b2693 100644
--- a/docs/html/training/training_toc.cs
+++ b/docs/html/training/training_toc.cs
@@ -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>
diff --git a/docs/html/training/wearables/watch-faces/designing.jd b/docs/html/training/wearables/watch-faces/designing.jd
index b7fcfd4..1033fed 100644
--- a/docs/html/training/wearables/watch-faces/designing.jd
+++ b/docs/html/training/wearables/watch-faces/designing.jd
@@ -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
diff --git a/docs/html/training/wearables/watch-faces/index.jd b/docs/html/training/wearables/watch-faces/index.jd
index c510fb2..c7affd1 100644
--- a/docs/html/training/wearables/watch-faces/index.jd
+++ b/docs/html/training/wearables/watch-faces/index.jd
@@ -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
diff --git a/docs/html/training/wearables/watch-faces/service.jd b/docs/html/training/wearables/watch-faces/service.jd
index 0cb628c..87ebefa 100644
--- a/docs/html/training/wearables/watch-faces/service.jd
+++ b/docs/html/training/wearables/watch-faces/service.jd
@@ -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 */
}