From 322cf5c44f3e1329f51014ec3fa45f1c322d3d37 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Wed, 26 Mar 2014 15:26:50 -0700 Subject: [PATCH] fix image sizes in design guide and code snippet bug bug: 13644390 bug: 13626796 Change-Id: Ie5bb42c78190da6b6306c6ef6cc715a1ea33ffaa --- docs/html/wear/design/index.html | 6 ++++-- docs/html/wear/notifications/remote-input.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/html/wear/design/index.html b/docs/html/wear/design/index.html index 995249006117..53ea1f3e4f51 100644 --- a/docs/html/wear/design/index.html +++ b/docs/html/wear/design/index.html @@ -433,7 +433,8 @@ By providing a smart connection to the rest of the world while respecting the us

Actions appear to the right of your notification, allowing the user to act on your notification. Up to three actions are permitted. The most-used action should be placed first, so that it is a single swipe away from your content.

-

Actions consist of an icon and a caption. Icons should be PNG files, white on transparent background, 64 × 64 DP. Captions should be verb-driven and short, and will be automatically truncated at one line.

+

Actions consist of an icon and a caption. Icons should be PNG files, white on transparent background, 32 × 32 dp (with 8 dp padding), as specified in the Iconography design guide +for the action bar icons. Captions should be verb-driven and short, and will be automatically truncated at one line.

Actions are optional. Many useful notifications will not need to include actions at all.

@@ -452,7 +453,8 @@ Notifications for Android Wear.

Images appear behind cards in the stream, providing context and additional glanceability. Your image should support the core message of the notification; for example, a card about a sports team could include the team color and logo; a message from a contact should display that person's profile photo.

-

Bear in mind that the card will partially cover the lower part of the image. Images should be at least 320 × 320 pixels at hdpi. Image backgrounds move when horizontally swiped, so landscape-oriented images work better on notifications that include pages or actions.

+

Bear in mind that the card will partially cover the lower part of the image. Images should be sized as +appropriate for the notification appearance on handsets, which is 64 x 64 dp. Image backgrounds move when horizontally swiped, so landscape-oriented images work better on notifications that include pages or actions.

To add large images, use setLargeIcon() with any notification, as shown in Creating diff --git a/docs/html/wear/notifications/remote-input.html b/docs/html/wear/notifications/remote-input.html index c8f6621f9753..3d869b5c6ff2 100644 --- a/docs/html/wear/notifications/remote-input.html +++ b/docs/html/wear/notifications/remote-input.html @@ -489,7 +489,7 @@ RemoteInput remoteInput = new RemoteInput.Builder(EXTRA_VOICE_REPLY) // Create wearable notification and add remote input Notification replyNotification = new WearableNotifications.Builder(replyNotificationBuilder) - .addRemoteInputForContentIntent(replyAction) + .addRemoteInputForContentIntent(remoteInput) .build(); -- 2.11.0