diff options
| author | 2016-04-11 18:09:10 +0000 | |
|---|---|---|
| committer | 2016-04-11 18:09:12 +0000 | |
| commit | bd7c1b4df78237630f1172f4935868d43f114df1 (patch) | |
| tree | 2f0e8543b92a432f62b1f90124170faff52422b2 | |
| parent | d00f0050493cfdfacb0b04c3210d2eabf2144b4e (diff) | |
| parent | eb667fd62628471dd13f8ad0b93710c2e87eb092 (diff) | |
Merge "docs: Updates to Multi-Window/PiP APIs for Preview 2" into mnc-mr-docs
| -rw-r--r-- | docs/html/preview/features/multi-window.jd | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/docs/html/preview/features/multi-window.jd b/docs/html/preview/features/multi-window.jd index 0fe5ecf32cb9..0773b329bd7f 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"] </dd> <dt> - <code>android:minimalSize</code> + <code>android:minimalHeight</code>, <code>android:minimalWidth</code> </dt> <dd> @@ -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> </pre> @@ -308,12 +309,13 @@ android:supportsPictureInPicture=["true" | "false"] <p> 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 - <a href="{@docRoot}preview/setup-sdk.html#docs-dl">N Preview SDK Reference</a>. + <a href="{@docRoot}preview/setup-sdk.html#docs-dl">N Preview SDK + Reference</a>. </p> <dl> <dt> - <code>Activity.inMultiWindow()</code> + <code>Activity.isInMultiWindowMode()</code> </dt> <dd> @@ -321,7 +323,7 @@ android:supportsPictureInPicture=["true" | "false"] </dd> <dt> - <code>Activity.inPictureInPicture()</code> + <code>Activity.isInPictureInPictureMode()</code> </dt> <dd> @@ -329,14 +331,14 @@ android:supportsPictureInPicture=["true" | "false"] <p class="note"> <strong>Note:</strong> Picture-in-picture mode is a special case of - multi-window mode. If <code>myActivity.inPictureInPicture()</code> - returns true, then <code>myActivity.inMultiWindow()</code> also returns - true. + multi-window mode. If <code>myActivity.isInPictureInPictureMode()</code> + returns true, then <code>myActivity.isInMultiWindowMode()</code> also + returns true. </p> </dd> <dt> - <code>Activity.onMultiWindowChanged()</code> + <code>Activity.onMultiWindowModeChanged()</code> </dt> <dd> @@ -347,7 +349,7 @@ android:supportsPictureInPicture=["true" | "false"] </dd> <dt> - <code>Activity.onPictureInPictureChanged()</code> + <code>Activity.onPictureInPictureModeChanged()</code> </dt> <dd> @@ -360,14 +362,14 @@ android:supportsPictureInPicture=["true" | "false"] <p> There are also {@link android.app.Fragment} versions of each of these - methods, for example <code>Fragment.inMultiWindow()</code>. + methods, for example <code>Fragment.isInMultiWindowMode()</code>. </p> <h3 id="entering-pip">Entering picture-in-picture mode</h3> <p> To put an activity in picture-in-picture mode, call the new method - <code>Activity.enterPictureInPicture()</code>. This method has no effect if + <code>Activity.enterPictureInPictureMode()</code>. This method has no effect if the device does not support picture-in-picture mode. For more information, see the <a href="picture-in-picture.html">Picture-in-Picture</a> documentation. </p> |