From f506485b517ede9ee2dcaa1f2bd5aa474e68f263 Mon Sep 17 00:00:00 2001 From: Bert McMeen Date: Thu, 14 Jul 2016 16:11:18 -0700 Subject: [PATCH] Docs: Behavior changes such as activity dismissal Bug: 29447512 Change-Id: I5360212eab317fab5198afd36780c2d3cfe4d255 --- docs/html/wear/preview/_book.yaml | 3 ++ docs/html/wear/preview/behavior-changes.jd | 63 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 docs/html/wear/preview/behavior-changes.jd diff --git a/docs/html/wear/preview/_book.yaml b/docs/html/wear/preview/_book.yaml index 3bea2fde22d10..a231fb5daa246 100644 --- a/docs/html/wear/preview/_book.yaml +++ b/docs/html/wear/preview/_book.yaml @@ -30,5 +30,8 @@ toc: - title: License Agreement path: /wear/preview/license.html +- title: Behavior Changes + path: /wear/preview/behavior-changes.html + - title: Support and Release Notes path: /wear/preview/support.html diff --git a/docs/html/wear/preview/behavior-changes.jd b/docs/html/wear/preview/behavior-changes.jd new file mode 100644 index 0000000000000..02146220dbddf --- /dev/null +++ b/docs/html/wear/preview/behavior-changes.jd @@ -0,0 +1,63 @@ +page.title=Behavior Changes +meta.keywords="preview", "wear" +page.tags="preview", "developer preview" + +@jd:body + +

+ Along with new features, Android Wear 2.0 includes a variety of behavior + changes. This document highlights some of the key changes to + account for in your apps. +

+ +

+ If you have previously published an app for Android Wear, be aware that + your app might be affected by these changes in the platform. +

+ +
+
+ +

In this document

+ + + +
+
+ +

Activity Dismissal

+ +

+ Starting in Android Wear 2.0, + users dismiss apps and activities by using + the power (stem) button on the watch. + Long-pressing to dismiss an app is no longer suggested. + Additionally, developers should not implement the + long-press for dismissing + full screen + activities (panning or immersive activities such as Google Maps). +

+ +

+ In Android Wear 2.0, the power button of the watch is used + to navigate back in the + back stack, + including for full-screen panning activities. + Before Android Wear 2.0, the DismissOverlayView class was + used to implement the long-press for a user to dismiss an app. + (The DismissOverlayView class was added to a layout + for full-screen drawing and to draw over the other views.) + Developers should test the power button for going back + between an app's activities and for exiting an app. +

+ +

+ Additionally, swipe for exiting an app or activity is not available. + Developers can consider how their user interfaces + can be enhanced with swipe-left and swipe-right, + in a way similar to the functionality described for + navigation + drawers. +