WO2023051354A1 - 一种分屏显示方法及电子设备 - Google Patents
一种分屏显示方法及电子设备 Download PDFInfo
- Publication number
- WO2023051354A1 WO2023051354A1 PCT/CN2022/120256 CN2022120256W WO2023051354A1 WO 2023051354 A1 WO2023051354 A1 WO 2023051354A1 CN 2022120256 W CN2022120256 W CN 2022120256W WO 2023051354 A1 WO2023051354 A1 WO 2023051354A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- window
- windows
- screen
- user
- split
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000001960 triggered effect Effects 0.000 claims abstract description 46
- 230000004044 response Effects 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 21
- 238000003860 storage Methods 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 58
- 238000013461 design Methods 0.000 description 29
- 230000006870 function Effects 0.000 description 24
- 238000004891 communication Methods 0.000 description 18
- 238000007726 management method Methods 0.000 description 18
- 238000012545 processing Methods 0.000 description 16
- 238000010295 mobile communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000006073 displacement reaction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Definitions
- the present application relates to the field of terminal display, in particular to a split-screen display method and electronic equipment.
- Large-screen devices can not only bring users a more comfortable viewing experience, but also provide a variety of display functions, such as multi-tasking collaboration, split screen, etc., to improve users' visual experience and viewing efficiency.
- Split-screen refers to displaying multiple windows at the same time by separating and arranging windows on a single screen, so that users can browse and operate multiple windows at the same time.
- the current split-screen function requires the user to manually drag the window to a suitable position, and the user manually adjusts the size of the window, so that multiple windows can be displayed on the current screen at the same time. It can be seen that the current split-screen operation steps are relatively long, and the interactive behavior is unnatural.
- the present application provides a split-screen display method and electronic equipment, which are used to simplify user operations and realize the split-screen display function conveniently and quickly.
- an embodiment of the present application provides a split-screen display method, and the method is applied to an electronic device.
- the method includes:
- the electronic device displays multiple windows on the display screen; in response to a user-triggered selection operation, the electronic device shrinks the multiple windows respectively; in response to a user-triggered movement operation on the reduced first window, the electronic device moves the A first window, wherein the first window includes at least one of the plurality of windows; when the moving operation ends, the electronic device displays the plurality of windows in split screens.
- the electronic device when the electronic device displays multiple windows on the display screen, the user can trigger the selection operation, and the electronic device reduces the size of the multiple windows, indicating that it enters the preview mode. At this time, the user triggers the moving operation on the first window again, Therefore, the positional relationship of multiple windows is changed, and the electronic device can display multiple windows on a split screen when the moving operation ends.
- a convenient and quick split-screen display method is provided, and multiple windows on the display screen can be split-screen displayed without complex operations by the user, thereby improving user experience.
- the respectively reducing the multiple windows includes: respectively reducing the multiple windows to a preset size.
- the reducing the plurality of windows respectively includes: taking the touch point at which the user triggers the selection operation as a pivot point, respectively reducing the plurality of windows.
- the electronic device After the electronic device detects the selected operation triggered by the user, it can reduce multiple windows to a preset size, and can also use the touch point that the user triggers the selected operation as the pivot point to reduce multiple windows, so as to flexibly adjust the preview The size and position of each window in the mode.
- the selecting operation includes: the user simultaneously or separately performs a first operation on each of the multiple windows.
- the first operation includes a long-press gesture operation, a single-click gesture operation, or a double-click gesture operation.
- the embodiment of the present application provides various shortcut gesture operations that can be detected by the electronic device to trigger the selection operation, so as to facilitate the user to trigger the split-screen function and improve the user experience.
- the moving operation for the first reduced window is the user's After the selection operation is triggered, no lifting operation is performed on the first window, and a drag gesture operation is performed on the first window.
- the user can trigger a selection operation by performing a long-press gesture operation on each of multiple windows, and then, when the user does not perform a lift operation, continue to perform a drag gesture operation on the first window to move the first window
- the electronic device can display multiple windows in split screens in response to the selection and movement operations triggered continuously by the user.
- the split-screen display of the plurality of windows includes: when every two adjacent windows in the plurality of windows do not overlap and the distance between two adjacent sides is less than or equal to the first Threshold, or every two adjacent windows in the multiple windows overlap and the horizontal length or vertical length of the overlapping area is less than or equal to the second threshold, or every two adjacent windows in the multiple windows overlap and the overlapping area
- the display area of the display screen is divided into multiple sub-areas, wherein the multiple sub-areas correspond to the multiple windows one by one, and the corresponding windows are displayed on each sub-area.
- the electronic device can determine to divide the display area of the display screen into multiple sub-areas and display multiple windows according to the positional relationship between every two windows in the multiple windows after the mobile operation, so that the user can display multiple windows on the display screen. View the content of multiple windows at the same time to improve user experience.
- the dividing the display area of the display screen into multiple sub-areas includes: when the horizontal length or vertical length of the overlapping area is greater than the fourth threshold, or the area of the overlapping area is greater than
- the split screen ratio is determined according to the positional relationship of the plurality of windows, and the display area of the display screen is divided into the plurality of sub-regions according to the split screen ratio; wherein, the fourth threshold is smaller than the specified the second threshold, and the fifth threshold is smaller than the third threshold.
- the electronic device can determine the split screen ratio according to the positions of multiple windows. , so that corresponding windows are displayed in sub-regions of different sizes to meet the personalized needs of users.
- the determining the split-screen ratio according to the positional relationship of the multiple windows includes: determining the target hierarchical relationship of the multiple windows, and The positional relationship determines the split-screen ratio; wherein, the split-screen ratio is related to a horizontal length ratio, a vertical length ratio, or an area ratio of non-covered areas of the plurality of windows.
- the electronic device determines the split-screen ratio, it can first determine the target hierarchical relationship of multiple windows, and the target hierarchical relationship can be used to indicate the layer positions of multiple windows when they are displayed on the display screen, such as window A and
- the target hierarchical relationship of window B may be that window A is at the top level, and window B is at the bottom level.
- the electronic device can determine the split-screen ratio according to the target hierarchical relationship and positional relationship of the multiple windows, and the split-screen ratio can be the ratio of the horizontal length or the vertical
- the length ratio or area ratio is related, so that when multiple windows are displayed on a split screen, the size of the multiple sub-areas corresponds to the size of the multiple windows after the user triggers the movement operation, meeting the needs of the user to view different windows in areas of different sizes.
- the determining the target hierarchical relationship of the plurality of windows includes: using the hierarchical relationship of the plurality of windows when the user does not trigger the selection operation as the target hierarchical relationship; or according to The distance between the center point of each of the multiple windows and the bottom or top of the display screen determines the target hierarchical relationship; or determines the target hierarchical relationship according to a preset rule.
- the electronic device can determine the hierarchical relationship among the multiple windows according to the various methods provided above, flexibly determine whether the multiple windows cover each other, and then determine the split-screen ratio.
- the split-screen display of the plurality of windows includes: when every two adjacent windows in the plurality of windows overlap and the horizontal length or vertical length of the overlapping area is greater than a second threshold, or When every two adjacent windows in the plurality of windows overlap and the area of the overlapping area is greater than the third threshold, the plurality of windows are combined as a window stack and the window stack combination is displayed; wherein the window stack The size of any window in the combination is the same as the display area of the display.
- the electronic device can display a stacked window combination on the display screen.
- the stacked window combination includes multiple windows, and the size of each window is the same as the display area of the display screen. switch.
- the split-screen display of the multiple windows further comprising: responding to a user-triggered maximize operation on the second window, stacking and combining the multiple windows as one window, and displaying the stacked combination of windows; wherein, the second window is any one of the plurality of windows, and the size of any window in the stacked window is the same as the size of the display area of the display screen.
- the multiple windows can be displayed as a stacked combination of windows, thus Flexible switching of split-screen display methods.
- after the split-screen display of the plurality of windows further includes: moving the target window in response to a user-triggered movement operation for the target window; or responding to the user-triggered movement operation for the The scaling operation of the target window is to adjust the size of the target window; wherein, the target window is a window composed of the multiple windows displayed on a split screen.
- the multiple windows can form a target window, and the target window can be moved or resized as a whole.
- the method further includes: in response to a user-triggered minimization operation on the target window, exiting and displaying the target window, and keeping an icon corresponding to the target window in the taskbar; Or in response to a user-triggered maximization operation for the target window, adjust the size of the target window to the size of the display area of the display screen; or in response to a user-triggered exit operation for the target window, adjust the size of the target window.
- the electronic device when the electronic device displays the target window on the display screen, it can trigger a minimize operation, a maximize operation or an exit operation on the target window, and control the target window as a whole, thereby flexibly displaying the target window.
- the multiple windows are two windows.
- an embodiment of the present application provides a split-screen display device, the device includes a plurality of functional modules; the plurality of functional modules interact to implement the method in the above first aspect and its various implementation manners.
- the multiple functional modules can be implemented based on software, hardware or a combination of software and hardware, and the multiple functional modules can be combined or divided arbitrarily based on specific implementations.
- an embodiment of the present application provides an electronic device, including at least one processor and at least one memory, where computer program instructions are stored in the at least one memory, and when the at least one processor executes the computer program instructions, the The electronic device executes the method provided in the first aspect above.
- the embodiment of the present application further provides a computer program, which, when the computer program is run on a computer, causes the computer to execute the method provided in any one of the above aspects.
- the embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes any one of the above-mentioned aspects provided method.
- the embodiment of the present application further provides a chip, the chip is used to read a computer program stored in a memory, and execute the method provided in any one of the above aspects.
- an embodiment of the present application further provides a chip system, where the chip system includes a processor, configured to support a computer device to implement the method provided in any one of the above aspects.
- the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
- the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
- FIG. 1 is a schematic diagram of a split-screen display interface provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of a split-screen function
- FIG. 3 is a schematic diagram of yet another split-screen function
- FIG. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- FIG. 5 is a software structural block diagram of an electronic device provided in an embodiment of the present application.
- FIG. 6 is a schematic diagram of a user triggering a long-press gesture operation provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of a window provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of another window provided by the embodiment of the present application.
- FIG. 9 is a schematic diagram of another window provided by the embodiment of the present application.
- FIG. 10 is a schematic diagram of a window provided by the embodiment of the present application.
- FIG. 11 is a schematic diagram of a window position provided by an embodiment of the present application.
- FIG. 12 is a flow chart of a split-screen display method provided by an embodiment of the present application.
- FIG. 13 is a schematic diagram of a window position relationship provided by an embodiment of the present application.
- FIG. 14 is a schematic diagram of another window position relationship provided by the embodiment of the present application.
- FIG. 15 is a schematic diagram of a screen of an electronic device provided by an embodiment of the present application.
- FIG. 16 is a schematic diagram of a split-screen display provided by an embodiment of the present application.
- FIG. 17 is a schematic diagram of a hierarchical relationship between windows provided by an embodiment of the present application.
- Fig. 18 is a schematic diagram of the distance between the center point of the window and the bottom of the screen provided by the embodiment of the present application;
- FIG. 19 is a schematic diagram of the positional relationship between two windows after the user releases the operation provided by the embodiment of the present application.
- Fig. 20 is a schematic diagram of a stacked combination of windows provided by the embodiment of the present application.
- Fig. 21 is a schematic diagram of a multi-task management interface provided by the embodiment of the present application.
- Fig. 22 is a schematic diagram of a screen provided by the embodiment of the present application.
- FIG. 23 is a schematic diagram of a target window provided by an embodiment of the present application.
- FIG. 24 is a schematic diagram of a target window provided by an embodiment of the present application.
- FIG. 25 is a schematic diagram of a minimized target window provided by an embodiment of the present application.
- FIG. 26 is a schematic diagram of a maximized target window provided by the embodiment of the present application.
- Fig. 27 is a schematic diagram of exiting split-screen display provided by the embodiment of the present application.
- FIG. 28 is a schematic diagram of a target window provided by an embodiment of the present application.
- the electronic device can simultaneously display multiple windows, and the multiple windows can be multiple windows of the same application, or multiple windows of different applications.
- large-screen (large-size screen) devices have also been more widely used in daily work and entertainment scenarios.
- large screens provides more possibilities for display functions of electronic devices.
- electronic devices can provide display functions such as multi-tasking collaboration and split screen.
- FIG. 1 is a schematic diagram of a split-screen display interface provided in an embodiment of the present application.
- the display interface includes window A, window B and window C, and the user can simultaneously browse the content displayed in window A, window B and window C, and at the same time, the user can trigger operations in each window.
- the split-screen function of an electronic device mainly has the following two implementation methods:
- Mode 1 The user manually adjusts the positions and sizes of multiple windows, so as to realize simultaneous display of multiple windows on the same screen.
- multiple windows can be displayed on the same screen, and the user can manually adjust the position and size of each window so that the window fits the edge of the screen.
- the user can adjust window A to occupy 1/2 of the screen, and adjust window B, window C, and window D to be located in other display areas of the screen.
- window C and window D shown in Figure 2 when multiple windows overlap, the user can manually adjust the stacking relationship of the windows, for example, when window C is at the top layer of window D, the user can click window D to adjust it so that window D is located at The top level of window C.
- Mode 2 The user presses and holds the maximize button of the window to trigger the window to be displayed in the 1/2 display area of the current screen.
- window A automatically adapts to the 1/2 display area on the left side of the screen, and the remaining windows, such as window B and window C, are displayed in the 1/2 display area on the right side of the screen.
- window B expands to fill 1/2 of the display area on the right side of the screen, so that the two windows can be evenly divided into the screen for display.
- an embodiment of the present application provides a split-screen display method, so that the electronic device can respond to the shortcut operation gesture triggered by the user, and display the window corresponding to the shortcut operation gesture triggered by the user on the screen in split screen.
- the split-screen display method provided by the embodiment of the present application can simplify user operations, realize the split-screen display function conveniently and quickly, and help improve user experience.
- the electronic device in the embodiment of the present application may be a tablet computer, a mobile phone, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), wearable device, etc.
- the embodiment of the present application does not impose any limitation on the specific type of electronic device.
- FIG. 4 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM subscriber identification module
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices.
- the charging management module 140 is configured to receive a charging input from a charger.
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
- System global navigation satellite system, GNSS
- frequency modulation frequency modulation, FM
- near field communication technology near field communication, NFC
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the display screen 194 is used for displaying a display interface of an application, for example, displaying a desktop of the electronic device 100 , which may include icons of applications installed on the electronic device 100 and created shortcut icons.
- the display screen 194 may display a plurality of windows in split screens, and each window displays a page of an application installed on the electronic device 100 .
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
- the processor 110 executes instructions stored in the internal memory 121, so that the electronic device 100 executes the methods described in various embodiments of the present application.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the storage program area can store an operating system, software codes of at least one application program, and the like.
- the data storage area can store data generated during use of the electronic device 100 (such as captured images, recorded videos, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save pictures, videos and other files in the external memory card.
- the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C and the like.
- the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 180A may be disposed on display screen 194 .
- the touch sensor 180C is also called “touch panel”.
- the touch sensor 180C can be disposed on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called “touch screen”.
- the touch sensor 180C is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180C may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- the user can use multiple fingers to trigger shortcut operation gestures on multiple windows, and the touch sensor transmits the detected touch operations to the processor, and the processor controls the display screen 194 to display multiple windows on a split screen.
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
- the motor 191 can generate a vibrating reminder.
- the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- FIG. 4 do not constitute a specific limitation on the electronic device 100, and the electronic device may also include more or fewer components than shown in the figure, or combine some components, or split some components , or different component arrangements.
- the combination/connection relationship between the components in FIG. 4 can also be adjusted and modified.
- FIG. 5 is a software structural block diagram of an electronic device provided by an embodiment of the present application.
- the software structure of the electronic device may be a layered architecture, for example, the software may be divided into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the operating system is divided into four layers, which are application program layer, application program framework layer (framework, FWK), runtime and system library, and kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application program layer may include camera, settings, skin module, user interface (user interface, UI), three-party application program and so on.
- the three-party application may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer can include some predefined functions. As shown in Figure 4, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. It can be understood that, in the embodiment of the present application, when multiple windows are displayed on the display screen, the window manager can be used to manage the multiple windows simultaneously, for example, manage the positions and sizes of the multiple windows.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of electronic devices. For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- the runtime includes the core library and virtual machine.
- the runtime is responsible for the scheduling and management of the operating system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of the operating system.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- a 3D graphics processing library can be used to draw a 3D motion track image
- a 2D graphics engine can be used to draw a 2D motion track image
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- the hardware layer may include various types of sensors, such as acceleration sensors, gyroscope sensors, touch sensors, and the like.
- multiple windows can be displayed on the display screen of the electronic device at the same time, and the positions of these multiple windows on the display screen can be set arbitrarily by the user.
- the user can trigger a drag gesture operation in the window to move The position of the window on the display.
- the user can click the maximize button in the window, and the electronic device expands the window to full-screen display; or the user can click the minimize button in the window, and the electronic device hides the window to the taskbar; for another example, the user can click A close button in a window, the electronic device closes the window.
- the user may also control the display manner of multiple windows in the electronic device by triggering a shortcut operation gesture.
- the user may trigger a first operation on multiple windows currently displayed on the screen, and the first operation may include, for example, a long-press gesture operation, a single-click gesture operation, or a double-click gesture operation.
- the electronic device takes the touch point of the first operation as a pivot point, and shrinks the multiple windows corresponding to the first operation.
- the electronic device may reduce the multiple windows to preset sizes respectively.
- the touch point can be any position in the window.
- FIG. 6 is a schematic diagram of a long-press gesture operation triggered by a user provided in an embodiment of the present application.
- the user triggers a long press gesture operation at point A in window A, and at the same time triggers a long press gesture operation at point B in window B.
- the electronic device proportionally reduces window A to a preset size with point A as the pivot point, and proportionally reduces window B to the preset size with point B as the pivot point.
- the position of the reduced window A may still be within the display range of the original window A, and the position of the reduced window B The position may still be within the display range of the original window B.
- the positional relationship of multiple windows may be separation, affixation or overlapping, where overlapping includes two cases of partial overlapping and complete overlapping.
- the electronic device shrinks multiple windows to a preset size in response to the first operation triggered by the user, since the electronic device uses the touch point that the user triggers the first operation as the pivot point to shrink the window, depending on the position of the touch point, the The positional relationship between multiple windows after that may be separated, attached or partially overlapped.
- FIG. 7 is a schematic diagram of a window provided in the embodiment of the present application.
- the positional relationship between window A and window B is separated in the initial state.
- the user triggers the first operation at points A and B, and the electronic device reduces window A to a preset size with point A as an axis point, and reduces window B to a preset size with point B as an axis point.
- point A is any position in window A
- point B is any position in window B.
- the positional relationship between the reduced window A and the reduced window B is still separated.
- FIG. 8 is a schematic diagram of another window provided by the embodiment of the present application.
- the positional relationship between window A and window B in the initial state is pasting.
- the electronic device reduces window A to a preset size with point A as an axis point, and reduces window B to a preset size with point B as an axis point.
- the user can click anywhere in the window.
- the positional relationship between the reduced window A and the reduced window B may be fit or separate.
- the positional relationship between the reduced window A and the reduced window B is separated; as shown in Figure 8 (c), the positional relationship between the reduced window A and the reduced window B is fit.
- FIG. 9 is a schematic diagram of another window provided by the embodiment of the present application.
- the positional relationship between window A and window B is partially overlapped.
- the electronic device reduces window A to a preset size with point A as an axis point, and reduces window B to a preset size with point B as an axis point.
- the positional relationship between the reduced window A and the reduced window B may be fit, separated or overlapped.
- FIG. 10 is a schematic diagram of a window provided by the embodiment of the present application. Taking the user triggering a long-press gesture operation on three windows (window A, window B, and window C) as an example, the electronic device will window A, window B, and window Window C shrinks to the preset size.
- the user may also trigger a drag gesture operation.
- the drag gesture operation triggered by the user can be for the user to control the movement of the reduced window A, the user to control the movement of the reduced window B, or the user to simultaneously control the reduced window A and The reduced window B moves.
- the window of the long press gesture operation triggered by the user returns to the position and size of the window in the initial state. That is to say, after the user triggers the long-press gesture operation in multiple windows at the same time, the reduced window can be regarded as the window in the preview mode. If the user does not continue to trigger the drag gesture operation, it will resume from the window in the preview mode for the original window.
- FIG. 11 is a schematic diagram of a window position provided by an embodiment of the present application. The following describes the possible positional relationship between windows in the embodiment of the present application with reference to FIG. 11 .
- the reduced window A and window B are displayed on the screen.
- the user moves the reduced window A and window B.
- the possible positional relationship between window A and window B can be referred to in FIG. 11 .
- window A and window B are separated, and there is no overlapping area between window A and window B at this time.
- window A and window B are in a pasted state, and one side of window A and window B overlaps at this time.
- window A and window B overlap each other, and at this time, parts of window A and window B overlap.
- window A and window B completely overlap.
- window A and window B will appear in Figure 11 (b), ( c), the positional relationship shown in (d). If the user continues to move window A and window B according to the current direction, the positional relationship shown in (e), (f) and (g) in Figure 11 will appear next on window A and window B, that is, window A and window B Window B reverses the positional relationship of overlap, fit, and separation.
- FIG. 12 is a flowchart of a split-screen display method provided by an embodiment of the present application. Referring to Figure 12, the method comprises the following steps:
- S1201 Multiple windows are displayed on the display screen of the electronic device, and in response to a selection operation triggered by a user, the electronic device reduces the multiple windows respectively.
- multiple windows are currently displayed on the display screen of the electronic device.
- the electronic device can reduce the multiple windows to a preset size, or the electronic device can also reduce the windows according to the preset size.
- the zoom out ratio shrinks multiple windows. It can be understood that when the electronic device reduces the multiple windows according to the preset reduction ratio, the sizes of the reduced multiple windows are related to the sizes of the multiple windows in the initial state when the selection operation is not triggered. For example, in the initial state, the area of window A is larger than that of window B, then after reducing window A and window B according to the preset reduction ratio, the area of window A after reduction is larger than that of window B.
- the multiple windows can be shrunk with the touch point that the user triggers the selection operation as the pivot point, so as to adjust the positions of the multiple shrunk windows.
- the selection operation may be, for example, a first operation triggered by the user in multiple windows simultaneously or separately, and the first operation may include a long-press gesture operation, a single-click gesture operation, or a double-click gesture operation, and the like.
- the selection operation may also include other shortcut gesture operations. That is to say, in the embodiment of the present application, the shortcut gesture operation corresponding to the selection operation can be implemented in multiple ways, and the method for the user to trigger the selection operation is not limited in the embodiment of the present application.
- the manner in which the electronic device adjusts multiple windows can be implemented by referring to the manner of adjusting the size and position of the windows provided in the embodiments shown in FIGS. 6-9 , which will not be repeated here.
- S1202 In response to a user-triggered moving operation on the first window, the electronic device moves the first window, where the first window includes at least one window among the multiple windows.
- the move operation may be, for example, a drag gesture operation triggered by the user on the first window.
- the selection operation and the moving operation can be performed continuously.
- the user presses and holds the window and the electronic device shrinks the window to a preset size, and the user continues to drag the window, and the electronic device moves the window. That is to say, the user needs to continuously trigger the operations of long pressing the window and dragging the window.
- the electronic device can respond to the above operations and move the reduced window.
- the electronic device restores the window corresponding to the selection operation to the initial window size and position.
- the first window may include at least one window among multiple windows, and the user may trigger a moving operation on the first window.
- a user can trigger a select operation on two windows on the current screen, and a move operation on one of the two windows.
- the electronic device reduces both windows to a preset size, and adjusts the position of one window corresponding to the movement operation according to the movement operation triggered by the user, while the position of the other window remains unchanged, but due to the change of the position of the window corresponding to the movement operation , the relative position of the two windows changes.
- the electronic device in response to the movement operation triggered by the user, moves the first window.
- the positional relationship between multiple windows can be referred to in FIG. 11 , which is not repeated here. repeat.
- the electronic device After the electronic device determines that the moving operation is completed, it may determine the positional relationship between the multiple windows after the moving operation, and display the multiple windows in split screens according to the positional relationship between the multiple windows.
- the possible positional relationship of multiple windows after the moving operation can also refer to FIG. 11 .
- the embodiment of the present application includes two split-screen display modes when multiple windows are displayed on a split screen.
- the electronic device divides the display area of the display screen into multiple sub-areas, and displays in each sub-area corresponding window.
- the electronic device In the second split-screen display mode, the electronic device combines multiple windows as a stacked window, and displays the stacked window combination on the display screen.
- the two split-screen display modes provided in the embodiment of the present application are introduced respectively below:
- the electronic device may divide the display area of the display screen into multiple sub-areas, and display a corresponding window on each sub-area.
- the preset condition may include: in the plurality of windows, every two adjacent windows do not overlap and the distance between two adjacent sides is less than or equal to the first threshold; or in the plurality of windows, every two adjacent windows overlap and The horizontal length or the vertical length of the overlapping area is less than or equal to the second threshold; or every two adjacent windows in the plurality of windows overlap and the area of the overlapping area is less than the third threshold.
- the three preset conditions provided in the embodiment of this application are introduced below:
- the preset condition is that the distance between the two sides where the two windows are close is less than or equal to the first threshold.
- FIG. 13 is a schematic diagram of a window position relationship provided by an embodiment of the present application. Referring to FIG. 13 , when the distance between the two sides of the two windows is less than or equal to the first threshold, it can be considered that the positional relationship between the two windows satisfies the preset condition.
- the two sides close to the two windows can be the right side of window A and the left side of window B shown in (a) in Figure 13, the left side of window A and the left side of window B shown in (b) in Figure 13 The right side of window B, the lower side of window A and the upper side of window B shown in (c) in FIG. 13 , the upper side of window A and the lower side of window B shown in (d) in FIG. 13 .
- the preset condition is that two windows overlap and the horizontal length or vertical length of the overlapping area is less than or equal to the second threshold.
- FIG. 14 is a schematic diagram of another window position relationship provided by the embodiment of the present application.
- two windows overlap each other.
- the horizontal length of the overlapping area of the two windows is the length in the direction parallel to the bottom or top of the current screen
- the vertical length of the overlapping area of the two windows is the length between the overlapping area of the two windows and the top of the current screen. The length in the direction parallel to the sides of the current screen.
- FIG. 15 is a schematic diagram of the screen of an electronic device provided in an embodiment of the present application.
- the electronic device can be displayed in a horizontal or vertical screen.
- both The horizontal length of the overlapping area of two windows is the length of line segment a in the figure
- the vertical length of the overlapping area of two windows is the length of line segment b in the figure.
- the horizontal length of the overlapping area of the two windows is the length of the line segment c in the figure
- the vertical length of the overlapping area of the two windows is the line segment d in the figure length.
- the preset condition is that the two windows overlap and the area of the overlapping area is smaller than the third threshold.
- the area of the overlapping area of the two windows can be the area where the window at the bottom layer is covered, for example in (b) in Figure 14, the area of the overlapping area of the two windows can be the area covered by window A in window B area.
- the electronic device determines that the positional relationship between the two windows satisfies a preset condition
- the electronic device displays the two windows in split screens on the screen.
- FIG. 16 is a schematic diagram of a split-screen display provided by an embodiment of the present application. As shown in (a) in FIG.
- the electronic device can display the The area is divided into left and right sub-areas, and a window is displayed in each sub-area; or as shown in (b) in Figure 16, the electronic device can also divide the display area of the display screen into upper and lower sub-areas, and each A window is displayed in a subarea.
- the embodiment of the present application does not limit how the electronic device divides the display area of the display screen into multiple sub-areas. For example, it can be preset that when the electronic device is displayed in landscape orientation, the display area is divided into multiple sub-areas arranged from left to right by default. Area; when the electronic device is displayed vertically, the display area is divided into multiple sub-areas arranged from top to bottom by default. For another example, when the electronic device determines the positional relationship between two windows as shown in (a) in Figure 13, the display area is divided into left and right sub-areas, window A occupies the left area for display, and window B occupies the right area.
- the electronic device when it displays multiple windows on a split screen, it may also determine a ratio when displaying the multiple windows on a split screen according to the positional relationship among the multiple windows. Taking two windows as an example, when the electronic device determines that the horizontal length or vertical length of the overlapping area of the two windows is less than or equal to the fourth threshold, or the area of the overlapping area of the two windows is greater than the fifth threshold, the electronic device will Divide into two display areas equally, and display a window in each display area. For example, at this time, the two windows displayed on the split screen of the electronic device may be as shown in (a) in FIG. 16 . Wherein, the fourth threshold is smaller than the second threshold, and the fifth threshold is smaller than the third threshold, that is to say, the positional relationship between the two windows still satisfies the aforementioned preset condition.
- the electronic device may determine the split-screen ratio according to the current positional relationship between the two windows.
- the electronic device when the electronic device determines the split-screen ratio according to the positional relationship between the two windows, it may first determine the hierarchical relationship between the two windows, and the hierarchical relationship between the two windows may be used to indicate the proportion of the two windows when they are displayed on the display screen. For example, when two windows are displayed on the display, one window is on the top layer and the other window is on the bottom layer.
- the electronic device can determine the hierarchical relationship between the two windows in the following manner:
- Mode 1 When the positional relationship of the two windows is overlapping in the initial state, the hierarchical relationship of the two windows after the user performs a moving operation is consistent with the hierarchical relationship of the two windows in the initial state.
- Figure 17 is a hierarchical relationship between windows provided by the embodiment of the present application
- window A is on the top layer
- window B is on the bottom layer.
- window A and window B overlap, and window A will block the area of window B that overlaps with window A.
- window A and window B overlap, and at this time window A and window B can maintain the hierarchical relationship between window A and window B in the initial state, that is, Window A is on the top floor and window B is on the bottom floor.
- Method 2 Among the two windows, the window with the shorter distance between the center point of the window and the bottom of the display screen is on the bottom layer, and the window with a longer distance between the center point of the window and the bottom of the screen is on the top layer; or, the center point of the window is at the same distance as the display screen Windows with a shorter distance from the bottom of the screen are on the top layer, and windows whose centers are at a longer distance from the bottom of the screen are on the bottom layer.
- Fig. 18 is a schematic diagram of the distance between the center point of the window and the bottom of the display screen according to the embodiment of the present application.
- the electronic device may calculate a first distance between the center point of window A and the bottom of the display screen, and calculate a second distance between window B and the bottom of the display screen, compare the first distance and the second distance, and calculate the The window corresponding to the distance with a larger value is set to the top layer. For example, in (a) of FIG. 18 , when the first distance is greater than the second distance, the electronic device places window A on the top layer, and places window B on the bottom layer.
- the electronic device can also set the window corresponding to the larger distance between the first distance and the second distance as the bottom layer, for example, in (b) in Figure 18, when the first distance is greater than the second distance, the electronic device will Window A is brought to the bottom, and window B is brought to the front.
- the electronic device may also determine the target hierarchical relationship of the two windows according to the distance between the window and the top of the display screen, for example, in the two windows, the position of the center point of the window and the display The window with a shorter distance from the top of the screen is on the bottom layer, and the window whose center point is longer from the top of the screen is on the top layer; or, the window whose center point is at a shorter distance from the top of the screen is on the top layer, and the center point of the window Windows with a greater distance from the top of the screen are at the bottom.
- Manner 3 The electronic device determines the hierarchical relationship between the two windows according to preset rules.
- the default rule may be that the windows near the left of the display screen are on the top layer.
- the preset rule may be that the window with a longer displacement distance after the user triggers the movement operation is located at the top layer.
- the electronic device may determine the split-screen ratio according to the horizontal length ratio, vertical length ratio or area ratio of the non-covered area between the two windows.
- FIG. 19 is a schematic diagram of a positional relationship between two windows after a user releases an operation provided in an embodiment of the present application.
- window A is on the bottom layer
- window B is on the top layer. Part of the area in window A is covered by window B.
- the electronic device may calculate the horizontal length ratio of the non-covered areas in window A and window B, and use the horizontal length ratio as the split screen ratio.
- the shaded area of window A in (a) in FIG. 19 can be defined as the non-covered area of window A.
- the area ratio to window B can also be set to 2:3.
- the display area of the display screen is divided into left and right sub-areas, and the length of the bottom side of the display screen is w, the length of the bottom side of window A after split-screen display is (2/5)W, and the bottom side of window B is The side length is (3/5)W.
- the electronic device may also calculate the vertical-to-horizontal length ratio of the non-covered areas in window A and window B, and use the vertical-to-horizontal ratio as the split-screen ratio.
- the shaded area of window A in (a) in FIG. 19 can be defined as the non-covered area of window A.
- the side length of window A after split-screen display is (1/3)L
- the side length of window B is (2/3)L.
- the electronics can also calculate the area ratio of the non-covered areas in window A and window B, and use the area ratio as the distribution ratio.
- the shaded area of window A in (a) in FIG. 19 can be defined as the non-covered area of window A.
- the electronic device may calculate the area ratio of the non-covered area in window A to that of window B, for example, the calculated area ratio of the non-covered area of window A to window B is 2:3.
- the area ratio of window A to window B may also be set to 2:3.
- the display area of the display screen is divided into left and right sub-areas, and the length of the bottom side of the display screen is w, the length of the bottom side of window A after split-screen display is (2/5)W, and the bottom side of window B is The side length is (3/5)W.
- Split-screen display mode 2 When every two adjacent windows in multiple windows overlap and the horizontal length or vertical length of the overlapping area is greater than the second threshold, or every two adjacent windows in multiple windows overlap and the area of the overlapping area When it is greater than the third threshold, the electronic device regards multiple windows as a window stack combination, and displays the window stack combination.
- FIG. 20 is a schematic diagram of a stacked combination of windows provided in the embodiment of the present application.
- the horizontal length of the overlapping area between window A and window B is greater than the second threshold; or referring to (b) in FIG. 20, the vertical length of the overlapping area between window A and window B is greater than The second threshold; or referring to (c) in FIG. 20 , the area of the overlapping region between window A and window B is larger than the third threshold.
- the electronic device uses window A and window B as a stacked combination of windows as shown in (d) in FIG. 20 .
- the size of each window may be the same as the display area of the display screen.
- the electronic device can display the stacked window combination in a full screen, and the user can switch the sequence of the stacked window combination through buttons or shortcut gestures.
- the embodiment of the present application provides a manner in which a user can conveniently switch and browse among multiple windows displayed in a full screen.
- the user can trigger convenient gesture operations on multiple windows displayed on the screen of the electronic device, and the electronic device will automatically display multiple windows in split screens according to the detected operations triggered by the user, without The user can manually adjust the size of multiple windows to achieve split-screen display, simplifying user operations, effectively improving the practicability of the split-screen function, and thereby improving user experience.
- the multiple windows displayed on the split screen may also be taken as a whole, for example, multiple windows displayed on the split screen may be regarded as a target window.
- the target window has the same interaction level property as the window of the application not participating in the split-screen display.
- the user can switch the window displayed on the current display screen through shortcut gesture operations. If the current display screen displays the target window and the user triggers the operation of switching to other windows, the electronic device can switch the target window as a whole to run in the background. , and switch other windows selected by the user to the foreground.
- FIG. 21 is a schematic diagram of a multi-task management interface provided by the embodiment of the present application.
- the target window can be used as a task in the multi-task management interface, and the user can select a task running in the foreground of the electronic device on the multi-task management interface. If the user selects the target window, the electronic device displays the target window in which window A and window B are displayed in split screens on the display screen; if the user selects window C, the electronic device displays window C in full screen on the display screen.
- the target window can also be moved as a whole.
- FIG. 22 is a schematic diagram of a display screen provided by an embodiment of the present application.
- window A and window B form the target window.
- the user can trigger a moving operation on the target window to control the movement of the target window.
- the target window has the same interaction level attribute as window C and window D.
- the target window can also be resized as a whole.
- FIG. 23 is a schematic diagram of a target window provided by the embodiment of the present application.
- the user can trigger a scaling operation on the target window to adjust the size of the target window, and the electronic device can adjust the size of the target window according to the scaling operation. At this time, the sizes of multiple windows in the target window change simultaneously.
- the user can float the cursor to any edge position of the target window through the control device and the stay time of the cursor is greater than the preset time threshold. Drag the icon to trigger a zoom operation.
- the target window can also have a menu bar for overall control.
- FIG. 24 is a schematic diagram of a target window provided by the embodiment of the present application.
- a menu bar for controlling the target window may be displayed on the top of the target window, and the menu bar may include a minimize button, a maximize button and a close button, for example.
- the menu bar can be hidden.
- the electronic device displays the menu bar of the target window on the top of the target window on the display screen.
- the following describes the display effect of the target window after the user clicks different buttons in the menu bar of the target window in the embodiment of the present application.
- FIG. 25 is a schematic diagram of a minimized target window provided by an embodiment of the present application.
- the electronic device may, in response to a user-triggered minimization operation on the target window, quit displaying the target window, and keep an icon corresponding to the target window in the taskbar. For example, referring to FIG. 25 , when the user clicks the minimize button in the menu bar, the electronic device controls not to display the target window in the current display screen, and keeps the icon corresponding to the target window in the task bar at the bottom of the display screen.
- FIG. 26 is a schematic diagram of a maximized target window provided by an embodiment of the present application.
- the electronic device may adjust the size of the target window to the size of the display area of the display screen in response to a user-triggered maximize operation on the target window. For example, referring to FIG. 26 , when the target window does not occupy the entire display screen, the user clicks the maximize button in the menu bar, and the electronic device adjusts the size of the target window to the full screen. When the target window is displayed in full screen on the display screen, the position of the original maximize button is switched to a zoom out button, and the user clicks the zoom out button, and the electronic device reduces the size of the target window so that the target window is displayed in a part of the display screen.
- FIG. 27 is a schematic diagram of exiting split-screen display provided by an embodiment of the present application.
- the electronic device can restore the multiple windows to the initial state when the user did not trigger the selection operation, or close the target window.
- the electronic device can restore the multiple windows to the initial state when the user did not trigger the selection operation, or close the target window.
- the electronic device when the user clicks the close button in the menu bar, the electronic device exits the split-screen display of multiple windows, and the multiple windows return to the initial state without split-screen display, as shown in (a) in Figure 27, window A and window B is restored to its initial state.
- the user clicks the close button in the menu bar the electronic device exits the split-screen display of multiple windows, and closes the multiple windows at the same time, as shown in (b) in Figure 27, the display screen displays the desktop of the electronic device.
- the electronic device can use the target window as a window to control the display of the target window, or the electronic device can also send a message to the target window after detecting an operation triggered by the user in one of the target windows. Send the same control command to other windows in the target window, so that multiple windows in the target window are displayed as a whole.
- the electronic device can control window A to respond to the user-triggered action. Operation, move window A.
- the electronic device can send the same control instruction to window B, so that window B performs the same displacement. It can be understood that, in this case, what the user observes is still the effect of moving the target window as a whole.
- each window in the target window has its own menu bar
- the menu bar of each window may include a minimize button, a maximize button and a close button. Users can switch the display mode by clicking the button in the menu bar of any window.
- FIG. 28 is a schematic diagram of a target window provided by an embodiment of the present application. Referring to FIG. 28 , the user clicks the maximize button of window A, the electronic device displays window A in full screen and adjusts the size of window B to the full screen size. At this time, window A and window B are stacked and combined as one window.
- the user can click or slide up and down the navigation point in the window A displayed in full screen to switch the display sequence of window A and window B.
- an embodiment of the present application further provides a computer program product, which, when the computer program is run on a computer, causes the computer to execute the split-screen display method provided by the embodiment shown in FIG. 12 .
- this embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored.
- the computer program executes the implementation shown in FIG. 12 .
- the split-screen display method provided by the example.
- the storage medium may be any available medium that can be accessed by a computer.
- computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or may be used to carry or store information in the form of instructions or data structures desired program code and any other medium that can be accessed by a computer.
- an embodiment of the present application further provides a chip, the chip is used to read a computer program stored in a memory, and realize the split-screen display method provided by the embodiment shown in FIG. 12 .
- an embodiment of the present application provides a chip system
- the chip system includes a processor, configured to support a computer device to implement the split-screen display method provided by the embodiment shown in FIG. 12 .
- the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
- the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
- the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
- the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种分屏显示方法及电子设备。在该方法中,电子设备在显示屏中显示多个窗口。响应于用户触发的选中操作,电子设备分别缩小多个窗口(S1201);响应于用户触发的针对缩小后的第一窗口的移动操作,电子设备移动第一窗口,其中,第一窗口包含多个窗口中的至少一个窗口(S1202);当移动操作结束时,电子设备分屏显示多个窗口(S1203)。通过该方案,提供一种方便快捷的分屏显示方法,无需用户复杂的操作即可实现将显示屏上的多个窗口进行分屏显示,提升用户体验。
Description
相关申请的交叉引用
本申请要求在2021年09月30日提交中国专利局、申请号为202111163804.X、申请名称为“一种分屏显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端显示领域,尤其涉及一种分屏显示方法及电子设备。
随着显示设备的屏幕尺寸的多样性发展,越来越多的大屏设备出现在市场中。大屏设备不仅可以为用户带来更加舒适的观看体验,同时可以提供多种显示功能,如多任务协同、分屏等,以提升用户的视觉体验和观看效率。
分屏是指在单个屏幕中,通过分开布局窗口的方式,同时显示多个窗口,从而用户可以同时浏览多个窗口并进行操作。目前的分屏功能需要用户手动拖拽窗口至合适的位置,并由用户手动调整窗口的大小,以实现多个窗口同时在当前屏幕中显示。可见,目前的分屏的操作步骤较长,交互行为不自然。
综上,目前亟需一种便捷的分屏方案。
发明内容
本申请提供一种分屏显示方法及电子设备,用以简化用户操作,方便快捷的实现分屏显示功能。
第一方面,本申请实施例提供一种分屏显示方法,该方法应用于电子设备。该方法包括:
电子设备在显示屏中显示多个窗口;响应于用户触发的选中操作,电子设备分别缩小所述多个窗口;响应于用户触发的针对缩小后的第一窗口的移动操作,电子设备移动所述第一窗口,其中,所述第一窗口包含所述多个窗口中的至少一个窗口;当所述移动操作结束时,电子设备分屏显示所述多个窗口。
在以上方法中,电子设备在显示屏中显示多个窗口时,用户可以触发选中操作,电子设备缩小多个窗口的大小,表示进入预览模式,此时用户再次触发针对第一窗口的移动操作,从而改变多个窗口的位置关系,电子设备可以在移动操作结束时,分屏显示多个窗口。通过该方法,提供一种方便快捷的分屏显示方法,无需用户复杂的操作即可实现将显示屏上的多个窗口进行分屏显示,提升用户体验。
在一个可能的设计中,所述分别缩小所述多个窗口,包括:分别缩小所述多个窗口至预设大小。
在一个可能的设计中,所述分别缩小所述多个窗口,包括:以所述用户触发所述选中操作的触点为轴心点,分别缩小所述多个窗口。
通过以上设计,电子设备在检测到用户触发的选中操作后,可以将多个窗口缩小至预设大小,也可以将用户触发选中操作的触点作为轴心点缩小多个窗口,从而灵活调整预览模式下各个窗口的大小与位置。
在一个可能的设计中,所述选中操作包括:所述用户同时或分别对所述多个窗口中每个窗口进行第一操作。
在一个可能的设计中,所述第一操作包括长按手势操作、单击手势操作或双击手势操作。
通过以上设计,本申请实施例提供多种电子设备可以检测的用于触发选中操作的快捷手势操作,便于用户触发分屏功能,提升用户体验。
在一个可能的设计中,当所述选中操作为所述用户同时对所述多个窗口中每个窗口进行长按手势操作时,所述针对缩小后的第一窗口的移动操作为所述用户触发所述选中操作后,针对所述第一窗口未执行抬起操作,并对所述第一窗口进行拖拽手势操作。
通过该设计,用户可以通过对多个窗口中每个窗口进行长按手势操作触发选择操作,然后,在用户未执行抬起操作时,继续对第一窗口进行拖拽手势操作以移动第一窗口的位置,也就是说,本申请实施例中电子设备可以响应用户连续触发的选中操作和移动操作,以分屏显示多个窗口。
在一个可能的设计中,所述分屏显示所述多个窗口,包括:当所述多个窗口中每两个相邻窗口不重叠且靠近的两条边之间的距离小于或等于第一阈值,或所述多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或者竖直长度小于或等于第二阈值,或所述多个窗口中每两个相邻窗口重叠且重叠区域的面积小于第三阈值时,将所述显示屏的显示区域划分为多个子区域,其中,所述多个子区域与所述多个窗口一一对应;分别在每个子区域上显示对应的窗口。
通过该设计,电子设备可以根据移动操作后多个窗口中每两个窗口之间的位置关系,确定将显示屏的显示区域划分为多个子区域后显示多个窗口,从而用户可以在显示屏上同时查看多个窗口的内容,提升用户体验。
在一个可能的设计中,所述将所述显示屏的显示区域划分为多个子区域,包括:当所述重叠区域的水平长度或竖直长度大于第四阈值,或者所述重叠区域的面积大于第五阈值时,根据所述多个窗口的位置关系确定分屏比例,按照所述分屏比例将所述显示屏的显示区域划分为所述多个子区域;其中,所述第四阈值小于所述第二阈值,所述第五阈值小于所述第三阈值。
通过该设计,当每相邻两个窗口的重叠区域的水平长度或竖直长度大于第四阈值,或重叠区域的面积大于第五阈值时,电子设备可以根据多个窗口的位置确实分屏比例,从而在不同大小的子区域中显示对应的窗口,满足用户的个性化需求。
在一个可能的设计中,所述根据所述多个窗口的位置关系确定分屏比例,包括:确定所述多个窗口的目标层级关系,并根据所述目标层级关系和所述多个窗口的位置关系确定所述分屏比例;其中,所述分屏比例与所述多个窗口的非遮盖区域的水平长度比值或者竖直长度比值或者面积比值相关。
通过该设计,电子设备在确定分屏比例时,可以先确定多个窗口的目标层级关系,目标层级关系可以用于表示多个窗口在显示屏显示时所处的图层位置,如窗口A和窗口B的目标层级关系可以为窗口A位于顶层,窗口B位于底层。在确定出多个窗口的目标层级关 系后,电子设备可以根据多个窗口的目标层级关系和位置关系确定分屏比例,分屏比例可以与多个窗口的非遮盖区域的水平长度比值或者竖直长度比值或者面积比值相关,从而分屏显示多个窗口时,多个子区域的大小与用户触发移动操作后的多个窗口的大小相对应,满足用户在不同大小的区域中查看不同窗口的需求。
在一个可能的设计中,所述确定所述多个窗口的目标层级关系,包括:将所述用户未触发所述选中操作时所述多个窗口的层级关系作为所述目标层级关系;或者根据所述多个窗口中每个窗口的中心点与所述显示屏底部或者顶部之间的距离确定所述目标层级关系;或者根据预设规则确定所述目标层级关系。
通过该设计,电子设备可以根据上述提供的多种方法确定多个窗口之间的层级关系,灵活判断多个窗口之间是否互相遮盖,进而确定分屏比例。
在一个可能的设计中,所述分屏显示所述多个窗口,包括:当所述多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或竖直长度大于第二阈值,或所述多个窗口中每两个相邻窗口重叠且重叠区域的面积大于第三阈值时,将所述多个窗口作为一个窗口层叠组合,并显示所述窗口层叠组合;其中,所述窗口层叠组合中任一个窗口的大小与显示屏的显示区域的大小相同。
通过该设计,当所述多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或竖直长度大于第二阈值,或者重叠区域的面积大于第三阈值时,表示每两个相邻窗口重叠的区域较大。此时电子设备可以在显示屏上显示一个窗口层叠组合,这个窗口层叠组合中包括多个窗口,每个窗口的大小与显示屏的显示区域的大小相同,用户可以在多个窗口之间进行便捷的切换。
在一个可能的设计中,在所述分屏显示所述多个窗口之后,还包括:响应于用户触发的针对第二窗口的最大化操作,将所述多个窗口作为一个窗口层叠组合,并显示所述窗口层叠组合;其中,所述第二窗口为所述多个窗口中的任一个窗口,所述窗口层叠组合中任一个窗口的大小与显示屏的显示区域的大小相同。
通过该设计,在将显示屏的显示区域划分为多个子区域后,当用户在多个窗口中的任一个窗口上触发最大化操作时,可以将多个窗口作为一个窗口层叠组合进行显示,从而灵活切换分屏显示的方式。
在一个可能的设计中,在所述分屏显示所述多个窗口之后,还包括:响应于用户触发的针对目标窗口的移动操作,移动所述目标窗口;或者响应于用户触发的针对所述目标窗口的缩放操作,调整所述目标窗口的大小;其中,所述目标窗口为分屏显示的所述多个窗口组成的窗口。
通过该设计,电子设备在显示屏上分屏显示多个窗口时,多个窗口可以组成一个目标窗口,目标窗口可以作为一个整体移动位置或调整大小。
在一个可能的设计中,所述方法还包括:响应于用户触发的针对所述目标窗口的最小化操作,退出显示所述目标窗口,并将所述目标窗口对应的图标保留到任务栏中;或者响应于用户触发的针对所述目标窗口的最大化操作,将所述目标窗口的大小调整为显示屏的显示区域的大小;或者响应于用户触发的针对所述目标窗口的退出操作,将所述多个窗口恢复至用户未触发所述选中操作时的初始状态,或关闭所述目标窗口。
通过该设计,电子设备在显示屏上显示目标窗口时,可以对目标窗口触发最小化操作、最大化操作或退出操作,将目标窗口作为一个整体进行控制,从而灵活显示目标窗口。
在一个可能的设计中,所述多个窗口为两个窗口。
第二方面,本申请实施例提供一种分屏显示装置,所述装置包括多个功能模块;所述多个功能模块相互作用,实现上述第一方面及其各实施方式中的方法。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。
第三方面,本申请实施例提供一种电子设备,包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述至少一个处理器执行所述计算机程序指令时,使得所述电子设备执行上述第一方面提供的方法。
第四方面,本申请实施例还提供一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一方面提供的方法。
第五方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面提供的方法。
第六方面,本申请实施例还提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面提供的方法。
第七方面,本申请实施例还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面提供的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
图1为本申请实施例提供的一种分屏的显示界面示意图;
图2为一种分屏功能的示意图;
图3为又一种分屏功能的示意图;
图4为本申请实施例提供的一种电子设备的结构示意图;
图5为本申请实施例提供的一种电子设备的软件结构框图;
图6为本申请实施例提供的一种用户触发长按手势操作的示意图;
图7为本申请实施例提供的一种窗口示意图;
图8为本申请实施例提供的又一种窗口示意图;
图9为本申请实施例提供的再一种窗口示意图;
图10为本申请实施例提供的一种窗口示意图;
图11为本申请实施例提供的一种窗口位置示意图;
图12为本申请实施例提供的一种分屏显示方法的流程图;
图13为本申请实施例提供的一种窗口位置关系示意图;
图14为本申请实施例提供的又一种窗口位置关系示意图;
图15为本申请实施例提供的一种电子设备的屏幕示意图;
图16为本申请实施例提供的一种分屏显示的示意图;
图17为本申请实施例提供的一种窗口之间的层级关系示意图;
图18为本申请实施例提供的一种窗口中心点与屏幕底部距离的示意图;
图19为本申请实施例提供的一种用户释放操作后,两个窗口之间的位置关系示意图;
图20为本申请实施例提供的一种窗口层叠组合示意图;
图21为本申请实施例提供的一种多任务管理界面示意图;
图22为本申请实施例提供的一种屏幕示意图;
图23为本申请实施例提供的一种目标窗口的示意图;
图24为本申请实施例提供的一种目标窗口的示意图;
图25为本申请实施例提供的一种最小化目标窗口的示意图;
图26为本申请实施例提供的一种最大化目标窗口的示意图;
图27为本申请实施例提供的一种退出分屏显示的示意图;
图28为本申请实施例提供的一种目标窗口的示意图。
应理解,在本申请中除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B三种情况。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。
在本申请中,“示例的”、“在一些实施例中”、“在另一些实施例中”等用于表示作例子、例证或说明。本申请中被描述为“示例”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用示例的一词旨在以具体方式呈现概念。
另外,本申请中涉及的“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量,也不能理解为指示或暗示顺序。
用户在使用电子设备时,电子设备可以同时显示多个窗口,这多个窗口可以为同一应用的多个窗口,也可以为不同应用的多个窗口。随着电子设备屏幕尺寸的多样化,大屏(大尺寸的屏幕)设备在日常工作娱乐场景中也得到了更广泛的应用。大屏的出现为电子设备的显示功能提供了更多可能,例如,电子设备可以提供多任务协同、分屏等显示功能。
其中,分屏是指在单个屏幕中,通过分开布局窗口的方式,同时显示多个窗口,从而用户可以同时浏览多个窗口并进行操作。例如,图1为本申请实施例提供的一种分屏的显示界面示意图。参考图1,在该显示界面中,包括窗口A、窗口B和窗口C,用户可以同时浏览窗口A、窗口B和窗口C中显示的内容,同时,用户在每个窗口内均可以触发操作。
目前电子设备的分屏功能主要有以下两种实现方式:
方式1、用户手动调整多个窗口的位置和大小,以实现多个窗口在同一屏幕中同时显示。
参考图2,在同一屏幕中可以显示多个窗口,用户可以手动调整每个窗口的位置和窗口的大小,使窗口贴合屏幕的边缘。如用户可以调整窗口A占据屏幕的1/2,并调整窗口B、窗口C和窗口D位于该屏幕的其它显示区域中。参见图2中示出的窗口C和窗口D,当多个窗口重叠时,用户可以手动调整窗口的层叠关系,如当窗口C位于窗口D的顶层,用户可以点击窗口D,调整为窗口D位于窗口C的顶层。
方式2、用户长按窗口的最大化按钮,触发该窗口在当前屏幕的1/2的显示区域中显示。
参考图3,当前屏幕上有多个窗口,用户可以长按窗口A上的最大化按钮,屏幕的1/2 的显示区域显示视觉提示。在用户释放长按手势操作后,窗口A自动适应至屏幕左侧的1/2显示区域中,同时屏幕右侧的1/2显示区域中显示剩余窗口,如窗口B、窗口C。用户点击其中一个窗口,如用户点击窗口B,则窗口B扩展填补屏幕右侧的1/2显示区域,从而实现两个窗口均分屏幕进行显示。
从以上内容可以看出,目前的分屏操作步骤较长,交互行为不自然,需要用户手动调整窗口至合适位置和大小;或者触发分屏的入口层级深,如方式2中需要用户长按最大化按钮触发分屏,用户不易感知。因此,目前亟需一种便捷的分屏方案。
有鉴于此,本申请实施例提供了一种分屏显示方法,使得电子设备可以响应用户触发的快捷操作手势,将用户触发的快捷操作手势对应的窗口在屏幕上分屏显示。相比现有技术中的分屏方案,本申请实施例提供的分屏显示方法可以简化用户操作,方便快捷的实现分屏显示功能,有助于提高用户体验。
以下介绍电子设备、和用于使用这样的电子设备的实施例。本申请实施例的电子设备可以为平板电脑、手机、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴设备等,本申请实施例对电子设备的具体类型不作任何限制。
示例的,图4为本申请实施例提供的一种电子设备100的结构示意图。如图4所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
显示屏194用于显示应用的显示界面,例如显示电子设备100的桌面,桌面上可以包括电子设备100安装的应用的图标以及创建的快捷图标等。又例如显示屏194可以分屏显示多个窗口,每个窗口中显示电子设备100安装的应用的页面。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N 为大于1的正整数。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,处理器110执行内部存储器121中存储的指令,使得电子设备100执行本申请各实施例所述的方法。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序的软件代码等。存储数据区可存储电子设备100使用过程中所产生的数据(例如拍摄的图像、录制的视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
其中,传感器模块180可以包括压力传感器180A,加速度传感器180B,触摸传感器180C等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
触摸传感器180C,也称“触控面板”。触摸传感器180C可以设置于显示屏194,由触摸传感器180C与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180C用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180C也可以设置于电子设备100的表面,与显示屏194所处的位置不同。例如,本申请实施例中用户可以使用多根手指在多个窗口上触发快捷操作手势,触摸传感器将检测到的触摸操作传递给处理器,处理器控制在显示屏194分屏显示多个窗口。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现与电子设备100的接触和分离。
可以理解的是,图4所示的部件并不构成对电子设备100的具体限定,电子设备还可 以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。此外,图4中的部件之间的组合/连接关系也是可以调整修改的。
图5为本申请实施例提供的一种电子设备的软件结构框图。如图5所示,电子设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),运行时和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。如图5所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、三方应用程序等。其中,三方应用程序可以包括图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。可以理解的是,在本申请实施例中,当显示屏中显示多个窗口时,窗口管理器可以用于对多个窗口同时进行管理,例如管理多个窗口的位置及大小。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
运行时包括核心库和虚拟机。运行时负责操作系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是操作系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可 以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
在一些实施例中,三维图形处理库可以用于绘制三维的运动轨迹图像,2D图形引擎可以用于绘制二维的运动轨迹图像。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
硬件层可以包括各类传感器,例如加速度传感器、陀螺仪传感器、触摸传感器等。
下面结合说明书附图,对本申请实施例的分屏显示方法进行说明。
本申请实施例中电子设备的显示屏上可以同时显示多个窗口,这多个窗口在显示屏中的位置可以由用户进行任意设置,例如用户可以通过在窗口中触发拖拽手势操作,从而移动窗口在显示屏上的位置。又例如,用户可以点击窗口中的最大化按钮,电子设备将该窗口扩展到全屏显示;或者用户可以点击窗口中的最小化按钮,电子设备将该窗口隐藏至任务栏;再例如,用户可以点击窗口中的关闭按钮,电子设备关闭该窗口。
在本申请实施例中,用户还可以通过触发快捷操作手势控制电子设备中多个窗口的显示方式。具体来说,用户可以在当前屏幕显示的多个窗口上触发第一操作,第一操作例如可以包括长按手势操作、单击手势操作或双击手势操作。电子设备在检测到用户触发的第一操作后,以第一操作的触点作为轴心点,缩小第一操作对应的多个窗口。可选的,电子设备可以将多个窗口分别缩小为预设大小。其中,触点可以是窗口中的任意位置。
例如,图6为本申请实施例提供的一种用户触发长按手势操作的示意图。参考图6,用户在窗口A中的点A处触发长按手势操作,同时在窗口B的点B处触发长按手势操作。电子设备响应于用户触发的长按手势操作,以点A为轴心点等比例缩小窗口A至预设大小,以点B为轴心点等比例缩小窗口B至预设大小。
需要说明的是,本申请实施例中电子设备将窗口A和窗口B缩小至预设大小时,缩小后的窗口A的位置可以仍处于原窗口A的显示范围内,以及缩小后的窗口B的位置可以仍处于原窗口B的显示范围内。
示例的,多个窗口的位置关系可以为分离、贴合或重叠,其中,重叠包括部分重叠和完全重叠两种情况。在电子设备响应用户触发的第一操作将多个窗口缩小至预设大小时,由于电子设备以用户触发第一操作的触点作为轴心点对窗口进行缩小,根据触点位置的不同,缩小后的多个窗口之间的位置关系可能为分离、贴合或部分重叠。
举例来说,图7为本申请实施例提供的一种窗口示意图。参考图7,初始状态下窗口A和窗口B的位置关系为分离。用户在点A和点B触发第一操作,电子设备将窗口A以点A为轴点缩小为预设大小,并将窗口B以点B为轴点缩小为预设大小。其中,点A为窗口A中的任意位置,点B为窗口B中的任意位置。缩小后的窗口A和缩小后的窗口B的位置关系仍为分离。
图8为本申请实施例提供的又一种窗口示意图。参考图8中的(a),初始状态下窗口A和窗口B的位置关系为贴合。当用户在点A和点B触发第一操作时,电子设备将窗口A以点A为轴点缩小为预设大小,并将窗口B以点B为轴点缩小为预设大小。用户可以点击窗口中的任意位置。根据点A和点B在各个窗口中的位置,缩小后的窗口A和缩小后 的窗口B的位置关系可能为贴合或分离。如图8中的(b),缩小后的窗口A和缩小后的窗口B的位置关系为分离;如图8中的(c),缩小后的窗口A和缩小后的窗口B的位置关系为贴合。
图9为本申请实施例提供的再一种窗口示意图。参考图9中的(a),初始状态下窗口A和窗口B的位置关系为部分重叠。当用户在点A和点B触发第一操作时,电子设备将窗口A以点A为轴点缩小为预设大小,并将窗口B以点B为轴点缩小为预设大小。缩小后的窗口A和缩小后的窗口B的位置关系可能为贴合、分离或重叠。如图9中的(b),缩小后的窗口A和缩小后的窗口B的位置关系为分离;如图9中的(c),缩小后的窗口A和缩小后的窗口B的位置关系为贴合;如图9中的(d),缩小后的窗口A和缩小后的窗口B的位置关系为重叠。
可以理解的是,若当前屏幕中显示两个以上窗口时,用户可以同时或分别在多个窗口上触发第一操作,如用户可以同时长按多个窗口、分别长按多个窗口、同时单击多个窗口、分别单击多个窗口、同时双击多个窗口或分别单击多个操作。电子设备可以将用户触发第一操作的两个以上窗口均缩小至预设大小。例如,图10为本申请实施例提供的一种窗口示意图,以用户在三个窗口(窗口A、窗口B和窗口C)同时触发长按手势操作为例,电子设备将窗口A、窗口B和窗口C缩小至预设大小。
一种可选的实施方式中,用户在窗口中触发第一操作之后,还可以触发拖拽手势操作。以图6所示的窗口A和窗口B为例,用户触发的拖拽手势操作可以为用户控制缩小后的窗口A移动、用户控制缩小后的窗口B移动或者用户同时控制缩小后的窗口A和缩小后的窗口B移动。
需要说明的是,当用户在多个窗口中触发长按手势操作后,在用户未执行抬起操作时,继续触发拖拽手势操作,可以控制缩小后的窗口发生位移。若用户触发长按手势操作后执行抬起操作,则用户触发的长按手势操作的窗口恢复到初始状态下窗口的位置和大小。也就是说,用户在多个窗口中同时触发长按手势操作后,缩小的窗口可以看作是预览模式下的窗口,若用户不再继续触发拖拽手势操作,则从预览模式下的窗口恢复为原窗口。
图11为本申请实施例提供的一种窗口位置示意图。下面结合图11对本申请实施例中窗口之间可能的位置关系进行介绍,用户在窗口A和窗口B上触发第一操作后,屏幕上显示缩小后的窗口A及窗口B。用户移动缩小后的窗口A和窗口B,在移动过程中,窗口A和窗口B的可能的位置关系可以参见图11。
参考图11中的(a),窗口A和窗口B为分离状态,此时窗口A和窗口B之间没有重叠的区域。参考图11中的(b),窗口A和窗口B为贴合状态,此时窗口A和窗口B的一条边重合。参考图11中的(c),窗口A和窗口B相互重叠,此时窗口A和窗口B中的部分区域重叠。参考图11中的(d),窗口A和窗口B完全重叠。
可以理解的是,假设用户操作图11中的(a)所示的两个窗口相互靠近,则在接下来的移动过程中,窗口A和窗口B将会出现图11中的(b)、(c)、(d)示出的位置关系。若用户继续按照目前的方向移动窗口A和窗口B,则窗口A和窗口B接下来会出现图11中的(e)、(f)、(g)示出的位置关系,也就是窗口A和窗口B反向的重叠、贴合、分离的位置关系。
基于上述介绍,下面对本申请实施例提供的分屏显示方法进行介绍。
图12为本申请实施例提供的一种分屏显示方法的流程图。参考图12,该方法包括以下步骤:
S1201:电子设备的显示屏中显示多个窗口,响应于用户触发的选中操作,电子设备分别缩小多个窗口。
一种可选的实施方式中,当前电子设备的显示屏中显示多个窗口,用户在触发选中操作后,电子设备可以将多个窗口分别缩小至预设大小,或者电子设备也可以按照预设的缩小比例缩小多个窗口。可以理解的是,当电子设备按照预设的缩小比例缩小多个窗口时,缩小后的多个窗口的大小与未触发选中操作时初始状态下的多个窗口的大小有关。例如,初始状态下窗口A的面积大于窗口B的面积,则按照预设的缩小比例缩小窗口A和窗口B后,缩小后的窗口A的面积大于窗口B的面积。
可选的,电子设备在缩小多个窗口时,可以以用户触发选中操作的触点为轴心点缩小多个窗口,从而调整缩小后的多个窗口的位置。
在本申请实施例中,选中操作例如可以为用户在多个窗口中同时或分别触发的第一操作,第一操作可以包括长按手势操作、单击手势操作或双击手势操作等等。需要说明的是,本申请实施例中选中操作还可以包括其它快捷手势操作。也就是说,本申请实施例中选中操作对应的快捷手势操作可以有多种实现的方式,本申请实施例中对用户触发选中操作的方式不做限定。
在用户触发选中操作后,电子设备调整多个窗口的方式可以参见图6-图9所示实施例提供的调整窗口大小及位置的方式实施,此处不再赘述。
S1202:响应于用户触发的针对第一窗口的移动操作,电子设备移动第一窗口,其中,第一窗口包含多个窗口中的至少一个窗口。
可选地,移动操作例如可以为用户在第一窗口上触发的拖拽手势操作。
需要说明的是,本申请实施例中选中操作与移动操作可以连续执行,例如,用户长按窗口,电子设备将该窗口缩小为预设尺寸,用户继续拖拽该窗口,电子设备移动该窗口。也就是说,用户需要连贯触发长按窗口以及拖拽窗口的操作,此时电子设备可以响应以上操作,移动缩小后的窗口。当用户仅触发选中操作而未触发移动操作时,若用户此时释放操作,则电子设备将选中操作对应的窗口恢复到初始状态的窗口大小及位置。
可选地,第一窗口可以包括多个窗口中的至少一个窗口,用户可以在第一窗口上触发移动操作。例如,用户可以在当前屏幕上的两个窗口上触发选中操作,并在两个窗口中的一个窗口上触发移动操作。此时电子设备将两个窗口均缩小为预设大小,并根据用户触发的移动操作调整移动操作对应的一个窗口的位置,另外一个窗口的位置不变,但由于移动操作对应的窗口的位置变化,两个窗口的相对位置发生了变化。
示例的,本申请实施例中响应用户触发的移动操作,电子设备移动第一窗口,在电子设备移动第一窗口的过程中,多个窗口之间的位置关系可以参见图11,在此不再赘述。
S1203:当移动操作结束时,电子设备分屏显示多个窗口。
其中,用户执行抬起操作,可以认为用户触发的移动操作结束。
电子设备确定移动操作结束后,可以确定移动操作后多个窗口之间的位置关系,并根据多个窗口之间的位置关系分屏显示多个窗口。其中,移动操作结束后多个窗口可能的位置关系同样可以参考图11。
本申请实施例在分屏显示多个窗口时包括两种分屏显示模式,在第一种分屏显示模式 中,电子设备将显示屏的显示区域划分为多个子区域,并在每个子区域显示对应的窗口。在第二种分屏显示模式中,电子设备将多个窗口作为一个窗口层叠组合,并在显示屏上显示该窗口层叠组合。下面对本申请实施例提供的两种分屏显示模式分别进行介绍:
分屏显示模式一、当多个窗口的位置关系满足预设条件时,电子设备可以将显示屏的显示区域划分为多个子区域,并在每个子区域上显示对应的窗口。
其中,预设条件可以包括:多个窗口中每两个相邻窗口不重叠且靠近的两条边之间的距离小于或等于第一阈值;或者多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或竖直长度小于或等于第二阈值;或者多个窗口中每两个相邻窗口重叠且重叠区域的面积小于第三阈值。以两个窗口为例,下面对本申请实施例中提供的三种预设条件进行介绍:
1、预设条件为两个窗口靠近的两条边之间的距离小于或等于第一阈值。
图13为本申请实施例提供的一种窗口位置关系示意图。参考图13,当两个窗口靠近的两条边之间的距离小于或等于第一阈值时,可以认为两个窗口之间的位置关系满足预设条件。
可以理解的是,两个窗口靠近的两条边可以为图13中的(a)示出的窗口A的右边和窗口B的左边、图13中的(b)示出的窗口A的左边和窗口B的右边、图13中的(c)示出的窗口A的下边和窗口B的上边、图13中的(d)示出的窗口A的上边和窗口B的下边。
2、预设条件为两个窗口重叠且重叠区域的水平长度或竖直长度小于或等于第二阈值。
图14为本申请实施例提供的又一种窗口位置关系示意图。在图14中,两个窗口互相重叠。参考图14中的(a),当两个窗口重叠,且两个窗口的重叠区域的水平长度或竖直长度小于或等于第二阈值,可以认为两个窗口之间的位置关系满足预设条件。其中,两个窗口的重叠区域的水平长度为两个窗口的重叠区域与当前屏幕的底部或顶部平行的方向上的长度,两个窗口的重叠区域的竖直长度为两个窗口的重叠区域与当前屏幕的侧边平行的方向上的长度。举例来说,图15为本申请实施例提供的一种电子设备的屏幕示意图,电子设备可以横屏显示或竖屏显示,参考图15中的(a),当电子设备横屏显示时,两个窗口的重叠区域的水平长度如图中线段a的长度,两个窗口的重叠区域的竖直长度如图中线段b的长度。参考图15中的(b),当电子设备竖屏显示时,两个窗口的重叠区域的水平长度如图中线段c的长度,两个窗口的重叠区域的竖直长度如图中线段d的长度。
3、预设条件为两个窗口重叠且重叠区域的面积小于第三阈值。
参考图14中的(b),当两个窗口重叠,且两个窗口的重叠区域的面积小于第三阈值时,可以认为两个窗口之间的位置关系满足预设条件。其中,两个窗口的重叠区域的面积可以为位于底层的窗口被遮盖的区域,例如图14中的(b)中,两个窗口的重叠区域的面积可以为窗口B中被窗口A遮盖的区域的面积。
可选地,电子设备在确定两个窗口之间的位置关系满足预设条件时,在屏幕上分屏显示两个窗口。
需要说明的是,本申请实施例中,电子设备分屏显示两个或两个以上窗口时,可以将显示屏的显示区域分为从左到右排列的多个子区域,或可以将显示屏的显示区域分为从上到下排列的多个子区域,并在每个子区域内对应的一个窗口。举例来说,假设电子设备分屏显示两个窗口,图16为本申请实施例提供的一种分屏显示的示意图,如图16中的(a)所示,电子设备可以将显示屏的显示区域分为左右两个子区域,并在每个子区域中显示一 个窗口;或者如图16中的(b)所示,电子设备还可以将显示屏的显示区域分为上下两个子区域,并在每个子区域中显示一个窗口。
本申请实施例对电子设备如何将显示屏的显示区域分为多个子区域并不限定,例如,可以预先设置当电子设备横屏显示时,默认将显示区域分为从左到右排列的多个子区域;当电子设备竖屏显示时,默认将显示区域分为从上到下排列的多个子区域。又例如,电子设备确定两个窗口之间的位置关系如图13中的(a)所示时,将显示区域分为左右两个子区域,窗口A占满左侧区域显示,窗口B占满右侧区域显示;电子设备确定两个窗口之间的位置关系如图13中的(c)所示时,将屏幕分为上下两个子区域,窗口A占满上方区域显示,窗口B占满下方区域显示。当然,其它将显示屏的显示区域划分为多个子区域的方式在本申请实施例中依然适用。
在一些实施例中,电子设备在分屏显示多个窗口时,还可以根据多个窗口之间的位置关系确定分屏显示多个窗口时的比例。以两个窗口为例,当电子设备确定两个窗口的重叠区域的水平长度或竖直长度小于或等于第四阈值,或者两个窗口的重叠区域的面积大于第五阈值时,电子设备将屏幕均分为两个显示区域,并在每个显示区域内显示一个窗口。例如此时电子设备分屏显示的两个窗口可以如图16中的(a)所示。其中,第四阈值小于第二阈值,第五阈值小于第三阈值,也就是说,此时两个窗口的位置关系仍然满足上述的预设条件。
当电子设备确定两个窗口的重叠区域的水平长度或竖直长度大于第四阈值或该重叠区域的面积大于第五阈值时,电子设备可以根据当前两个窗口的位置关系确定分屏比例。
可选的,电子设备在根据两个窗口的位置关系确定分屏比例时,可以先确定两个窗口的层级关系,两个窗口的层级关系可以用于表示两个窗口在显示屏进行显示时所处的图层位置,例如两个窗口在显示屏显示时,一个窗口位于顶层,另一个窗口位于底层。本申请实施例中电子设备可以根据以下方式确定两个窗口的层级关系:
方式1:当初始状态下两个窗口的位置关系为重叠时,用户执行移动操作后的两个窗口的层级关系与初始状态的两个窗口的层级关系保持一致。
在用户未触发选中操作时,初始状态下的两个窗口的位置关系若为重叠,则两个窗口之间存在层级关系,例如,图17为本申请实施例提供的一种窗口之间的层级关系示意图,参考图17中的(a),初始状态下的窗口A位于顶层,窗口B位于底层,此时窗口A与窗口B重叠,窗口A会遮挡窗口B中与窗口A重叠的区域。参考图17中的(b),在用户触发移动操作后,窗口A和窗口B重叠,此时窗口A和窗口B可以保持初始状态下窗口A和窗口B之间的层级关系,也就是说,窗口A位于顶层,窗口B位于底层。
方式2:两个窗口中,窗口的中心点位置与显示屏底部距离更短的窗口位于底层,窗口的中心点位置与屏幕底部距离更长的窗口位于顶层;或者,窗口的中心点位置与显示屏底部距离更短的窗口位于顶层,窗口的中心点位置与屏幕底部距离更长的窗口位于底层。
图18为本申请实施例提供的一种窗口中心点与显示屏底部距离的示意图。参考图18,电子设备可以计算窗口A的中心点与显示屏底部之间的第一距离,以及计算窗口B与显示屏底部之间的第二距离,比较第一距离和第二距离,将其中数值更大的距离对应的窗口置为顶层。例如,图18中的(a),当第一距离大于第二距离时,电子设备将窗口A置于顶层,并将窗口B置于底层。或者,电子设备也可以将第一距离和第二距离中数值更大的距离对应的窗口置为底层,例如,图18中的(b),当第一距离大于第二距离时,电子设备 将窗口A置于底层,并将窗口B置于顶层。
需要说明的是,在本申请一些实施例中,电子设备也可以根据窗口与显示屏顶部之间的距离确定两个窗口的目标层级关系,例如,两个窗口中,窗口的中心点位置与显示屏顶部距离更短的窗口位于底层,窗口的中心点位置与屏幕顶部距离更长的窗口位于顶层;或者,窗口的中心点位置与显示屏顶部距离更短的窗口位于顶层,窗口的中心点位置与屏幕顶部距离更长的窗口位于底层。
方式3:电子设备根据预设规则确定两个窗口之间的层级关系。
例如,预设规则可以为靠近显示屏左边的窗口位于顶层。
又例如,预设规则可以为用户触发移动操作后发生位移的距离更长的窗口位于顶层。
当然,其它可以用于区分两个窗口层级关系的预设规则在本申请实施例中也适用,本申请实施例对此不作限定。
电子设备在确定两个窗口的层级关系后,可以根据两个窗口之间的非遮盖区域的水平长度比值、竖直长度比值或者面积比值确定分屏比例。
例如,图19为本申请实施例提供的一种用户释放操作后,两个窗口之间的位置关系示意图。参考图19中的(a)、(b)和(c),窗口A位于底层,窗口B位于顶层。窗口A中的部分区域被窗口B遮盖。
可选的,电子设备可以计算窗口A和窗口B中非遮盖区域的水平长度比值,并将该水平长度比值作为分屏比例。参考图19中的(a),为便于计算,可以定义图19中的(a)中窗口A的阴影区域为窗口A的非遮盖区域。窗口A和窗口B中非遮盖区域的水平长度比值为W
A:W
B=2:3,则如图9中的(c)所示,电子设备在分配显示窗口A和窗口B时,窗口A与窗口B的面积比值也可以为设置为2:3。也就是说,假设将显示屏的显示区域划分为左右两个子区域,显示屏的底边长为w,则分屏显示后窗口A的底边长为(2/5)W,窗口B的底边长为(3/5)W。
可选的,电子设备也可以计算窗口A和窗口B中非遮盖区域的竖直水平长度比值,并将该竖直水平比值作为分屏比例。参考图19中的(b),为便于计算,可以定义图19中的(a)中窗口A的阴影区域为窗口A的非遮盖区域。例如,窗口A和窗口B中非遮盖区域的竖直长度比值为L
A:L
B=1:2,则如图9中的(d)所示,电子设备在分配显示窗口A和窗口B时,窗口A与窗口B的面积比值也可以为设置为1:2。也就是说,假设将显示屏划分为上下两个子区域,显示屏的侧边长为L,则分屏显示后窗口A的侧边长为(1/3)L,窗口B的侧边长为(2/3)L。
可选的,电子还可以计算窗口A和窗口B中非遮盖区域的面积比值,并将该面积比值作为分配比例。参考图19中的(a),为便于计算,可以定义图19中的(a)中窗口A的阴影区域为窗口A的非遮盖区域。电子设备可以计算窗口A中非遮盖区域与窗口B的面积比值,如计算窗口A的非遮盖区域与窗口B的面积比值为2:3。则如图9中的(c)所示,电子设备在分屏显示窗口A和窗口B时,窗口A与窗口B的面积比值也可以为设置为2:3。也就是说,假设将显示屏的显示区域划分为左右两个子区域,显示屏的底边长为w,则分屏显示后窗口A的底边长为(2/5)W,窗口B的底边长为(3/5)W。
分屏显示模式二、当多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或竖直长度大于第二阈值,或多个窗口中每两个相邻窗口重叠且重叠区域的面积大于第三阈值时, 电子设备将多个窗口作为一个窗口层叠组合,并显示该窗口层叠组合。
例如,以两个窗口为例,图20为本申请实施例提供的一种窗口层叠组合示意图。参考图20中的(a),窗口A和窗口B之间重叠区域的水平长度大于第二阈值;或者参考图20中的(b),窗口A和窗口B之间重叠区域的竖直长度大于第二阈值;或者参考图20中的(c),窗口A和窗口B之间重叠区域的面积大于第三阈值。电子设备将窗口A和窗口B作为一个如图20中的(d)所示的窗口层叠组合。在该窗口层叠组合中,每个窗口的大小可以与显示屏的显示区域的大小相同。电子设备可以全屏显示该窗口层叠组合,用户可以通过按钮或快捷手势切换窗口层叠组合的前后顺序。通过该方式,本申请实施例提供一种用户可以便捷的在全屏显示的多个窗口之间进行切换浏览的方式。
通过本申请实施例提供的分屏显示方法,用户可以在电子设备的屏幕上显示的多个窗口上触发便捷手势操作,电子设备根据检测到的用户触发的操作自动分屏显示多个窗口,无需用户手动调整多个窗口的大小即可实现分屏显示,简化用户操作,有效提升分屏功能的实用性,进而提升用户体验。
本申请一种可选的实施方式中,当电子设备分屏显示多个窗口时,还可以将分屏显示的多个窗口作为一个整体,如将分屏显示的多个窗口作为一个目标窗口。该目标窗口与未参与分屏显示的应用的窗口具有同样的交互层级属性。具体来说,用户可以通过快捷手势操作切换当前显示屏中显示的窗口,若当前显示屏显示目标窗口,用户触发切换到其它窗口的操作,则电子设备可以将目标窗口作为一个整体切换至后台运行,并将用户选择的其它窗口切换至前台运行。例如,图21为本申请实施例提供的一种多任务管理界面示意图。参考图21,在多任务管理界面中,目标窗口可以作为多任务管理界面中的一个任务,用户可以在多任务管理界面选择在电子设备前台运行的任务。如用户选择目标窗口,则电子设备在显示屏中显示窗口A和窗口B分屏显示的目标窗口;如用户选择窗口C,则电子设备在显示屏中全屏显示窗口C。
示例的,目标窗口也可以作为一个整体移动位置。例如,图22为本申请实施例提供的一种显示屏示意图。在该显示屏中,窗口A和窗口B组成目标窗口,此时,用户可以触发针对目标窗口的移动操作,以控制目标窗口移动,目标窗口与窗口C、窗口D具有同样的交互层级属性。
示例的,目标窗口还可以作为一个整体调整大小。例如,图23为本申请实施例提供的一种目标窗口的示意图。用户可以触发针对目标窗口的缩放操作,以调整目标窗口大小,电子设备可以根据该缩放操作调整目标窗口的大小,此时,目标窗口中的多个窗口的大小同时变化。参考图23,例如用户可以通过控制设备使光标悬浮至目标窗口的任意边缘位置且光标的停留时间大于预设的时间阈值,此时显示屏上显示窗口尺寸调整的图标,用户可以通过控制设备拖拽该图标,以触发缩放操作。
示例的,目标窗口还可以具有一个整体控制的菜单栏。例如,图24为本申请实施例提供的一种目标窗口的示意图。参考图24,目标窗口的顶部可以显示一个用于控制目标窗口的菜单栏,该菜单栏中例如可以包括最小化按钮、最大化按钮和关闭按钮。可选的,该菜单栏可以隐藏,例如参考图24,用户通过控制设备使光标悬浮于目标窗口的顶端时,电子设备在显示屏中目标窗口的顶端显示目标窗口的菜单栏。
下面对本申请实施例中用户点击目标窗口的菜单栏中不同按钮后的目标窗口的显示 效果进行介绍。
图25为本申请实施例提供的一种最小化目标窗口的示意图。电子设备可以响应于用户触发的针对目标窗口的最小化操作,退出显示目标窗口,并将目标窗口对应的图标保留到任务栏中。例如参考图25,用户点击菜单栏中的最小化按钮,电子设备控制不在当前显示屏中显示目标窗口,并将目标窗口对应的图标保留到显示屏底部的任务栏中。
图26为本申请实施例提供的一种最大化目标窗口的示意图。电子设备可以响应于用户触发的针对目标窗口的最大化操作,将目标窗口的大小调整为显示屏的显示区域的大小。例如参考图26,当目标窗口未占满全部显示屏时,用户点击菜单栏中的最大化按钮,电子设备将目标窗口的大小调整为全屏。当目标窗口在显示屏中全屏显示时,原最大化按钮的位置切换为缩小按钮,用户点击缩小按钮,电子设备缩小目标窗口的大小,使目标窗口在显示屏的部分区域显示。
图27为本申请实施例提供的一种退出分屏显示的示意图。电子设备可以响应于用户触发的针对目标窗口的退出操作,将多个窗口恢复至用户未触发选中操作时的初始状态,或关闭目标窗口。例如参考图27,用户点击菜单栏中的关闭按钮,电子设备退出分屏显示多个窗口,多个窗口恢复至未分屏显示的初始状态,如图27中的(a)所示,窗口A和窗口B恢复到初始状态。或者,用户点击菜单栏中的关闭按钮,电子设备退出分屏显示多个窗口,同时关闭多个窗口,如图27中的(b)所示,显示屏显示电子设备的桌面。
需要说明的是,本申请实施例中电子设备可以将目标窗口作为一个窗口,控制目标窗口的显示,或者电子设备也可以在目标窗口中的一个窗口中检测到用户触发的操作后,向目标窗口中的其它窗口发送同样的控制指令,以使目标窗口中的多个窗口作为一个整体显示。例如,以调整目标窗口位置为例,参考图21,当用户在目标窗口上触发移动目标窗口的操作,若用户触发该操作的触点位于窗口A中,电子设备可以控制窗口A响应用户触发的操作,移动窗口A。同时,电子设备可以向窗口B发送相同的控制指令,以使窗口B进行相同的位移。可以理解的是,在这种情况下,用户观察到的依然是目标窗口作为一个整体进行移动的效果。
在一些实施例中,电子设备显示目标窗口时,目标窗口中的每个窗口均具有自身的菜单栏,每个窗口自身的菜单栏均可以包括最小化按钮、最大化按钮和关闭按钮。用户可以通过点击任意一个窗口的菜单栏中的按钮切换显示方式。
可选的,电子设备在显示目标窗口时,响应于用户触发的针对第二窗口的最大化操作,电子设备将组成目标窗口的多个窗口作为一个窗口层叠组合,并显示该窗口层叠组合。其中,第二窗口为多个窗口中的任一个窗口,用户触发的针对第二窗口的最大化操作可以为用户点击第二窗口的菜单栏中的最大化按钮。举例来说,图28为本申请实施例提供的一种目标窗口的示意图。参考图28,用户点击窗口A的最大化按钮,电子设备全屏显示窗口A并且将窗口B的大小也调整为全屏大小,此时窗口A和窗口B作为一个窗口层叠组合。用户可以点击或上下滑动全屏显示的窗口A中的导航点,以切换窗口A和窗口B显示的前后顺序。在电子设备全屏显示窗口A时,用户再次点击菜单栏中的最小化按钮,电子设备再次分屏显示窗口A和窗口B。
基于以上实施例,本申请实施例还提供了一种计算机程序产品,当所述计算机程序在计算机上运行时,使得所述计算机执行图12所示的实施例提供的分屏显示方法。
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行图12所示的实施例提供的分屏显示方法。其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现图12所示的实施例提供的分屏显示方法。
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现图12所示的实施例提供的分屏显示方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (18)
- 一种分屏显示方法,应用于电子设备,其特征在于,所述方法包括:在显示屏中显示多个窗口;响应于用户触发的选中操作,分别缩小所述多个窗口;响应于用户触发的针对缩小后的第一窗口的移动操作,移动所述第一窗口,其中,所述第一窗口包含所述多个窗口中的至少一个窗口;当所述移动操作结束时,分屏显示所述多个窗口。
- 如权利要求1所述的方法,其特征在于,所述分别缩小所述多个窗口,包括:分别缩小所述多个窗口至预设大小。
- 如权利要求1或2所述的方法,其特征在于,所述分别缩小所述多个窗口,包括:以所述用户触发所述选中操作的触点为轴心点,分别缩小所述多个窗口。
- 如权利要求1至3任一项所述的方法,其特征在于,所述选中操作包括:所述用户同时或分别对所述多个窗口中每个窗口进行第一操作。
- 如权利要求4所述的方法,其特征在于,所述第一操作包括长按手势操作、单击手势操作或双击手势操作。
- 如权利要求5所述的方法,其特征在于,当所述选中操作为所述用户同时对所述多个窗口中每个窗口进行长按手势操作时,所述针对缩小后的第一窗口的移动操作为所述用户触发所述选中操作后,针对所述第一窗口未执行抬起操作,并对所述第一窗口进行拖拽手势操作。
- 如权利要求1-6任一项所述的方法,其特征在于,所述分屏显示所述多个窗口,包括:当所述多个窗口中每两个相邻窗口不重叠且靠近的两条边之间的距离小于或等于第一阈值,或所述多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或者竖直长度小于或等于第二阈值,或所述多个窗口中每两个相邻窗口重叠且重叠区域的面积小于第三阈值时,将所述显示屏的显示区域划分为多个子区域,其中,所述多个子区域与所述多个窗口一一对应;分别在每个子区域上显示对应的窗口。
- 如权利要求7所述的方法,其特征在于,所述将所述显示屏的显示区域划分为多个子区域,包括:当所述重叠区域的水平长度或竖直长度大于第四阈值,或者所述重叠区域的面积大于第五阈值时,根据所述多个窗口的位置关系确定分屏比例,按照所述分屏比例将所述显示屏的显示区域划分为所述多个子区域;其中,所述第四阈值小于所述第二阈值,所述第五阈值小于所述第三阈值。
- 如权利要求8所述的方法,其特征在于,所述根据所述多个窗口的位置关系确定分屏比例,包括:确定所述多个窗口的目标层级关系,并根据所述目标层级关系和所述多个窗口的位置关系确定所述分屏比例;其中,所述分屏比例与所述多个窗口的非遮盖区域的水平长度比值或者竖直长度比值或者面积比值相关。
- 如权利要求9所述的方法,其特征在于,所述确定所述多个窗口的目标层级关系, 包括:将所述用户未触发所述选中操作时所述多个窗口的层级关系作为所述目标层级关系;或者根据所述多个窗口中每个窗口的中心点与所述显示屏底部或者顶部之间的距离确定所述目标层级关系;或者根据预设规则确定所述目标层级关系。
- 如权利要求1-6任一项所述的方法,其特征在于,所述分屏显示所述多个窗口,包括:当所述多个窗口中每两个相邻窗口重叠且重叠区域的水平长度或竖直长度大于第二阈值,或所述多个窗口中每两个相邻窗口重叠且重叠区域的面积大于第三阈值时,将所述多个窗口作为一个窗口层叠组合,并显示所述窗口层叠组合;其中,所述窗口层叠组合中任一个窗口的大小与显示屏的显示区域的大小相同。
- 如权利要求1-10任一项所述的方法,其特征在于,在所述分屏显示所述多个窗口之后,还包括:响应于用户触发的针对第二窗口的最大化操作,将所述多个窗口作为一个窗口层叠组合,并显示所述窗口层叠组合;其中,所述第二窗口为所述多个窗口中的任一个窗口,所述窗口层叠组合中任一个窗口的大小与显示屏的显示区域的大小相同。
- 如权利要求1-12任一项所述的方法,其特征在于,在所述分屏显示所述多个窗口之后,还包括:响应于用户触发的针对目标窗口的移动操作,移动所述目标窗口;或者响应于用户触发的针对所述目标窗口的缩放操作,调整所述目标窗口的大小;其中,所述目标窗口为分屏显示的所述多个窗口组成的窗口。
- 如权利要求13所述的方法,其特征在于,所述方法还包括:响应于用户触发的针对所述目标窗口的最小化操作,退出显示所述目标窗口,并将所述目标窗口对应的图标保留到任务栏中;或者响应于用户触发的针对所述目标窗口的最大化操作,将所述目标窗口的大小调整为显示屏的显示区域的大小;或者响应于用户触发的针对所述目标窗口的退出操作,将所述多个窗口恢复至用户未触发所述选中操作时的初始状态,或关闭所述目标窗口。
- 如权利要求1-14任一项所述的方法,其特征在于,所述多个窗口为两个窗口。
- 一种电子设备,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于读取所述至少一个存储器所存储的计算机程序,以执行如权利要求1-15中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1-15中任一所述的方法。
- 一种计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行权利要求1-15中任一所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111163804.X | 2021-09-30 | ||
CN202111163804.XA CN115904164A (zh) | 2021-09-30 | 2021-09-30 | 一种分屏显示方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023051354A1 true WO2023051354A1 (zh) | 2023-04-06 |
Family
ID=85739417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/120256 WO2023051354A1 (zh) | 2021-09-30 | 2022-09-21 | 一种分屏显示方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115904164A (zh) |
WO (1) | WO2023051354A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106537319A (zh) * | 2016-10-31 | 2017-03-22 | 北京小米移动软件有限公司 | 分屏显示方法及装置 |
CN111208925A (zh) * | 2019-09-30 | 2020-05-29 | 华为技术有限公司 | 一种建立应用组合的方法与电子设备 |
WO2020213834A1 (ko) * | 2019-04-19 | 2020-10-22 | 삼성전자 주식회사 | 복수의 어플리케이션의 실행화면들을 표시하는 전자 장치 및 그의 동작 방법 |
CN112198929A (zh) * | 2020-09-30 | 2021-01-08 | 联想(北京)有限公司 | 一种控制方法及装置 |
CN112540709A (zh) * | 2020-12-21 | 2021-03-23 | 维沃移动通信有限公司 | 分屏显示方法和装置、电子设备及可读存储介质 |
-
2021
- 2021-09-30 CN CN202111163804.XA patent/CN115904164A/zh active Pending
-
2022
- 2022-09-21 WO PCT/CN2022/120256 patent/WO2023051354A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106537319A (zh) * | 2016-10-31 | 2017-03-22 | 北京小米移动软件有限公司 | 分屏显示方法及装置 |
WO2020213834A1 (ko) * | 2019-04-19 | 2020-10-22 | 삼성전자 주식회사 | 복수의 어플리케이션의 실행화면들을 표시하는 전자 장치 및 그의 동작 방법 |
CN111208925A (zh) * | 2019-09-30 | 2020-05-29 | 华为技术有限公司 | 一种建立应用组合的方法与电子设备 |
CN112198929A (zh) * | 2020-09-30 | 2021-01-08 | 联想(北京)有限公司 | 一种控制方法及装置 |
CN112540709A (zh) * | 2020-12-21 | 2021-03-23 | 维沃移动通信有限公司 | 分屏显示方法和装置、电子设备及可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN115904164A (zh) | 2023-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114764298B (zh) | 一种跨设备的对象拖拽方法及设备 | |
WO2021036571A1 (zh) | 一种桌面的编辑方法及电子设备 | |
CN111966252A (zh) | 应用窗口显示方法和电子设备 | |
KR20210068097A (ko) | 시스템 탐색 바 표시 제어 방법, 그래픽 사용자 인터페이스 및 전자 디바이스 | |
CN111225108A (zh) | 一种通信终端及负屏界面的卡片显示方法 | |
US20220374118A1 (en) | Display Method and Electronic Device | |
CN112114733B (zh) | 一种截屏、录屏方法、移动终端及计算机存储介质 | |
EP4365722A1 (en) | Method for displaying dock bar in launcher and electronic device | |
EP4373062A1 (en) | Display method, electronic device, and storage medium | |
WO2022262550A1 (zh) | 一种拍摄视频的方法及电子设备 | |
US20240086035A1 (en) | Display Method and Electronic Device | |
EP4198709A1 (en) | Navigation bar display method, display method and first electronic device | |
WO2023051354A1 (zh) | 一种分屏显示方法及电子设备 | |
CN116204254A (zh) | 一种批注页面生成方法、电子设备及存储介质 | |
WO2024027504A1 (zh) | 一种应用显示方法及电子设备 | |
WO2023217142A1 (zh) | 窗口尺寸调整方法、相关装置及通信系统 | |
WO2024007966A1 (zh) | 一种多窗口显示方法及设备 | |
WO2024169305A1 (zh) | 应用管理的方法和电子设备 | |
WO2022262453A1 (zh) | 一种异常提示方法及电子设备 | |
WO2023045774A1 (zh) | 显示方法及电子设备 | |
WO2024012354A1 (zh) | 一种显示方法及电子设备 | |
CN115291771B (zh) | 实现图标移动的方法及装置 | |
WO2024125301A1 (zh) | 显示方法和电子设备 | |
WO2022262547A1 (zh) | 一种拍摄视频的方法及电子设备 | |
WO2024139934A1 (zh) | 应用程序多窗口展示方法和电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22874741 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22874741 Country of ref document: EP Kind code of ref document: A1 |