diff --git a/docs/html/preview/features/multi-window.jd b/docs/html/preview/features/multi-window.jd index 0fe5ecf32cb9f..0773b329bd7fb 100644 --- a/docs/html/preview/features/multi-window.jd +++ b/docs/html/preview/features/multi-window.jd @@ -251,7 +251,7 @@ android:supportsPictureInPicture=["true" | "false"]
- android:minimalSize + android:minimalHeight, android:minimalWidth
@@ -273,7 +273,8 @@ android:supportsPictureInPicture=["true" | "false"] <layout android:defaultHeight="500dp" android:defaultWidth="600dp" android:gravity="top|end" - android:minimalSize="450dp" /> + android:minimalHeight="450dp" + android:minimalWidth="300dp" /> </activity> @@ -308,12 +309,13 @@ android:supportsPictureInPicture=["true" | "false"]

The following new methods have been added to the {@link android.app.Activity} class to support multi-window display. For details on each method, see the - N Preview SDK Reference. + N Preview SDK + Reference.

- Activity.inMultiWindow() + Activity.isInMultiWindowMode()
@@ -321,7 +323,7 @@ android:supportsPictureInPicture=["true" | "false"]
- Activity.inPictureInPicture() + Activity.isInPictureInPictureMode()
@@ -329,14 +331,14 @@ android:supportsPictureInPicture=["true" | "false"]

Note: Picture-in-picture mode is a special case of - multi-window mode. If myActivity.inPictureInPicture() - returns true, then myActivity.inMultiWindow() also returns - true. + multi-window mode. If myActivity.isInPictureInPictureMode() + returns true, then myActivity.isInMultiWindowMode() also + returns true.

- Activity.onMultiWindowChanged() + Activity.onMultiWindowModeChanged()
@@ -347,7 +349,7 @@ android:supportsPictureInPicture=["true" | "false"]
- Activity.onPictureInPictureChanged() + Activity.onPictureInPictureModeChanged()
@@ -360,14 +362,14 @@ android:supportsPictureInPicture=["true" | "false"]

There are also {@link android.app.Fragment} versions of each of these - methods, for example Fragment.inMultiWindow(). + methods, for example Fragment.isInMultiWindowMode().

Entering picture-in-picture mode

To put an activity in picture-in-picture mode, call the new method - Activity.enterPictureInPicture(). This method has no effect if + Activity.enterPictureInPictureMode(). This method has no effect if the device does not support picture-in-picture mode. For more information, see the Picture-in-Picture documentation.