• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Window
2
3### Introduction
4
5This sample shows how to create a window and display an app in a floating window or split-screen mode.
6
7### How to Use
8
91. Start the sample app, touch a video to play it, and touch the video again to pause the playback.
10
112. On the top of the app, slide down to display the window.
12
133. Touch the split-screen icon to display the app in split-screen mode. Touch the icon again to exit the split-screen mode.
14
15![splitScreen.gif](splitScreen.gif)
16
174. Touch the floating icon to display the app in a floating window. Touch the icon again to cancel the floating display.
18
19![hangingWindow.gif](hangingWindow.gif)
20
215. Touch the minus sign icon to minimize the app. Touch the app to display it again.
22
23![minimize.gif](minimize.gif)
24
256. Touch the close icon to close the app.
26
27### Constraints
28
291. This sample can only be run on standard-system devices.
30
312. This sample demonstrates the stage model, which supports only API version 9.
32
333. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.
34