Updated image sizes and wrapped text around images.

am: 1ce2279423

* commit '1ce2279423a544d431bf6b64f2bfeb1a4617120b':
  Updated image sizes and wrapped text around images.

Change-Id: I61e1bb43a0b32ca80e0875e375c746fc930c85cb
This commit is contained in:
sreevanis
2016-05-31 18:39:38 +00:00
committed by android-build-merger
5 changed files with 28 additions and 22 deletions

View File

@@ -147,7 +147,7 @@ see <a href="{@docRoot}wear/preview/features/complications.html">
<p> If you have a chat messaging app, your notifications should use <p> If you have a chat messaging app, your notifications should use
{@code Notification.MessagingStyle}, which is new in Android 6.0. Wear 2.0 uses {@code Notification.MessagingStyle}, which is new in Android 6.0. Wear 2.0 uses
the chat messages included in a the chat messages included in a
<a href="{docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a> <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a>
notification notification
(see {@code addMessage()}) to provide a rich chat app-like experience in the (see {@code addMessage()}) to provide a rich chat app-like experience in the
expanded notification. expanded notification.

View File

@@ -87,8 +87,9 @@ material design</a> visual changes.
<a href="http://www.google.com/design/spec-wear">Material Design for Android Wear</a>, <a href="http://www.google.com/design/spec-wear">Material Design for Android Wear</a>,
so the user gets an app-like experience. so the user gets an app-like experience.
</p> </p>
<p><img src="{@docRoot}wear/preview/images/expanded_diagram.png" /> </p>
<p><b>Figure 2</b>. An expanded notification with content and actions.</p>
<h3 id="expanded">Expanded notifications</h3>
<p>If the first action in the expanded notification has a <p>If the first action in the expanded notification has a
<a href=" {@docRoot}reference/android/support/v4/app/RemoteInput.html">{@code RemoteInput}</a> <a href=" {@docRoot}reference/android/support/v4/app/RemoteInput.html">{@code RemoteInput}</a>
(e.g., a Reply action), then the choices you set with <a href="http://developer.android.com/reference/android/support/v4/app/RemoteInput.Builder.html#setChoices(java.lang.CharSequence[])">{@code setChoices()}</a> (e.g., a Reply action), then the choices you set with <a href="http://developer.android.com/reference/android/support/v4/app/RemoteInput.Builder.html#setChoices(java.lang.CharSequence[])">{@code setChoices()}</a>
@@ -129,6 +130,8 @@ material design</a> visual changes.
will provide; however be judicious with the amount of detail you include in a will provide; however be judicious with the amount of detail you include in a
notification. notification.
</p> </p>
<img src="{@docRoot}wear/preview/images/expanded_diagram.png" height="340"
style="float:left;margin:10px 20px 0 0" />
<h4>Adding additional content</h4> <h4>Adding additional content</h4>
To show additional content in your expanded notification, see <a href="{@docRoot}training/wearables/notifications/pages.html">Adding Pages to a Notification</a>.</p> To show additional content in your expanded notification, see <a href="{@docRoot}training/wearables/notifications/pages.html">Adding Pages to a Notification</a>.</p>
<p>Additional content pages are stacked vertically in the expanded notification <p>Additional content pages are stacked vertically in the expanded notification
@@ -151,19 +154,25 @@ action in the notification unless a different action is specified using
<p>If you have a chat messaging app, your notifications should use <p>If you have a chat messaging app, your notifications should use
<a href="{@docRoot}preview/features/notification-updates.html#style">{@code Notification.MessagingStyle}</a>, <a href="{@docRoot}preview/features/notification-updates.html#style">{@code Notification.MessagingStyle}</a>,
which is new in Android 6.0. Wear 2.0 uses the chat messages included which is new in Android N. Wear 2.0 uses the chat messages included
in a <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a> notification in a <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a> notification
(see <a href="{@docRoot}preview/features/notification-updates.html#style">{@code addMessage()}</a>) to provide (see <a href="{@docRoot}preview/features/notification-updates.html#style">{@code addMessage()}</a>) to provide
a rich chat app-like experience in the expanded notification. a rich chat app-like experience in the expanded notification.
</p> </p>
<p class="note">Note: <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a> <p class="note">Note: <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a>
expanded notifications require that you have at least version 1.5.0.2861804 of the expanded notifications require that you have at least version 1.5.0.2861804 of the
<a href="https://play.google.com/store/apps/details?id=com.google.android.wearable.app">Android Wear app</a> <a href="https://play.google.com/store/apps/details?id=com.google.android.wearable.app">Android Wear app</a>
on your paired Android phone. That version will be available within the next on your paired Android phone. That version will be available within the next
few weeks in the Play Store. few weeks in the Play Store.
</p> </p>
<h3 id="smart-reply">Smart Reply</h3> <h3 id="smart-reply">Smart Reply</h3>
<p>Wear 2.0 also introduces <i>Smart Reply</i> for <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a> notifications. <img src="{@docRoot}wear/preview/images/messaging_style.png" height="420"
style="float:right;margin:10px 20px 0 0" />
<p>Wear 2.0 also introduces <i>Smart Reply</i>
for <a href="{@docRoot}preview/features/notification-updates.html#style">{@code MessagingStyle}</a> notifications.
Smart Reply provides the user with contextually relevant, touchable choices in Smart Reply provides the user with contextually relevant, touchable choices in
the expanded notification and in {@code RemoteInput}. These augment the fixed the expanded notification and in {@code RemoteInput}. These augment the fixed
list of choices that the developer provides in list of choices that the developer provides in
@@ -175,10 +184,6 @@ expanded notifications require that you have at least version 1.5.0.2861804 of t
you provide users with a fast (single tap), discreet (no speaking aloud), and you provide users with a fast (single tap), discreet (no speaking aloud), and
reliable way to respond to chat messages. reliable way to respond to chat messages.
</p> </p>
<p><img src="{@docRoot}wear/preview/images/messaging_style.png" /></p>
<p><b>Figure 3</b>. The expanded notification includes contextually relevant
Smart Reply responses below the primary action.
</p>
<p>Responses generated by Smart Reply are shown in addition to those set using the <p>Responses generated by Smart Reply are shown in addition to those set using the
<a href="{@docRoot}reference/android/support/v4/app/RemoteInput.Builder.html#setChoices(java.lang.CharSequence[])">{@code setChoices()}</a> method. <a href="{@docRoot}reference/android/support/v4/app/RemoteInput.Builder.html#setChoices(java.lang.CharSequence[])">{@code setChoices()}</a> method.
@@ -222,7 +227,8 @@ Notification noti = new NotificationCompat.Builder()
.setSmallIcon(R.drawable.new_message) .setSmallIcon(R.drawable.new_message)
.setLargeIcon(aBitmap) .setLargeIcon(aBitmap)
// 2) set the style to MessagingStyle // 2) set the style to MessagingStyle
.setStyle(new NotificationCompat.MessagingStyle(resources.getString(R.string.reply_name)).addMessage(messages[0].getText(), messages[0].getTime(), messages[0].getSender()) .setStyle(new NotificationCompat.MessagingStyle(resources.getString(R.string.reply_name))
.addMessage(messages[0].getText(), messages[0].getTime(), messages[0].getSender())
.addMessage(messages[1].getText(), messages[1].getTime(), messages[1].getSender())) .addMessage(messages[1].getText(), messages[1].getTime(), messages[1].getSender()))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB