docs: final changes to index

Change-Id: I1a9a454937a975f2b2a36ab1132e8bb91dc4059a
This commit is contained in:
Robert Ly
2014-06-26 01:18:05 -07:00
parent fa28e8cc4b
commit edd662ff66
11 changed files with 38 additions and 24 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View File

@@ -14,21 +14,21 @@ page.customHeadTag=<meta name="google-site-verification" content="sa-bIAI6GKvct3
<div class="static resource-flow-layout wrap col-16"> <div class="static resource-flow-layout wrap col-16">
<div class="resource resource-card resource-card-18x6"> <div class="resource resource-card resource-card-18x6">
<div class="landing-section-header"> <div class="landing-section-header">
<div class="col-10"><img src="{@docRoot}preview/images/l-dev-prev.png" style=" margin:40px 60px 0 20px"></div> <div class="col-10"><img src="{@docRoot}preview/images/l-dev-prev.png"
<div class="col-5" style=" margin-top:60px "><p> style="margin:40px 60px 0 20px"></div>
<h3>L Developer Preview</h3> <div class="col-5" style=" margin-top:70px ">
Get an early look at the next release of the Android platform. <h3 stye="font-weight:300;">L Developer Preview</h3>
The L Developer Preview lets you try out all the new features of the next major <p>The L Developer Preview lets you design and develop against the next major
release of Android. </p><br/> release of Android. Take the time to test and build your app before the platform
<a href="{@docRoot}preview/index.html" class="landing-button landing-primary">Get Started</a> officially launches. </p>
<a href="{@docRoot}preview/index.html" class="landing-button landing-primary">Learn More</a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<h2 style="margin-bottom: 0px;">&nbsp;</h2> <h2>&nbsp;</h2>
<div style="margin-top:10px" class="resource-widget resource-flow-layout wrap col-16 <div style="margin-top:20px" class="resource-widget resource-flow-layout wrap col-16
no-section" data-query="collection:index/primary" data-resourcestyle="card" no-section" data-query="collection:index/primary" data-resourcestyle="card"
data-sortorder="-timestamp" data-maxresults="3" data-cardsizes="6x2,6x2,6x2"></div> <!-- end .resource-widget --> data-sortorder="-timestamp" data-maxresults="3" data-cardsizes="6x2,6x2,6x2"></div> <!-- end .resource-widget -->
</div> <!-- end .wrap --> </div> <!-- end .wrap -->
@@ -36,7 +36,7 @@ page.customHeadTag=<meta name="google-site-verification" content="sa-bIAI6GKvct3
</div> <!-- end .fullscreen-carousel-content --> </div> <!-- end .fullscreen-carousel-content -->
</div> <!-- end .fullscreen-carousel --> </div> <!-- end .fullscreen-carousel -->
<div class="actions-bar" style="margin-top:40px"> <div class="actions-bar" style="margin-top:20px">
<div class="wrap"> <div class="wrap">
<div class="actions"> <div class="actions">
<div><a href="{@docRoot}sdk/index.html">Get the SDK</a></div> <div><a href="{@docRoot}sdk/index.html">Get the SDK</a></div>

View File

@@ -80,7 +80,7 @@ preferably from your mobile browser:</p>
and handheld devices. To get the new SDK that is compatible with the Google Play services and handheld devices. To get the new SDK that is compatible with the Google Play services
APK that you just installed, follow these steps: </p> APK that you just installed, follow these steps: </p>
<p class="note"><b>Note:</b> We highly recommend you use Android Studio for Wear development.</p> <p class="note"><b>Note:</b> Android Studio is required for Wear development.</p>
<ol> <ol>
<li>Start AVD Manager.</li> <li>Start AVD Manager.</li>
<li>Update the Android SDK Tools and Platform-tools to versions 23 and 20 respectively.</li> <li>Update the Android SDK Tools and Platform-tools to versions 23 and 20 respectively.</li>
@@ -91,10 +91,13 @@ APK that you just installed, follow these steps: </p>
<li>Click Close. You should now see new emulator images that support this preview <li>Click Close. You should now see new emulator images that support this preview
release of Google Play services and the Google Play services client libraries you need to release of Google Play services and the Google Play services client libraries you need to
start developing.</li> start developing.</li>
<li><a href="{@docRoot}preview/google-play-services-preview.zip">Download</a> the Google Play
services reference documentation for this preview release.</li>.
</ol> </ol>
<p>Check out the <a href="/training/building-wearables">Building Apps for Wearables</a> <p>When you're done here, check out the <a href="{@docRoot}training/building-wearables">Building Apps for Wearables</a>
training classes for information on how to build for Wear.</p> training classes for information on how to build for Wear.</p>
</div> </div>
</div> <!-- end jd-content --> </div> <!-- end jd-content -->
</div><!-- end doc-content --> </div><!-- end doc-content -->

