Download File
Download Project
Settings
Line Wrap
Themes
default
ambiance
bespin
dracula
eclipse
material
mbo
mdn-like
neat
solarized dark
ttcn
zenburn
strings.xml
MultiWindow Playground
Multiwindow Playground
This sample demonstrates the use of the multi-window API available in Android N.\nFirst, switch this app into
split-screen mode
(for example by long-pressing the recents button). Each button below starts a new activity with special flags.\n
See the files MainActivity.java and AndroidManifest.xml for implementation details.
The buttons below demonstrate features only available in
free-form multi-window mode
.
Start basic, default Activity
Start unresizable Activity
Start Activity adjacent
Start Activity with minimum size
Start Activity with launch bounds
Start activity that handles configuration changes.
This Activity was launched in a new task without any additional flags or options.
This activity is set as unresizable in the AndroidManifest. This is done by setting the
resizeableActivity
property to
false
for this activity.
This activity was launched with the flag
Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT
.\n\nIf possible, it has been launched into the adjacent area from the activity that started it.\nThis is only a hint to the system. For example - if the application is not in split-screen mode, it will be launched full-screen. If it is launched in the same task as the initial Activity, it will retain its activity properties and its location.
This activity handles configuration changes itself.\n\nIn the AndroidManifest, this activity has been configured to receive callbacks for
screenSize|smallestScreenSize|screenLayout|orientation
changes.\nTry resizing this activity to different sizes to see which configuration properties change.
This activity has been launched with a launch bounds set in its intent. The bounds define the area into which the activity should be launched. \n\nNote that this flag only applies in free-form mode.
This activity has a minimum size.\nIt was launched into the top/end corner with a a default size of 750dp by 500dp, with a minimum size of 750dp as defined in its
layout attribute in the AndroidManifest definition
. \n\nNote that this Activity was launched in a different task, otherwise the properties from the Activity that launched this one would have been applied.