am 9fe34d90: Merge "docs: Fixes to watch faces docs." into lmp-docs
* commit '9fe34d9037dc27abb89c64ff75b87fdf9a4eaa8b': docs: Fixes to watch faces docs.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDraw(Canvas canvas) {
|
||||
public void onDraw(Canvas canvas, Rect bounds) {
|
||||
/* draw your watch face */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user