Home | History | Annotate | Download | only in ui
      1 page.title=
      2 page.metaDescription=Android N 
      3 page.keywords="multi-window", "android N", "split screen", "free-form"
      4 
      5 @jd:body
      6 
      7 <div id="tb-wrapper">
      8   <div id="tb">
      9     <h2></h2>
     10       <ol>
     11         <li><a href="#overview"></a></li>
     12         <li><a href="#lifecycle"></a></li>
     13         <li><a href="#configuring">
     14 </a></li>
     15         <li><a href="#running"></a></li>
     16         <li><a href="#testing"></a></li>
     17       </ol>
     18     <h2></h2>
     19       <ol>
     20         <li><a class="external-link" href="https://github.com/googlesamples/android-MultiWindowPlayground"> Playground 
     21 </a></li>
     22       </ol>
     23   </div>
     24 </div>
     25 
     26 <p>
     27   Android N 
     28 
     29 <em></em>
     30 <em></em>
     31 
     32 </p>
     33 
     34 <p>
     35    N Preview SDK 
     36 
     37 
     38 
     39 
     40 </p>
     41 
     42 <h2 id="overview"></h2>
     43 
     44 <p>
     45   Android N 
     46 
     47 
     48 
     49 </p>
     50 
     51 <ul>
     52   <li> Android N 
     53 
     54 
     55 
     56   </li>
     57 
     58   <li> Android N  Nexus Player <a href="picture-in-picture.html"></a>
     59 
     60 
     61 
     62   </li>
     63 
     64   <li>
     65 
     66 
     67 
     68   </li>
     69 </ul>
     70 
     71 <img src="{@docRoot}images/android-7.0/mw-splitscreen.png" alt="" width="650" srcset="{@docRoot}images/android-7.0/mw-splitscreen.png 1x,
     72     {@docRoot}images/android-7.0/mw-splitscreen_2x.png 2x," id="img-split-screen" />
     73 <p class="img-caption">
     74   <strong> 1.</strong> 
     75 </p>
     76 
     77 <p>
     78   
     79 </p>
     80 
     81 <ul>
     82   <li><a href="{@docRoot}guide/components/recents.html"></a>
     83 
     84 
     85 
     86   </li>
     87 
     88   <li>
     89 
     90 
     91   </li>
     92 </ul>
     93 
     94 <p>
     95   <a href="{@docRoot}guide/topics/ui/drag-drop.html"></a>
     96 
     97 ()
     98 
     99 </p>
    100 
    101 <h2 id="lifecycle"></h2>
    102 
    103 <p>
    104   <a href="{@docRoot}training/basics/activity-lifecycle/index.html"></a>
    105 
    106 </p>
    107 
    108 <p>
    109   
    110 <em></em>
    111   
    112   
    113 
    114 
    115 
    116 </p>
    117 
    118 <p class="note">
    119   <strong></strong>
    120 
    121 
    122  {@link android.app.Activity#onPause onPause()} 
    123 <em></em>
    124 
    125    {@link android.app.Activity#onStop
    126   onStop()}, and resume playback in {@link android.app.Activity#onStart
    127   onStart()} 
    128 </p>
    129 
    130 <p>
    131   <a href="{@docRoot}guide/topics/resources/runtime-changes.html"></a>
    132 
    133 
    134 
    135 
    136 <a href="{@docRoot}guide/topics/resources/runtime-changes.html"></a>
    137 
    138 
    139 
    140 </p>
    141 
    142 <p>
    143   <a href="{@docRoot}guide/topics/resources/runtime-changes.html"></a>
    144 
    145  {@link
    146   android.R.attr#windowBackground windowBackground} 
    147   <code>windowBackgroundFallback</code> 
    148 
    149 </p>
    150 
    151 <h2 id="configuring"></h2>
    152 
    153 <p>
    154    Android N 
    155 
    156 
    157   
    158 
    159 </p>
    160 
    161 <p class="note">
    162   <strong></strong> Android N  SDK 
    163 
    164 
    165 
    166 <em></em>
    167 
    168 
    169 </p>
    170 
    171 <h4 id="resizeableActivity">android:resizeableActivity</h4>
    172 <p>
    173    <code>&lt;activity&gt;</code> 
    174   <code>&lt;application&gt;</code> 
    175 
    176 </p>
    177 
    178 <pre>
    179 android:resizeableActivity=["true" | "false"]
    180 </pre>
    181 
    182 <p>
    183    true
    184  false
    185  false
    186 
    187 
    188 </p>
    189 
    190 <p>
    191    Android N  true
    192 
    193 </p>
    194 
    195 <h4 id="supportsPictureInPicture">android:supportsPictureInPicture</h4>
    196 
    197 <p>
    198    <code>&lt;activity&gt;</code> 
    199  <code>android:resizeableActivity</code>  false
    200 
    201 </p>
    202 
    203 <pre>
    204 android:supportsPictureInPicture=["true" | "false"]
    205 </pre>
    206 
    207 <h3 id="layout"></h3>
    208 
    209 <p>
    210    Android N<code>&lt;layout&gt;</code> 
    211 
    212 
    213 </p>
    214 
    215 <dl>
    216   <dt>
    217     <code>android:defaultWidth</code>
    218   </dt>
    219 
    220   <dd>
    221     
    222   </dd>
    223 
    224   <dt>
    225     <code>android:defaultHeight</code>
    226   </dt>
    227 
    228   <dd>
    229     
    230   </dd>
    231 
    232   <dt>
    233     <code>android:gravity</code>
    234   </dt>
    235 
    236   <dd>
    237     
    238     {@link android.view.Gravity} 
    239   </dd>
    240 
    241   <dt>
    242     <code>android:minimalSize</code>
    243   </dt>
    244 
    245   <dd>
    246     
    247 
    248 
    249 
    250   </dd>
    251 </dl>
    252 
    253 <p>
    254   
    255 
    256 
    257 </p>
    258 
    259 <pre>
    260 &lt;activity android:name=".MyActivity"&gt;
    261     &lt;layout android:defaultHeight="500dp"
    262           android:defaultWidth="600dp"
    263           android:gravity="top|end"
    264           android:minimalSize="450dp" /&gt;
    265 &lt;/activity&gt;
    266 </pre>
    267 
    268 <h2 id="running"></h2>
    269 
    270 <p>
    271   Android N 
    272 
    273 </p>
    274 
    275 <h3 id="disabled-features"></h3>
    276 
    277 <p>
    278   
    279 
    280 
    281 
    282 <ul>
    283   <li><a href="{@docRoot}training/system-ui/index.html"> UI</a>
    284   
    285 
    286   </li>
    287 
    288   <li> <code><a href=
    289   "{@docRoot}guide/topics/manifest/activity-element.html#screen"
    290   >android:screenOrientation</a></code> 
    291   </li>
    292 </ul>
    293 
    294 <h3 id="change-notification"></h3>
    295 
    296 <p>
    297    {@link android.app.Activity}
    298   
    299   <a href="{@docRoot}preview/setup-sdk.html#docs-dl">N Preview SDK </a>
    300 </p>
    301 
    302 <dl>
    303   <dt>
    304     <code>Activity.inMultiWindow()</code>
    305   </dt>
    306 
    307   <dd>
    308     
    309   </dd>
    310 
    311   <dt>
    312     <code>Activity.inPictureInPicture()</code>
    313   </dt>
    314 
    315   <dd>
    316     
    317 
    318     <p class="note">
    319       <strong></strong>
    320  <code>myActivity.inPictureInPicture()</code>
    321        true <code>myActivity.inMultiWindow()</code>  true
    322 
    323     </p>
    324   </dd>
    325 
    326   <dt>
    327     <code>Activity.onMultiWindowChanged()</code>
    328   </dt>
    329 
    330   <dd>
    331     
    332  true  false
    333 
    334 
    335   </dd>
    336 
    337   <dt>
    338     <code>Activity.onPictureInPictureChanged()</code>
    339   </dt>
    340 
    341   <dd>
    342     
    343  true  false
    344 
    345 
    346   </dd>
    347 </dl>
    348 
    349 <p>
    350    {@link android.app.Fragment} 
    351  <code>Fragment.inMultiWindow()</code>
    352 </p>
    353 
    354 <h3 id="entering-pip"></h3>
    355 
    356 <p>
    357   
    358   <code>Activity.enterPictureInPicture()</code>
    359 <a href="picture-in-picture.html"></a>
    360 
    361 </p>
    362 
    363 <h3 id="launch"></h3>
    364 
    365 <p>
    366   
    367 
    368   <code>Intent.FLAG_ACTIVITY_LAUNCH_TO_ADJACENT</code>
    369 
    370 
    371 </p>
    372 
    373 <ul>
    374   <li>
    375 
    376 
    377 
    378   </li>
    379 
    380   <li>
    381   </li>
    382 </ul>
    383 
    384 <p>
    385   
    386   <code>ActivityOptions.setLaunchBounds()</code>
    387 
    388 
    389 </p>
    390 
    391 <p class="note">
    392   <strong></strong>
    393 
    394 
    395 
    396 </p>
    397 
    398 <h3 id="dnd"></h3>
    399 
    400 <p>
    401   <a href="{@docRoot}guide/topics/ui/drag-drop.html"></a>
    402 
    403 ()
    404 
    405 
    406 </p>
    407 
    408 <p>
    409   N Preview SDK  <a href="{@docRoot}reference/android/view/package-summary.html"><code>android.view</code></a>
    410    <a href="{@docRoot}preview/setup-sdk.html#docs-dl">N Preview SDK </a>
    411 
    412 
    413 </p>
    414 
    415 <dl>
    416   <dt>
    417     <code>android.view.DropPermissions</code>
    418   </dt>
    419 
    420   <dd>
    421     
    422 
    423   </dd>
    424 
    425   <dt>
    426     <code>View.startDragAndDrop()</code>
    427   </dt>
    428 
    429   <dd>
    430     {@link android.view.View#startDrag View.startDrag()} 
    431     <code>View.DRAG_FLAG_GLOBAL</code>
    432  URI 
    433     <code>View.DRAG_FLAG_GLOBAL_URI_READ</code> 
    434     <code>View.DRAG_FLAG_GLOBAL_URI_WRITE</code>
    435 
    436   </dd>
    437 
    438   <dt>
    439     <code>View.cancelDragAndDrop()</code>
    440   </dt>
    441 
    442   <dd>
    443     
    444 
    445   </dd>
    446 
    447   <dt>
    448     <code>View.updateDragShadow()</code>
    449   </dt>
    450 
    451   <dd>
    452     
    453 
    454   </dd>
    455 
    456   <dt>
    457     <code>Activity.requestDropPermissions()</code>
    458   </dt>
    459 
    460   <dd>
    461      {@link android.view.DragEvent}  {@link
    462     android.content.ClipData}  URI
    463   </dd>
    464 </dl>
    465 
    466 <h2 id="testing"></h2>
    467 
    468 <p>
    469    Android N  Android N 
    470 
    471 
    472 </p>
    473 
    474 <h3 id="configuring"></h3>
    475 
    476 <p>
    477    Android N
    478 
    479 </p>
    480 
    481 <h3 id="test-non-n"> N Preview SDK </h3>
    482 
    483 <p>
    484    N Preview SDK 
    485 
    486 
    487 </p>
    488 
    489 <p>
    490    Android N 
    491 
    492 
    493 
    494 </p>
    495 
    496 <p>
    497   
    498 
    499 
    500 </p>
    501 
    502 <h3 id="test-mw"></h3>
    503 
    504 <p>
    505    N Preview SDK 
    506 
    507 
    508 </p>
    509 
    510 <ul>
    511   <li> [] 
    512 
    513   </li>
    514 
    515   <li>
    516  [] 
    517 
    518 
    519   </li>
    520 
    521   <li>
    522    UI 
    523 
    524   </li>
    525 
    526   <li>
    527 
    528 
    529   </li>
    530 
    531   <li> UI
    532 
    533 
    534   </li>
    535 </ul>
    536 
    537 <h4 id="test-checklist"></h4>
    538 
    539 <p>
    540   
    541 
    542 
    543 </p>
    544 
    545 <ul>
    546   <li>
    547   </li>
    548 
    549   <li>
    550 
    551 
    552 
    553   </li>
    554 
    555   <li>
    556 
    557 
    558 
    559 
    560   </li>
    561 
    562   <li>
    563 <a href="{@docRoot}tools/debugging/debugging-memory.html"> RAM </a>
    564 
    565 
    566   </li>
    567 
    568   <li>
    569  UI 
    570 
    571   </li>
    572 </ul>
    573 
    574 <h3 id="test-disabled-mw"></h3>
    575 
    576 <p>
    577   
    578   <code>android:resizableActivity="false"</code>  Android N 
    579 
    580 
    581 
    582 </p>
    583