View File

@@ -1,5 +1,7 @@
page.title=Material Design page.title=Material Design
page.type=design page.type=design
page.image=images/material.png
page.metaDescription=Learn how to apply material design to your apps.
@jd:body @jd:body

View File

@@ -1,5 +1,7 @@
page.title=Android Studio page.title=Android Studio
page.tags="studio" page.tags="studio"
page.image=images/resource-card-android-studio.png
page.metaDescription=Learn about the new features in the beta release of our new IDE.
@jd:body @jd:body

View File

@@ -1,5 +1,7 @@
page.title=Building Apps for Wearables page.title=Building Apps for Wearables
page.trainingcourse=true page.trainingcourse=true
page.image=wear/images/notifications.png
page.metaDescription=Learn how to build notifications, send and sync data, and use voice actions.
@jd:body @jd:body

View File

@@ -13,7 +13,7 @@ page.title=Creating and Running a Wearable App
</ol> </ol>
<h2>Dependencies and Prerequisites</h2> <h2>Dependencies and Prerequisites</h2>
<ul> <ul>
<li>Android Studio 0.8 or later and Gradle 1.12 or later</li> <li>Android Studio 0.8 or later and Gradle 0.12 or later</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -1,11 +1,13 @@
page.title=Creating Wearable Apps page.title=Creating Wearable Apps
page.image=wear/images/notifications.png
@jd:body @jd:body
<div id="tb-wrapper"> <div id="tb-wrapper">
<div id="tb"> <div id="tb">
<h2>Dependencies and Prerequisites</h2> <h2>Dependencies and Prerequisites</h2>
<ul> <ul>
<li>Android Studio 0.8 or later and Gradle 1.12 or later</li> <li>Android Studio 0.8 or later and Gradle 0.12 or later</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -56,13 +56,16 @@ public void onCreate(Bundle bundle){
} }
</pre> </pre>
</li> </li>
<li>Set the activity's <code>allowEmbedded</code> property to <code>true</code> <li>Define necessary properties for the activity in the Android manifest to allow
in the wearable app's Android manifest. This allows an activity that you create in your wearable the activity to be displayed in the wearable's context stream process. You need to declare the
app to be displayed by the wearable's context stream process.</li> activity to be exportable, be embeddable, and have an empty task affinity. We also recommend
setting the theme to <code>Theme.DeviceDefault.Light</code>. For example:</li>
<pre> <pre>
&lt;activity android:allowEmbedded="true" ... &gt; &lt;activity android:name="com.example.MyDisplayActivity"
... android:exported="true"
&lt;/activity&gt; android:allowEmbedded="true"
android:taskAffinity=""
android:theme="@android:style/Theme.DeviceDefault.Light" /&gt;
</pre> </pre>
</li> </li>
<li>Create a {@link android.app.PendingIntent} for the activity that you want to display. <li>Create a {@link android.app.PendingIntent} for the activity that you want to display.

View File

@@ -65,7 +65,7 @@ Notification twoPageNotification =
.build(); .build();
// Issue the notification // Issue the notification
notificationManager = notificationManager =
NotificationManagerCompat.from(this); NotificationManagerCompat.from(this);
notificationManager.notify(notificationId, twoPageNotification); notificationManager.notify(notificationId, twoPageNotification);
</pre> </pre>