WO2024007966A1 - Multi-window display method and device - Google Patents

Multi-window display method and device Download PDF

Info

Publication number
WO2024007966A1
WO2024007966A1 PCT/CN2023/104198 CN2023104198W WO2024007966A1 WO 2024007966 A1 WO2024007966 A1 WO 2024007966A1 CN 2023104198 W CN2023104198 W CN 2023104198W WO 2024007966 A1 WO2024007966 A1 WO 2024007966A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
area
display
display screen
electronic device
Prior art date
Application number
PCT/CN2023/104198
Other languages
French (fr)
Chinese (zh)
Inventor
李伟
张亚男
何天璐
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024007966A1 publication Critical patent/WO2024007966A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04809Textured surface identifying touch areas, e.g. overlay structure for a virtual keyboard

Definitions

  • the present application relates to the field of electronic equipment, and in particular, to a multi-window display method and equipment.
  • terminals such as mobile phones have become electronic devices that are frequently used in people's daily lives and work. A large part of people's lives and work can be completed on mobile phones.
  • multiple windows can be displayed on the mobile phone, and different content can be displayed in each window, making it convenient for users to handle business in different windows.
  • problems such as the virtual keyboard blocking the interface content, which affects the user experience.
  • Embodiments of the present application provide a multi-window display method and device, which can avoid blocking the window content when calling up the virtual keyboard and improve the input efficiency of the terminal.
  • this application provides a multi-window display method, which can be applied to electronic devices.
  • the method includes: the electronic device displays a first window in the full screen of the display screen, and displays a second window in the first area of the display screen; wherein , the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the electronic device receives the first operation, the first operation is used to instruct the display of the virtual keyboard; in response to the first operation, The electronic device displays the second window in the second area of the display screen, displays the first window in the third area of the display screen, and displays the virtual keyboard in the fourth area of the display screen; wherein the second area, the third area and the fourth area Do not overlap each other.
  • the size of the full-screen window can be automatically adjusted, thereby avoiding the virtual keyboard from blocking the window display content.
  • the first and second areas are identical. That is to say, the size and position of the second window may not be adjusted, and only the position and size of the first window may be adjusted.
  • the first area is different from the second area.
  • the second window displayed in the first area has the same size as the second window displayed in the second area; or, the second window displayed in the first area has the same size as the second window displayed in the second area.
  • the size of the second window displayed in the second area is smaller than the size of the second window displayed in the first area. That said, the size/position of the second window can also be adjusted.
  • the size of the second window displayed in the second area is smaller than the size of the second window displayed in the first area, including: the height of the second window displayed in the second area is smaller than the height of the second window displayed in the first area. The height of the second window displayed in an area.
  • the electronic device displays a second window in a second area of the display screen, displays a first window in a third area of the display screen, and displays a virtual keyboard in a fourth area of the display screen, including: the electronic device displays A virtual keyboard is drawn in a fixed area of the display screen; the fourth area is the fixed area; the electronic device determines the area in the display screen other than the virtual keyboard as a drawing area that allows drawing of the application window; the electronic device draws the first window in the drawing area and a second window; the drawing area includes a second area and a third area.
  • the electronic device reduces the first window from the first size to the second size in equal proportions. Through this method, the content displayed in the first window can be adjusted proportionally.
  • the electronic device in response to the first operation, displays a second window in a second area of the display screen, and displays a first window in a third area of the display screen, including: in response to the first operation, Reduce the first window so that the second window is displayed in the second area of the display screen and the first window is displayed in the third area of the display screen; or, in response to the first operation, reduce the first window, move upward, upward and Move the second window to the left, or move it up and to the right, so that the second window is displayed in the second area of the display screen, and the first window is displayed in the third area of the display screen; or, in response to the first operation, zoom out
  • the first window moves up, up and to the left, or the second window moves up and to the right, and the second window is reduced so that the second window is displayed in a second area of the display screen, and in a third area of the display screen Show first window.
  • the second area, the third area and the fourth area fill the display area of the display screen.
  • the second window displayed in the second area, the first window displayed in the third area, and the fourth window displayed by the virtual keyboard exactly fill the display area of the display screen, which can improve the efficiency of the display screen and the interface display. of aesthetics.
  • the method further includes: the electronic device receives a drag operation acting on adjacent edges of the first window and the second window; in response to the drag operation, the electronic device controls the second area to adjust to the fifth area, and control the third area to be adjusted to the sixth area, the fifth area displays the second window, and the sixth area displays the first window.
  • the user can further adjust the sizes of the first window and the second window to improve the flexibility of multi-window display.
  • the first operation is an operation that acts on the second window.
  • the first operation is an operation that acts on the input box of the second window.
  • the method further includes: the electronic device receives a second operation that acts on the first window or the second window; in response to the second operation, the virtual keyboard disappears, and the electronic device displays the first full-screen display on the display screen. window to display a second window in the first area of the display screen.
  • the first window and the second window can be restored to their original display status, which can improve the user's operating experience.
  • the method further includes: the electronic device receives a first preset operation; in response to the first preset operation, the electronic device displays the second window in the full screen of the display screen, and displays the second window in the seventh area of the display screen.
  • a first window wherein the first area and the seventh area are the same or different.
  • the electronic device can switch the display form of the first window and the second window through the first preset operation.
  • the present application provides a multi-window display method, which method can be applied to electronic devices.
  • the method includes: the electronic device displays a first window in the full screen of the display screen, and displays a second window in the first area of the display screen; wherein , the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the electronic device receives the first preset operation; in response to the first preset operation, the electronic device displays the full screen on the display screen
  • the second window displays the first window in the seventh area of the display screen; wherein the first area and the seventh area are the same or different.
  • the first preset operation is a gesture operation acting on the second window, or the first preset operation is a click operation acting on the switching control of the second window.
  • the electronic device can conveniently switch the display form of the full-screen window and the small window through the first preset operation, thereby improving the user's experience of using multi-window display.
  • a third aspect provides a display device, which can be applied to electronic equipment.
  • the device can include: a display unit configured to display a first window in full screen on a display screen of the electronic device, and to display a second window in a first area of the display screen. Window; wherein, the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the input unit is used to receive the first operation, the first operation is used to instruct the display of the virtual keyboard; display The unit is further configured to display a second window in a second area of the display screen, a first window in a third area of the display screen, and a virtual keyboard in a fourth area of the display screen in response to the first operation; wherein, the The second area, the third area and the fourth area do not overlap with each other.
  • a fourth aspect provides a display device, which can be applied to electronic equipment.
  • the device can include: a display unit configured to display a first window in full screen on a display screen of the electronic device, and to display a second window in a first area of the display screen. window; wherein, the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the input unit is used to receive the first preset operation; the display unit is also used to respond to the third window.
  • the electronic device displays the second window in the full screen of the display screen, and displays the first window in the seventh area of the display screen; wherein the first area and the seventh area are the same or different.
  • a fifth aspect provides a computer-readable storage medium on which computer program instructions are stored.
  • the electronic device When the computer program instructions are executed by an electronic device, the electronic device enables the electronic device to implement the first aspect or any of the possible implementations of the first aspect.
  • the method described above, or the method described in any one of the second aspect or possible implementations of the second aspect is implemented.
  • an electronic device in a sixth aspect, includes a display screen, one or more processors and a memory; the display screen, the processor and the memory are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions,
  • the electronic device is caused to perform the method as described in any one of the first aspect or the possible implementation of the first aspect, or to perform the second aspect or the possible implementation of the second aspect. any one of the methods.
  • a computer program product including computer readable code, or a non-volatile computer readable storage medium carrying the computer readable code.
  • the computer readable code When the computer readable code is run in an electronic device, the electronic device
  • the processor in the device performs the method described in any one of the first aspect or the possible implementation of the first aspect, or performs the second aspect or the possible implementation of the second aspect. The method described in any of the possible implementation methods.
  • Figure 1 is a schematic diagram of a display interface in a related technology provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of a display interface in another related technology provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a display interface in yet another related technology provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a display interface in yet another related technology provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a multi-window display method provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a display interface provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of another multi-window display method provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 11 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 12 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 13 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 14 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 15 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application.
  • Figure 18 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • Figure 19 is a schematic flow chart of a multi-window display method provided by an embodiment of the present application.
  • Figure 20 is a schematic flow chart of another multi-window display method provided by an embodiment of the present application.
  • Figure 21 is a schematic diagram of the composition of a display device provided by an embodiment of the present application.
  • Figure 22 is a schematic diagram of the composition of a chip system provided by an embodiment of the present application.
  • the at least one involved in the embodiments of this application includes one or more; where multiple means greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order.
  • the first window and the second window do not represent the importance of the two or the order of the two, but are only used to differentiate the description.
  • "and/or" only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations.
  • the character "/" in this article generally indicates that the related objects are an "or" relationship.
  • multiple windows can be displayed on electronic devices (such as mobile phones).
  • the electronic device receives an operation for opening multiple windows
  • the multiple windows are displayed.
  • the operation for opening multiple windows can be various types of operations.
  • One implementation method is that, see (a) in Figure 1, the electronic device displays window A.
  • window A is a video playback window.
  • the smart multi-window application bar 101 can be called up, as shown in (b in Figure 1 ) shown.
  • the smart multi-window application bar 101 includes icons for various applications, such as icon, memo icon, etc.
  • Window B displays the multi-window interface as shown in (c) in Figure 1.
  • the interface shown in (c) in Figure 1 includes window B and window A, where window B is located on the upper layer of window A. Therefore, multiple windows can be opened in the manner shown in Figure 1.
  • the virtual keyboard area will be displayed at the bottom of the screen, and the virtual keyboard area blocks the video screen being played in window A. , which will have a greater impact on the user experience.
  • the user's purpose at this time may be to operate window B, but the display size of window B is small and inconvenient for the user to operate. Therefore, the user can switch window B to full-screen display, for example, by dragging By operating window B to the center of the screen, or by operating controls on window B, as shown in (e) in Figure 1, window B is switched to full-screen display.
  • window B is switched to full-screen display.
  • the user cannot watch the video images in window A at the same time, which affects the user's efficiency in using the electronic device. Further, the user can open the window A corresponding to the video application again through the smart multi-window application bar 101 as shown in (b) of Figure 1.
  • window A is located on the upper layer of window B, and the user can use the chat application and the video playback application at the same time.
  • window A is a video playback window. While the user is watching the video played in window A, he receives A notification message. When the electronic device receives the user's click operation or pull-down operation on the notification message, it can open window B of the application corresponding to the notification message, that is, display the multi-window interface as shown in (b) of Figure 2. Similar to Figure 1, the user can click on the input box in window B to perform input operations, or switch window B to full-screen display.
  • Figure 1 and Figure 2 are only examples of two ways to open multiple windows. In actual applications, multiple windows can also be opened through other ways (such as tapping the screen with your knuckles). Embodiments of the present application Not giving examples one by one.
  • window A may be a full-screen window (or understood as a full-screen application interface)
  • window B may be A small window is displayed suspended on window A, that is, the display area of window B is smaller than that of window A.
  • window B may be a freeform small window (or called: free window).
  • the free small window can be considered as a system-level floating window.
  • the free small window function the entire application window can be displayed in the form of a free small window. Regardless of whether the user switches pages or opens other applications or desktops, this free small window remains on top.
  • a free small window can be understood as having functions such as dynamic movement, size scaling, etc. on the display screen.
  • Various interfaces can be opened in the free small window.
  • free small windows can use view technology to lay out and draw information (text, images, etc.) in the interface to display various styles of interfaces to users.
  • a newly opened interface in a free window can overwrite a previously opened interface.
  • the position of the small window can be moved.
  • the window can be changed.
  • the position of B is as shown in (b) in Figure 3.
  • the size of the small window can be scaled.
  • the width of small window B can become larger, as in (b) in Figure 4.
  • the size of the small window can be scaled proportionally, or only the width or height can be increased, which is not limited in this application. It can be understood that when the position of the free small window is changed and/or the size is scaled, the interface in the free small window can also be correspondingly changed in position and/or resized to adapt to the change of the free small window.
  • the new interface when a user opens a new interface (for example, opening a new application through the smart multi-window application bar, or clicking on a notification message), the new interface will be displayed in the form of a small window. Due to the size of the small window It is small and it is inconvenient for users to operate the newly opened interface. If the user switches the new interface to full-screen display, the original window will disappear, and subsequent users need to open the original full-screen window again, which affects the user's experience of using the multi-window interface. In addition, when the user calls up the virtual keyboard, the area displayed by the virtual keyboard will block the original full-screen display interface, affecting the user experience.
  • embodiments of the present application provide a multi-window display method, which can be applied to electronic devices.
  • the display forms of the full-screen window and the small window can be switched conveniently.
  • the full-screen window can be automatically reduced, and the small window can be automatically adjusted in position and size, thereby avoiding the virtual keyboard from blocking the content displayed in the full-screen window and/or the small window. In this way, the user's experience using multi-window display can be improved.
  • the electronic device in the embodiment of the present application can be a mobile phone (such as a folding screen mobile phone, a candy bar mobile phone), a tablet computer, a handheld computer, a PC, a cellular phone, a personal digital assistant (PDA), a wearable Equipment (such as smart watches), vehicle-mounted computers, game consoles, and augmented reality (AR)/virtual reality (VR) equipment, etc.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • This embodiment does not place special restrictions on the specific form of the terminal.
  • the technical solution provided by this embodiment can be applied not only to the above-mentioned electronic devices (or mobile terminals), but also to other electronic devices, such as smart home devices (such as televisions).
  • the electronic device is a mobile phone as an example.
  • FIG. 5 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application. The methods in the following embodiments can be implemented in a mobile phone with the above hardware structure.
  • the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna.
  • Antenna 2 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 and display screen 194, etc.
  • the mobile phone may also include a mobile communication module 150, a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an environment.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or fewer components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and 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 processing unit (NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller can be the nerve center and command center of the phone.
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions 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.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM interface, and/or USB interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM interface SIM interface
  • USB interface universal asynchronous receiver/transmitter
  • the charging management module 140 is used to receive charging input from the charger. While the charging management module 140 charges the battery 142, it can also provide power to the mobile phone through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 can also receive input from the battery 142 to power the mobile phone.
  • the wireless communication function of the mobile phone can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a phone can be used to cover a single or multiple communication bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be reused as a diversity antenna for a wireless LAN.
  • antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G that are applied to the mobile phone.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed 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 provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a separate device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the mobile phone including wireless local area networks (WLAN) (such as Wi-Fi network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), Wireless communication solutions such as frequency modulation (FM), NFC, and infrared technology (infrared (IR)).
  • WLAN wireless local area networks
  • Bluetooth blue, BT
  • global navigation satellite system global navigation satellite system
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC global navigation satellite system
  • IR infrared technology
  • 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 mobile phone is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 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 (GPRS), 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 technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), 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
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the mobile phone implements display functions through the GPU, display screen 194, and application processor.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use 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).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the mobile phone can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.
  • the mobile phone may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • 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 mobile phone.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile phone.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area can store data created during the use of the mobile phone (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the mobile phone can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the mobile phone detects the strength of the touch operation according to the pressure sensor 180A.
  • the mobile phone can also calculate the touch position based on the detection signal of the pressure sensor 180A.
  • the gyro sensor 180B can be used to determine the movement posture of the mobile phone.
  • Air pressure sensor 180C is used to measure air pressure.
  • Magnetic sensor 180D includes a Hall sensor.
  • the mobile phone can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the acceleration sensor 180E can detect the acceleration of the mobile phone in various directions (generally three axes).
  • Distance sensor 180F for measuring distance.
  • the mobile phone can use the proximity light sensor 180G to detect when the user is holding the mobile phone close to the ear to talk, so that the screen can be automatically turned off to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • Fingerprint sensor 180H is used to collect fingerprints. The mobile phone can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take pictures with the fingerprint, answer incoming calls with the fingerprint, etc.
  • Temperature sensor 180J is
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K It forms a touch screen with the display screen 194, also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the mobile phone in a position different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation from the mobile phone.
  • the mobile phone can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the mobile phone interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the mobile phone uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone and cannot be separated from the mobile phone.
  • the software system of the electronic device is the Android system as an example to illustrate the software structure of the electronic device.
  • FIG. 6 is a schematic diagram of the software architecture of a terminal provided by an embodiment of the present application.
  • the software structure of electronic equipment can be a layered architecture.
  • the software can be divided into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the electronic device is an Android system, it may include an application layer (referred to as the application layer), an application framework layer (referred to as the framework layer) (framework, FWK), a hardware layer, and so on.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, etc.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed 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 the electronic device 100 . For example, call status management (including connected, hung up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, and more.
  • the notification manager allows applications 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. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines.
  • Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: 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 a variety of commonly used audio and video formats, as well as static 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, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the system library may also include a window processing module for controlling the hiding, appearance, shrinking, and enlarging of windows.
  • the window processing module may be a module in the system library, or may be a module in other layers, such as a module in the application framework layer or the kernel layer, which is not limited in the embodiment of the present application.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the touch sensor in the hardware layer receives a first input event acting on the second window.
  • the first input event includes operation type, operation time, position on the display screen, etc.
  • Touch sensors will be the first Input events are reported to higher levels, such as the window processing module in the system library. The higher level determines that the input event is a click operation on the input box in the second window, and then calls the display driver to display the virtual keyboard on the display screen.
  • Figure 7 is a schematic diagram of a multi-window display method provided by an embodiment of the present application.
  • the electronic device displays the first window in full screen.
  • the first window displays a first application, where the first application may be any application in the electronic device.
  • the first application is a video playback application.
  • the notification message may come from a second application in the electronic device, and the second application may be any application in the electronic device.
  • the first application and the second application are different applications.
  • the second application is a chat application.
  • the electronic device can open the second application corresponding to the notification message in the second window.
  • the second window displays an interface corresponding to the notification message, where the second window is a window displayed in full screen.
  • the first window can be automatically switched to a small window for display. The first window is located on the upper layer of the second window, and the display area of the first window is smaller than the display area of the second window.
  • the electronic device when the user receives the notification message, since the newly opened message is likely to be the message that the user wants to pay attention to, the electronic device can open the application window corresponding to the notification message in full screen form to facilitate the user to view the newly received message. Perform temporary processing.
  • the size and proportion of the initial small window after automatic switching may be default.
  • the small window may default to a vertically displayed window.
  • the size and proportion of the initial small window after automatic switching can be determined based on the interface content. For example, as shown in (c) in Figure 7, when a full-screen video interface is displayed in the first window , the initial small window after automatic switching can be a horizontally displayed window, which can make the content displayed in the small window more consistent with the proportion of the small window.
  • the size of the initial small window after automatic switching can be determined according to the type of application. For example, a video application corresponds to a horizontal small window, and a chat application corresponds to a vertical small window. This application does not limit this.
  • the user receives the notification message as an example.
  • the above process can also be similar. For example, when a user opens a new application by calling up the smart multi-window application bar, the newly opened application window can be displayed in full screen form, and the application window that was previously displayed in full screen will automatically switch to a small window display.
  • the user when the user is processing a temporary task (such as replying to a chat message) in the full-screen second window and needs to continue processing the main task (such as watching a video) in the first window, the user can use the first preset The operation switches the display form (or window form) of the first window and the second window.
  • the display form of the window may include full-screen display, small window display, etc.
  • the first window in response to the first preset operation, the first window is switched to full-screen display again, and the second window is switched to small window display.
  • the second window is located on the upper layer of the first window.
  • the display area is smaller than the display area of the first window.
  • the user can perform the first preset operation again to switch the first window to a small window display and the second window to a full-screen display, that is, as shown in (b) in Figure 7 or (c) in Figure 7 the display format shown. It can be understood that by performing the first preset operation, the user can freely switch the display forms of the first window and the second window, and freely choose whether to display the first window or the second window without interrupting the tasks in the first window and the second window. Tasks in the second window are processed in full screen, thereby improving the user's efficiency in multi-window operations.
  • the first preset operation may be a gesture operation.
  • the first preset operation may be a gesture operation that acts on a small window, or a gesture operation that acts on a full-screen window, or a gesture operation that drags a small window to a specific hotspot of the full-screen window, etc.
  • the status bar in the small window may display a switching control 801, a minimizing control 802, a closing control 803, etc.
  • the switching control 801 in the status bar of the small window the small window can be switched to a full-screen window, and at the same time, the full-screen window is switched to a small window.
  • the small window When receiving an operation for the minimize control 802 in the status bar of the small window, the small window can be minimized, for example, switched to a smaller window or a prompt bar.
  • the small window When receiving an operation for the close control 803 in the status bar of the small window, the small window can be closed, that is, only the full-screen window is displayed on the display screen.
  • the first preset operation may be an operation on a preset physical key or virtual key.
  • the physical key or virtual key may be preset by the system or predefined by the user. Taking the operation of physical buttons as an example, the user can switch the display mode of the first window and the second window by pressing the volume key twice in succession. It can be understood that the first preset operation can also be other operations, which is not limited in this application.
  • the background processing flow corresponding to the embodiment shown in Figure 7 will be described in detail below.
  • the background processing process may include the following steps:
  • Step 1 The electronic device displays the first window of the first application in full screen
  • Step 2 The electronic device receives the task of the second application
  • Step 3 The electronic device displays the second window of the second application in full screen and displays the first window of the first application in a small window;
  • Step 4 The electronic device receives the user's operation and switches the first window and the second window;
  • Step 5 The electronic device displays the first window of the first application in full screen and displays the second window of the second application in a small window.
  • the user can switch the first window and the second window through the first preset operation.
  • the display form of the mouth there may be multiple small windows on the full-screen window, and the user can switch the display modes of the target small window and the full-screen window by operating on the target small window.
  • the electronic device displays the second window in full screen, and the first window and the third window displayed in small windows are superimposed on the second window.
  • the first window in response to the second preset operation acting on the first window, the first window can be switched to full-screen display, and the second window can be switched to small window display.
  • the display mode of the target small window acted by the user can be switched between the full-screen window and the small window targeted by the user.
  • the third window can be switched to full-screen display, and the second window can be switched to small window display (not shown in the figure).
  • the second preset operation may be a gesture operation acting on the target small window, an operation acting on a control of the target small window, etc. This application does not limit this.
  • Figure 10 is a schematic diagram of another multi-window display method provided by an embodiment of the present application.
  • the electronic device displays the first window in full screen, and the first window displays the first application.
  • a second window displayed in the form of a small window is superimposed on the first window.
  • the second window is located in the upper right corner of the display screen, and the second window displays the second application.
  • the first application and the second application may be any application in the electronic device.
  • the virtual keyboard area may be displayed on the display screen.
  • the virtual keyboard area may be a fixed area of the display screen, such as the bottom area of the display screen.
  • the electronic device can display the area other than the virtual keyboard area on the display screen.
  • a drawing area that allows drawing of the application window is determined, and the first window and the second window are drawn in the drawing area.
  • the height of the second window is H1 and the height of the virtual keyboard area is H2.
  • the sum of H1 and H2 does not exceed the height of the display area of the electronic device display screen.
  • the first window can be reduced proportionally, thereby avoiding the virtual keyboard area from blocking the first window.
  • the width of the second window is W1
  • the width of the first window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the width of the display area of the electronic device display screen.
  • the height of the first window can be obtained based on the adjusted width W2 of the first window and the original aspect ratio of the first window.
  • the first window can also be proportionally reduced according to other methods.
  • the height of the first window can be automatically adjusted to H1, and the width of the first window can be obtained based on the adjusted height H1 of the first window and the original aspect ratio of the first window. This application does not limit this.
  • the height of the second window is H1 and the height of the virtual keyboard area is H2.
  • the sum of H1 and H2 does not exceed the height of the display area of the electronic device display screen.
  • the width of the first window can be adjusted according to the width of the second window.
  • the width of the second window is W1
  • the width of the first window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the width of the display area of the electronic device display screen.
  • the height of the second window can be adjusted to be the same as the first window, that is, to H1, to obtain better display effects.
  • the height of the second window can be adjusted to H3, the height of the virtual keyboard area is H2, the sum of H2 and H3 is equal to the height of the display area of the electronic device display screen.
  • the second window can be adjusted according to the remaining display area of the display screen. For example, the height of the second window can be adjusted to be the same as the first window, that is, adjusted to H3, and the width of the second window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the width of the display area of the electronic device. .
  • the sizes of both the first window and the second window can be adjusted to fill the display area of the display screen, thereby improving the display quality of the display screen. efficiency and the beauty of the interface display.
  • the size of the first window can be automatically adjusted, and ultimately the first window, the second window and the virtual keyboard area do not overlap, so that This avoids blocking the window content when displaying the virtual keyboard area, improving the user experience.
  • Figure 11 is a schematic diagram of another multi-window display method provided by an embodiment of the present application.
  • the electronic device displays the first window in full screen, and the first window displays the first application.
  • a second window displayed in the form of a small window is superimposed on the first window.
  • the second window is located in the middle right area of the display screen, and the second window displays the second application.
  • the first application and the second application may be any application in the electronic device.
  • the virtual keyboard area may be displayed in the bottom area of the screen.
  • the height of the second window is H1
  • the height of the virtual keyboard area is H2
  • the sum of H1 and H2 does not exceed the height of the display area of the electronic device display screen.
  • the position of the second window can be changed to avoid the virtual keyboard area from blocking the content displayed in the second window.
  • the second window can be moved to the upper right corner of the display screen.
  • the position of the second window can be moved according to the actual situation.
  • the second window can be moved upward, upward and left, upward and right, etc.
  • the moving direction of the second window may be related to its initial display position. For example, when the second window is initially displayed in the middle right area of the display screen, the second window may move upward and to the right. For example, the second window may move upward and to the right.
  • the second window When the window is initially displayed in the middle left area of the display screen, the second window can move upward and to the left, and this application does not impose restrictions on this.
  • the first window can be reduced proportionally, or the width of the first window can be adjusted according to the width of the second window, or the height of the first window can be adjusted according to the height of the second window, or the first window and The size of the second window can be adjusted to fill the display area of the display screen.
  • the relevant expressions of the embodiment shown in FIG. 10 please refer to the relevant expressions of the embodiment shown in FIG. 10 , which will not be described again in this application.
  • Figure 12 is a schematic diagram of another multi-window display method provided by an embodiment of the present application.
  • the electronic device displays the first window in full screen, and the first window displays the first application.
  • a second window displayed in the form of a small window is superimposed on the first window.
  • the second window is located in the upper right corner of the display screen, and the second window displays the second application.
  • the first application and the second application may be any application in the electronic device. For example, when the user clicks on the input box in the second window to input text, a virtual keyboard area may be displayed at the bottom of the screen.
  • the sum of the original height H1 of the second window and the virtual keyboard area H2 is greater than the height of the display area of the display screen. Therefore, when the user clicks on the input box in the second window to input text, the height of the second window can be reduced to H4.
  • the sum of H2 and H4 is equal to the height of the display area of the display screen, thereby avoiding the virtual keyboard area from blocking the second window.
  • the first window can be reduced proportionally, thereby avoiding the virtual keyboard area from blocking the first window.
  • the height of the first window can be adjusted to be the same as the first window, that is, adjusted to H4.
  • the width of the first window can be obtained based on the adjusted height H4 of the first window and the original aspect ratio of the first window.
  • the sum of the height H4 of the first window and the height H2 of the virtual keyboard area is equal to the height of the display area of the display screen.
  • the sum of the width of the first window and the width of the second window may be equal to the width of the display area of the display screen.
  • the sum of the width of the first window and the width of the second window may be smaller than the width of the display area of the display screen, and the height of the first window is equal to the height of the second window. The sum is less than the height of the display area of the display.
  • the first window, the second window and the virtual keyboard area can exactly fill the display area of the electronic device display screen.
  • the sum of the original height H1 of the second window and the virtual keyboard area H2 is greater than the height of the display area of the display screen. Therefore, when the user clicks on the input box in the second window to enter text, the height of the second window can be reduced to H4.
  • the sum of H2 and H4 is equal to the height of the display area of the display screen, thereby avoiding the virtual keyboard area from blocking the second window.
  • the second window can be adjusted according to the remaining display area of the display screen.
  • the height of the second window can be adjusted to be the same as the height of the first window, that is, adjusted to H4, and the width of the second window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the display area of the electronic device display. width.
  • the sizes of both the first window and the second window can be adjusted to fill the display area of the display screen, thereby improving the display quality of the display screen. efficiency and the beauty of the interface display.
  • the size of the second window can be Automatically adjust, and the size of the first window can also be automatically adjusted.
  • the first window, the second window and the virtual keyboard area do not overlap, thus avoiding the interference of the contents of the first window and the second window when the virtual keyboard area is displayed. Occlusion improves the user experience.
  • the second window is located in the middle area of the display screen.
  • the position of the second window is similar to that shown in Figure 11.
  • the movement is performed to avoid the virtual keyboard area from blocking the display content of the second window.
  • the second window can be moved to the upper right corner of the display.
  • the sizes of the first window and the second window can be adjusted accordingly as shown in (b) and (c) in Figure 12 , for example, the height of the second window as shown in (b) in Figure 12 is reduced. Small is H4, the height of the first window is adjusted to H4 and scaled down.
  • the position of the second window can be reduced and moved according to the actual situation. For example, the second window can be moved upward and reduced, moved upward and left and reduced, moved upward and right and reduced, etc.
  • the user clicks on the input box in the second window to trigger the display of the virtual keyboard area as an example for illustrative introduction. It can be understood that in other embodiments, the user can also click on the first The input box in the window triggers the display of the virtual keyboard area, or the user triggers the display of the virtual keyboard area through other methods.
  • the adjustment methods of the first window and the second window can refer to the relevant introductions in the above embodiments, and will not be described in detail here.
  • the position and/or size of the window can be restored to the display state before adjustment.
  • the positions and sizes of the first window and the second window can be restored.
  • the window display state before adjustment that is, the state shown in (a) in Figure 12).
  • the background processing process may include the following steps:
  • Step 1 The electronic device displays the first window of the first application in full screen and displays the second window of the second application in a small window;
  • Step 2 The electronic device receives the operation of displaying the virtual keyboard
  • Step 3 Adjust the position and/or size of the first window and/or the second window
  • Step 4 The electronic device displays the first window, the second window and the virtual keyboard area without overlapping each other;
  • Step 5 The electronic device receives the operation to close the virtual keyboard area
  • Step 6 The electronic device resumes displaying the first window of the first application in full screen and displaying the second window of the second application in a small window.
  • the first window and the second window can be restored to their original display positions and/or sizes.
  • the user can further adjust the size of the first window and/or the second window.
  • the user can adjust the sizes of the first window and the second window respectively.
  • the width of the first window gradually decreases.
  • the width of the second window gradually decreases.
  • the width of the other window will also be adjusted accordingly.
  • the sum of the widths of the first window and the second window is equal to the width of the display area of the display screen.
  • the width of the first window gradually decreases, and at the same time, the width of the second window gradually increases.
  • the width of the first window gradually increases and the width of the second window gradually decreases.
  • the user can further adjust the positions of the first window and the second window, for example, exchange the positions of the first window and the second window, etc.
  • the user can further manually adjust the size and/or position of the first window and/or the second window, thereby further Improved user experience for multi-window displays.
  • FIG. 16 is a schematic diagram of another multi-window display method provided by an embodiment of the present application.
  • the electronic device displays the first window in full screen, and the first window displays the first application.
  • the first window is superimposed with a second window and a third window displayed in the form of small windows.
  • the second window displays the second application, and the third window displays the third application.
  • the first application, the second application and the third application may be any application in the electronic device. For example, when the user clicks on the input box in the small window to trigger the display of the virtual keyboard area, the small window and/or the full-screen window acted upon by the user can be automatically adjusted.
  • the second window and the first window displayed in full screen can be automatically adjusted as shown in (a) of Figure 16 b), and the third window can be temporarily hidden, such as disappearing from the display or shrinking to a prompt bar, etc.
  • the third window and the first window displayed in full screen can be automatically adjusted to as shown in Figure 16 The state shown in (d), while the second window can be temporarily hidden.
  • the second window is located in the right area of the display area before adjustment, and the third window is located in the left area of the display area, as shown in (b) of Figure 16
  • the second window after adjustment can be located in the display area.
  • the upper right corner of the display area, as shown in (d) in Figure 16 the adjusted third window can be located in the upper left corner of the display area.
  • Figure 16 only schematically shows one possible way to adjust the full-screen window and small windows.
  • the automatically adjusted window can also be adjusted manually as shown in Figure 14 or Figure 15.
  • the size of the full-screen window that is, the first window
  • the last first window, the target small window clicked by the user, and the virtual keyboard area can be displayed without overlapping each other.
  • Other small windows may be small windows that the user does not want to pay attention to at this time. Therefore, other small windows can be temporarily hidden, such as disappearing from the display screen or shrinking to a prompt bar. Therefore, the display area can display the tasks that the user wants to focus on at this time, while also avoiding the virtual keyboard area from blocking the display content, improving the user experience.
  • the user can also trigger the display of the virtual keyboard area by clicking on the input box on the full-screen window.
  • the full-screen window and/or the target small window can be automatically adjusted to display the full-screen window, the target small window, and the virtual keyboard area without overlapping each other.
  • the target small window can be the small window most recently operated by the user and the window most recently opened by the user. a small window, or a preset small window for a certain application, etc.
  • the automatically adjusted window can also be adjusted manually as shown in Figure 14 or Figure 15.
  • the position and/or size of the window can be restored to the display state before adjustment.
  • the position and size of each window can be restored from the state shown in (b) in Figure 16 to the state shown in (a) in Figure 16.
  • the third window Can be redisplayed.
  • the position and size of each window can be restored from the state shown in (d) in Figure 16 to the state shown in (c) in Figure 16 .
  • the window can be redisplayed.
  • Figure 17 is a schematic diagram of another multi-window display method provided by an embodiment of the present application.
  • the electronic device displays a first window and a second window in a split-screen mode
  • the first window displays a first application
  • the second window displays a second application.
  • the first application and the second application may be any application in the electronic device.
  • the virtual keyboard area may be displayed in the bottom area of the screen.
  • the sizes of the first window and the second window can be automatically adjusted to avoid the virtual keyboard area from blocking the display content of the first window and the second window.
  • the height of the first window and the second window is reduced and the width remains unchanged.
  • the first window, the second window and the virtual keyboard area fill the display area of the display screen.
  • the user can further adjust the position and size of the first window and the second window. For example, when the user presses and holds the adjacent edge of the first window and the second window and drags it to the left, the width of the first window gradually decreases, and at the same time, the width of the second window gradually increases.
  • the user can swap the positions of the first window and the second window.
  • the position and/or size of the first window and the second window can be restored to the split-screen display state before adjustment.
  • the interface displayed in the window can still be the original interface, but the content of the interface can be adaptively adjusted according to the size and proportion of the window to match the display proportion of the window. .
  • FIG. 18 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • the electronic device may include a main task application, a temporary task application, an input method application, a multitasking unit, a window management unit, an input management unit and a graphics display unit.
  • the main task application may be the first application in the aforementioned embodiment
  • the temporary task application may be the second application in the aforementioned embodiment
  • the input method application may be the application used to display the virtual keyboard area in the aforementioned embodiment.
  • the multi-tasking processing unit can be responsible for monitoring user interaction events, monitoring input triggering and closing events of the input management unit, processing the status switching between main tasks and temporary tasks, calculating the display position, area and size of the multi-tasking window, etc.
  • the window management unit can initialize the display of the window, change the size and position of the main task application and temporary task application windows according to the instructions of the multitasking unit, and notify the main task application and temporary task application windows of changes in size and position.
  • the input management unit can be used to monitor user interaction events and control the triggering and closing of input method applications.
  • the graphic display unit can be used to display the interfaces of the main task application, the temporary task application and the input method application.
  • the input management unit can monitor the user's click on the input box and trigger the input method application.
  • the input snap-in can notify the multi-tasking snap-in that the window of the input method application has changed.
  • the multitasking unit may calculate the position, area, and size displayed by the main task application (eg, the first application), the temporary task application, and the input method application.
  • the multi-tasking processing unit can notify the window management unit to change the display position, area and size of the main task application, temporary task application and input method application, and the window management unit notifies the main task application, temporary task application and input method application.
  • the main task application, the temporary task application and the input method application notify the graphics display unit to redraw the window and display the final adjusted interface.
  • Figure 19 shows a schematic flowchart of a multi-window display method provided by an embodiment of the present application.
  • the method can be executed by an electronic device.
  • the method includes:
  • S1901 The electronic device displays the first window in the full screen of the display screen, and displays the second window in the first area of the display screen.
  • S1902 The electronic device receives the first operation.
  • the first operation may be an operation in which the user clicks on the input box of the first window or the second window.
  • the electronic device In response to the first operation, the electronic device displays the second window in the second area of the display screen, the first window in the third area of the display screen, and the virtual keyboard in the fourth area of the display screen. Among them, the second area, the third area and the fourth area do not overlap with each other.
  • the first area and the second area may be the same, that is, the display position and size of the second window remain unchanged.
  • the display position and size of the second window are the same before and after the virtual keyboard area is displayed.
  • the first area and the second area may be different.
  • the second window displayed in the first area and the second window displayed in the second area have the same size but different positions.
  • the size of the second window displayed in the first area and the second window displayed in the second area are different, and the size of the second window displayed in the second area is smaller than The size of the second window displayed in the first area.
  • the height of the second window displayed in the second area is smaller than that in the first area. The height of the second window displayed by the field.
  • the electronic device can draw the virtual keyboard in a fixed area of the display screen, and the fourth area is the fixed area; the electronic device can determine the area of the display screen other than the virtual keyboard as a drawing area that allows drawing of the application window; Furthermore, the electronic device can draw the first window and the second window in the drawing area.
  • the drawing area includes the above-mentioned second area and third area.
  • the electronic device may proportionally reduce the first window from the first size to the second size. For example, as shown in (b) of Figure 10, the first window is scaled down.
  • the electronic device shrinks the first window so that the second window is displayed in the second area of the display screen and the first window is displayed in the third area of the display screen, for example, in Figure 10 shown in (b).
  • the electronic device shrinks the first window, moves it upward, moves it upward and to the left, or moves the second window upward and to the right, so that the second window is displayed in the second area of the display screen.
  • the first window is displayed in the third area of the screen. For example, as shown in (b) in FIG. 11 , the electronic device reduces the first window and moves the second window upward and to the right.
  • the electronic device shrinks the first window, moves it upward, moves it upward and to the left, or moves the second window upward and to the right, and shrinks the second window so that it is displayed in the second area of the display screen.
  • the second window displays the first window in the third area of the display screen.
  • the second area, the third area and the fourth area fill the display area of the display screen.
  • the second window displayed in the second area, the first window displayed in the third area, and the virtual keyboard displayed in the fourth area exactly fill the display area of the display screen.
  • the electronic device receives a drag operation acting on adjacent edges of the first window and the second window; in response to the drag operation, the electronic device controls the adjustment of the second area to the fifth area, and controls the adjustment of the third area. It is the sixth area, the fifth area displays the second window, and the sixth area displays the first window. For example, as shown in Figure 15, when the user presses and holds the adjacent edge of the first window and the second window and drags it to the left, the display area of the first window gradually decreases, and at the same time, the display area of the second window gradually increases. big.
  • the electronic device receives a second operation that acts on the first window or the second window; in response to the second operation, the virtual keyboard disappears, and the electronic device displays the first window in full screen on the display screen, and in the first part of the display screen area displays the second window.
  • the virtual keyboard when the virtual keyboard is retracted, the position and size of the window can be restored to the window display state before adjustment.
  • Figure 20 shows a schematic flowchart of another multi-window display method provided by an embodiment of the present application. This method can be executed by an electronic device. The method includes:
  • S2001 The electronic device displays the first window in the full screen of the display screen, and displays the second window in the first area of the display screen.
  • S2002 The electronic device receives the first preset operation.
  • the first preset operation may be a gesture operation, an operation on a control, or an operation on a preset physical key or virtual key, etc.
  • S2003 In response to the first preset operation, the electronic device displays the second window in the full screen of the display screen and displays the first window in the seventh area of the display screen.
  • the user can switch the display form of the first window and the second window through a first preset operation.
  • the first window is displayed in full screen, and the second window is displayed in the form of a small window.
  • the second window is displayed in full screen, and the first window is displayed in the form of a small window.
  • the first area is the same as the seventh area.
  • the first area and the seventh area are different.
  • FIG. 21 is a schematic diagram of the composition of a display device provided by an embodiment of the present application. As shown in Figure 21, the device can be applied to electronic equipment, and the device can include: a display unit 2101 and an input unit 2102.
  • the display unit 2101 is configured to display the first window in full screen on the display screen of the electronic device, and display the second window in the first area of the display screen.
  • the input unit 2102 is used to receive the first operation.
  • the display unit 2101 is further configured to, after receiving the first operation, display a second window in the second area of the display screen, display the first window in the third area of the display screen, and display the virtual keyboard in the fourth area of the display screen.
  • the second area, the third area and the fourth area do not overlap with each other.
  • the display unit 2101 is configured to display the first window in full screen on the display screen of the electronic device, and display the second window in the first area of the display screen.
  • the input unit 2102 is used to receive the first preset operation.
  • the display unit 2101 is also configured to display the second window in the full screen of the display screen and display the first window in the seventh area of the display screen after receiving the first preset operation.
  • An embodiment of the present application also provides a display device, which can be applied to electronic equipment, such as the electronic equipment (such as a mobile phone) in the above embodiment.
  • the device may include: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions so that the display device implements various functions performed by the electronic device (such as a mobile phone) in the above method embodiment or step.
  • An embodiment of the present application also provides an electronic device (the electronic device may be an electronic device, such as the mobile phone in the above embodiment).
  • the electronic device may include: a display screen, a memory, and one or more processors.
  • the display, memory and processor are coupled.
  • the memory is used to store computer program code, which includes computer instructions.
  • the processor executes computer instructions, the electronic device can perform various functions or steps performed by the electronic device (such as a mobile phone) in the above method embodiments.
  • the electronic device includes but is not limited to the above-mentioned display screen, memory and one or more processors.
  • the structure of the electronic device may refer to the structure of the mobile phone shown in FIG. 5 .
  • Embodiments of the present application also provide a chip system, which can be applied to electronic devices, such as the electronic devices (such as mobile phones) in the previous embodiments.
  • the chip system includes at least one processor 2201 and at least one interface circuit 2202.
  • the processor 2201 may be the processor in the above-mentioned electronic device.
  • the processor 2201 and the interface circuit 2202 may be interconnected via wires.
  • the processor 2201 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 2202.
  • the electronic device can be caused to perform various steps performed by the mobile phone in the above embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in the embodiments of this application.
  • Embodiments of the present application also provide a computer-readable storage medium for storing computer instructions run by an electronic device, such as the above-mentioned electronic device (such as a mobile phone).
  • an electronic device such as the above-mentioned electronic device (such as a mobile phone).
  • An embodiment of the present application also provides a computer program product, which includes computer instructions run by an electronic device, such as the above-mentioned electronic device (such as a mobile phone).
  • an electronic device such as the above-mentioned electronic device (such as a mobile phone).
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be The combination can either be integrated into another device, or some features can be omitted, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated.
  • the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium , including several instructions to cause a device (which can be a microcontroller, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code.

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)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present application relates to the field of electronic devices, and discloses a multi-window display method and a device. The method comprises: an electronic device displays a first window on a display screen in a full-screen mode, and displays a second window in a first region of the display screen, wherein the second window is located on the first window, and the display area of the second window is smaller than the display area of the first window; the electronic device receives a first operation, the first operation being used for instructing to display a virtual keyboard; and in response to the first operation, the electronic device displays the second window in a second region of the display screen, displays the first window in a third region of the display screen, and displays the virtual keyboard in a fourth region of the display screen, wherein the second region, the third region, and the fourth region do not overlap each other. Thus, the virtual keyboard can be prevented from blocking the content displayed in the windows, and the use experience of users when using multi-window display can be improved.

Description

一种多窗口显示方法及设备A multi-window display method and device
本申请要求在2022年7月5日提交中国国家知识产权局、申请号为202210791020.X的中国专利申请的优先权,发明名称为“一种多窗口显示方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority for the Chinese patent application with application number 202210791020. rights, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本申请涉及电子设备领域,尤其涉及一种多窗口显示方法及设备。The present application relates to the field of electronic equipment, and in particular, to a multi-window display method and equipment.
背景技术Background technique
目前,手机等终端已成为人们日常生活及工作中使用频率较高的电子设备。人们的生活、工作的很大一部分可以在手机上完成。为了提升手机的处理效率,手机上可以多窗口显示,每个窗口中可以显示不同内容,方便用户在不同窗口内分别处理业务。然而,目前用户使用多窗口时,会面临虚拟键盘遮挡界面内容等问题,影响了用户的体验。At present, terminals such as mobile phones have become electronic devices that are frequently used in people's daily lives and work. A large part of people's lives and work can be completed on mobile phones. In order to improve the processing efficiency of the mobile phone, multiple windows can be displayed on the mobile phone, and different content can be displayed in each window, making it convenient for users to handle business in different windows. However, when users currently use multiple windows, they will face problems such as the virtual keyboard blocking the interface content, which affects the user experience.
发明内容Contents of the invention
本申请的实施例提供一种多窗口显示方法及设备,可以避免调出虚拟键盘时对窗口内容的遮挡,提高终端的输入效率。Embodiments of the present application provide a multi-window display method and device, which can avoid blocking the window content when calling up the virtual keyboard and improve the input efficiency of the terminal.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:
第一方面,本申请提供一种多窗口显示方法,该方法可以应用于电子设备,该方法包括:电子设备在显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口;其中,第二窗口位于第一窗口上层,且第二窗口的显示面积小于第一窗口的显示面积;电子设备接收第一操作,该第一操作用于指示显示虚拟键盘;响应于该第一操作,电子设备在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,在显示屏的第四区域显示虚拟键盘;其中,第二区域、第三区域与第四区域互不重叠。In a first aspect, this application provides a multi-window display method, which can be applied to electronic devices. The method includes: the electronic device displays a first window in the full screen of the display screen, and displays a second window in the first area of the display screen; wherein , the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the electronic device receives the first operation, the first operation is used to instruct the display of the virtual keyboard; in response to the first operation, The electronic device displays the second window in the second area of the display screen, displays the first window in the third area of the display screen, and displays the virtual keyboard in the fourth area of the display screen; wherein the second area, the third area and the fourth area Do not overlap each other.
通过本申请提供的方法,当电子设备显示虚拟键盘时,全屏窗口的大小可以自动进行调节,从而避免虚拟键盘对窗口显示内容的遮挡。Through the method provided by this application, when the electronic device displays a virtual keyboard, the size of the full-screen window can be automatically adjusted, thereby avoiding the virtual keyboard from blocking the window display content.
在一种可能的设计中,第一区域和第二区域相同。也就是说,第二窗口的大小和位置可以不进行调整,仅调整第一窗口的位置和大小。In one possible design, the first and second areas are identical. That is to say, the size and position of the second window may not be adjusted, and only the position and size of the first window may be adjusted.
在一种可能的设计中,第一区域与第二区域不同。在第一区域显示的第二窗口与在所述第二区域显示的第二窗口的大小相同;或者,在第一区域显示的第二窗口与在第二区域显示的所述第二窗口的大小不同,在第二区域显示的第二窗口的尺寸小于在第一区域显示的第二窗口的尺寸。也就是说,第二窗口的大小/位置也可以进行调整。In one possible design, the first area is different from the second area. The second window displayed in the first area has the same size as the second window displayed in the second area; or, the second window displayed in the first area has the same size as the second window displayed in the second area. Differently, the size of the second window displayed in the second area is smaller than the size of the second window displayed in the first area. That said, the size/position of the second window can also be adjusted.
在一种可能的设计中,在第二区域显示的第二窗口的尺寸小于在第一区域显示的第二窗口的尺寸,包括:在所述第二区域显示的第二窗口的高度小于在第一区域显示的第二窗口的高度。In a possible design, the size of the second window displayed in the second area is smaller than the size of the second window displayed in the first area, including: the height of the second window displayed in the second area is smaller than the height of the second window displayed in the first area. The height of the second window displayed in an area.
在一种可能的设计中,电子设备在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,在显示屏的第四区域显示虚拟键盘,包括:电子设备在显示屏的固定区域绘制虚拟键盘;第四区域为该固定区域;电子设备将显示屏中除虚拟键盘之外的区域确定为允许绘制应用窗口的绘制区域;电子设备在该绘制区域绘制第一窗口和第二窗口;该绘制区域包括第二区域和第三区域。In a possible design, the electronic device displays a second window in a second area of the display screen, displays a first window in a third area of the display screen, and displays a virtual keyboard in a fourth area of the display screen, including: the electronic device displays A virtual keyboard is drawn in a fixed area of the display screen; the fourth area is the fixed area; the electronic device determines the area in the display screen other than the virtual keyboard as a drawing area that allows drawing of the application window; the electronic device draws the first window in the drawing area and a second window; the drawing area includes a second area and a third area.
本实现方式中,通过在除虚拟键盘之外的区域绘制第一窗口和第二窗口,可以避免虚拟键盘对窗口显示内容的遮挡。In this implementation, by drawing the first window and the second window in an area other than the virtual keyboard, it is possible to avoid the virtual keyboard from blocking the window display content.
在一种可能的设计中,电子设备将第一窗口从第一尺寸等比例缩小为第二尺寸。通过该方法,可以使第一窗口显示的内容等比例调整。In one possible design, the electronic device reduces the first window from the first size to the second size in equal proportions. Through this method, the content displayed in the first window can be adjusted proportionally.
在一种可能的设计中,响应于该第一操作,电子设备在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,包括:响应于该第一操作,缩小第一窗口,以使得在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口;或者,响应于该第一操作,缩小第一窗口,向上移动、向上且向左移动、或向上且向右移动第二窗口,以使得在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口;或者,响应于该第一操作,缩小第一窗口,向上移动、向上且向左移动、或向上且向右移动第二窗口,且缩小第二窗口,以使得在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一 窗口。In one possible design, in response to the first operation, the electronic device displays a second window in a second area of the display screen, and displays a first window in a third area of the display screen, including: in response to the first operation, Reduce the first window so that the second window is displayed in the second area of the display screen and the first window is displayed in the third area of the display screen; or, in response to the first operation, reduce the first window, move upward, upward and Move the second window to the left, or move it up and to the right, so that the second window is displayed in the second area of the display screen, and the first window is displayed in the third area of the display screen; or, in response to the first operation, zoom out The first window moves up, up and to the left, or the second window moves up and to the right, and the second window is reduced so that the second window is displayed in a second area of the display screen, and in a third area of the display screen Show first window.
在一种可能的设计中,第二区域、第三区域以及第四区域填满显示屏的显示区域。In a possible design, the second area, the third area and the fourth area fill the display area of the display screen.
本实现方式中,第二区域显示的第二窗口、第三区域显示的第一窗口、以及虚拟键盘显示的第四窗口正好填满显示屏的显示区域,可以提高显示屏显示的效率以及界面显示的美观度。In this implementation, the second window displayed in the second area, the first window displayed in the third area, and the fourth window displayed by the virtual keyboard exactly fill the display area of the display screen, which can improve the efficiency of the display screen and the interface display. of aesthetics.
在一种可能的设计中,该方法还包括:电子设备接收作用于第一窗口和第二窗口相邻边缘的拖动操作;响应于该拖动操作,电子设备控制第二区域调整为第五区域,以及控制第三区域调整为第六区域,第五区域显示第二窗口,第六区域显示第一窗口。In a possible design, the method further includes: the electronic device receives a drag operation acting on adjacent edges of the first window and the second window; in response to the drag operation, the electronic device controls the second area to adjust to the fifth area, and control the third area to be adjusted to the sixth area, the fifth area displays the second window, and the sixth area displays the first window.
本实现方式中,第一窗口和第二窗口自动调整后,用户可以进一步对第一窗口和第二窗口的大小进行调整,提高多窗口显示的灵活度。In this implementation, after the first window and the second window are automatically adjusted, the user can further adjust the sizes of the first window and the second window to improve the flexibility of multi-window display.
在一种可能的设计中,第一操作为作用于第二窗口的操作。例如,第一操作为作用于第二窗口的输入框的操作。In a possible design, the first operation is an operation that acts on the second window. For example, the first operation is an operation that acts on the input box of the second window.
在一种可能的设计中,该方法还包括:电子设备接收作用于第一窗口或第二窗口的第二操作;响应于该第二操作,虚拟键盘消失,电子设备在显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口。In a possible design, the method further includes: the electronic device receives a second operation that acts on the first window or the second window; in response to the second operation, the virtual keyboard disappears, and the electronic device displays the first full-screen display on the display screen. window to display a second window in the first area of the display screen.
本实现方式中,虚拟键盘消失后,第一窗口和第二窗口可以恢复原来的显示状态,可以提升用户的操作体验。In this implementation, after the virtual keyboard disappears, the first window and the second window can be restored to their original display status, which can improve the user's operating experience.
在一种可能的设计中,该方法还包括:电子设备接收第一预设操作;响应于该第一预设操作,电子设备在显示屏全屏显示第二窗口,在显示屏的第七区域显示第一窗口;其中,第一区域和第七区域相同或不同。In a possible design, the method further includes: the electronic device receives a first preset operation; in response to the first preset operation, the electronic device displays the second window in the full screen of the display screen, and displays the second window in the seventh area of the display screen. A first window; wherein the first area and the seventh area are the same or different.
本实现方式中,电子设备可以通过第一预设操作切换第一窗口和第二窗口的显示形态。In this implementation manner, the electronic device can switch the display form of the first window and the second window through the first preset operation.
第二方面,本申请提供一种多窗口显示方法,该方法可以应用于电子设备,该方法包括:电子设备在显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口;其中,第二窗口位于第一窗口上层,且第二窗口的显示面积小于第一窗口的显示面积;电子设备接收第一预设操作;响应于该第一预设操作,电子设备在显示屏全屏显示第二窗口,在显示屏的第七区域显示第一窗口;其中,第一区域和第七区域相同或不同。In a second aspect, the present application provides a multi-window display method, which method can be applied to electronic devices. The method includes: the electronic device displays a first window in the full screen of the display screen, and displays a second window in the first area of the display screen; wherein , the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the electronic device receives the first preset operation; in response to the first preset operation, the electronic device displays the full screen on the display screen The second window displays the first window in the seventh area of the display screen; wherein the first area and the seventh area are the same or different.
在一种可能的设计中,第一预设操作为作用于第二窗口的手势操作,或者,第一预设操作为作用于第二窗口的切换控件的点击操作。In a possible design, the first preset operation is a gesture operation acting on the second window, or the first preset operation is a click operation acting on the switching control of the second window.
通过本申请提供的方法,电子设备可以通过第一预设操作方便地切换全屏窗口和小窗的显示形态,提高了用户使用多窗口显示的体验。Through the method provided by this application, the electronic device can conveniently switch the display form of the full-screen window and the small window through the first preset operation, thereby improving the user's experience of using multi-window display.
第三方面,提供一种显示装置,该装置可以应用于电子设备,该装置可以包括:显示单元,用于在电子设备的显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口;其中,第二窗口位于第一窗口上层,且第二窗口的显示面积小于第一窗口的显示面积;输入单元,用于接收第一操作,该第一操作用于指示显示虚拟键盘;显示单元,还用于响应于该第一操作,在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,在显示屏的第四区域显示虚拟键盘;其中,第二区域、第三区域与第四区域互不重叠。A third aspect provides a display device, which can be applied to electronic equipment. The device can include: a display unit configured to display a first window in full screen on a display screen of the electronic device, and to display a second window in a first area of the display screen. Window; wherein, the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the input unit is used to receive the first operation, the first operation is used to instruct the display of the virtual keyboard; display The unit is further configured to display a second window in a second area of the display screen, a first window in a third area of the display screen, and a virtual keyboard in a fourth area of the display screen in response to the first operation; wherein, the The second area, the third area and the fourth area do not overlap with each other.
第四方面,提供一种显示装置,该装置可以应用于电子设备,该装置可以包括:显示单元,用于在电子设备的显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口;其中,第二窗口位于第一窗口上层,且第二窗口的显示面积小于第一窗口的显示面积;输入单元,用于接收第一预设操作;显示单元,还用于响应于该第一预设操作,电子设备在显示屏全屏显示第二窗口,在显示屏的第七区域显示第一窗口;其中,第一区域和第七区域相同或不同。A fourth aspect provides a display device, which can be applied to electronic equipment. The device can include: a display unit configured to display a first window in full screen on a display screen of the electronic device, and to display a second window in a first area of the display screen. window; wherein, the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; the input unit is used to receive the first preset operation; the display unit is also used to respond to the third window. In a preset operation, the electronic device displays the second window in the full screen of the display screen, and displays the first window in the seventh area of the display screen; wherein the first area and the seventh area are the same or different.
第五方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,计算机程序指令被电子设备执行时使得电子设备实现如第一方面或第一方面的可能的实现方式中任一项所述的方法,或者实现如第二方面或第二方面的可能的实现方式中任一项所述的方法。A fifth aspect provides a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by an electronic device, the electronic device enables the electronic device to implement the first aspect or any of the possible implementations of the first aspect. The method described above, or the method described in any one of the second aspect or possible implementations of the second aspect is implemented.
第六方面,提供一种电子设备,该电子设备包括显示屏,一个或多个处理器和存储器;显示屏,处理器和存储器耦合;存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被电子设备执行时,使得该电子设备执行如第一方面或第一方面的可能的实现方式中任一项所述的方法,或者执行如第二方面或第二方面的可能的实现方式中任一项所述的方法。In a sixth aspect, an electronic device is provided. The electronic device includes a display screen, one or more processors and a memory; the display screen, the processor and the memory are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions, When the computer instructions are executed by the electronic device, the electronic device is caused to perform the method as described in any one of the first aspect or the possible implementation of the first aspect, or to perform the second aspect or the possible implementation of the second aspect. any one of the methods.
第七方面,提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,电子设备中的处理器执行第一方面或第一方面的可能的实现方式中任一项所述的方法,或者执行第二方面或第二方面的可 能的实现方式中任一项所述的方法。In a seventh aspect, a computer program product is provided, including computer readable code, or a non-volatile computer readable storage medium carrying the computer readable code. When the computer readable code is run in an electronic device, the electronic device The processor in the device performs the method described in any one of the first aspect or the possible implementation of the first aspect, or performs the second aspect or the possible implementation of the second aspect. The method described in any of the possible implementation methods.
可以理解地,上述提供的第三方面所述的显示装置,第四方面所述的显示装置,第五方面所述的计算机可读存储介质,第六方面所述的电子设备,及第七方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的实现方式中的有益效果,以及如第二方面及其任一种可能的实现方式中的有益效果,此处不再赘述。It can be understood that the above-mentioned display device according to the third aspect, the display device according to the fourth aspect, the computer-readable storage medium according to the fifth aspect, the electronic device according to the sixth aspect, and the seventh aspect The beneficial effects that can be achieved by the computer program product can be referred to the beneficial effects of the first aspect and any possible implementation thereof, and the beneficial effects of the second aspect and any possible implementation thereof. The effect will not be described here.
附图说明Description of the drawings
图1为本申请实施例提供的一种相关技术中显示界面的示意图;Figure 1 is a schematic diagram of a display interface in a related technology provided by an embodiment of the present application;
图2为本申请实施例提供的另一种相关技术中显示界面的示意图;Figure 2 is a schematic diagram of a display interface in another related technology provided by an embodiment of the present application;
图3为本申请实施例提供的又一种相关技术中显示界面的示意图;Figure 3 is a schematic diagram of a display interface in yet another related technology provided by an embodiment of the present application;
图4为本申请实施例提供的又一种相关技术中显示界面的示意图;Figure 4 is a schematic diagram of a display interface in yet another related technology provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的结构示意图;Figure 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的软件架构的组成示意图;Figure 6 is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application;
图7是本申请实施例提供的一种多窗口显示方法的示意图;Figure 7 is a schematic diagram of a multi-window display method provided by an embodiment of the present application;
图8是本申请实施例提供的一种显示界面的示意图;Figure 8 is a schematic diagram of a display interface provided by an embodiment of the present application;
图9是本申请实施例提供的另一种多窗口显示方法的示意图;Figure 9 is a schematic diagram of another multi-window display method provided by an embodiment of the present application;
图10是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 10 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图11是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 11 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图12是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 12 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图13是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 13 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图14是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 14 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图15是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 15 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图16是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 16 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图17是本申请实施例提供的又一种多窗口显示方法的示意图;Figure 17 is a schematic diagram of yet another multi-window display method provided by an embodiment of the present application;
图18是本申请实施例提供的一种电子设备的软件结构示意图;Figure 18 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application;
图19是本申请实施例提供的一种多窗口显示方法的示意性流程图;Figure 19 is a schematic flow chart of a multi-window display method provided by an embodiment of the present application;
图20是本申请实施例提供的另一种多窗口显示方法的示意性流程图Figure 20 is a schematic flow chart of another multi-window display method provided by an embodiment of the present application.
图21为本申请实施例提供的一种显示装置的组成示意图;Figure 21 is a schematic diagram of the composition of a display device provided by an embodiment of the present application;
图22为本申请实施例提供的一种芯片系统的组成示意图。Figure 22 is a schematic diagram of the composition of a chip system provided by an embodiment of the present application.
具体实施方式Detailed ways
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本说明书的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为明示或暗示相对重要性,也不能理解为明示或暗示顺序。例如,第一窗口和第二窗口并不代表二者的重要程度或者代表二者的顺序,仅仅是为了区分描述。在本申请实施例中,“和/或”,仅仅是描述关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The at least one involved in the embodiments of this application includes one or more; where multiple means greater than or equal to two. In addition, it should be understood that in the description of this specification, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order. For example, the first window and the second window do not represent the importance of the two or the order of the two, but are only used to differentiate the description. In the embodiment of this application, "and/or" only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
本申请实施例中所提到的方位用语,例如,“上”、“下”、“左”、“右”、“内”、“外”等,仅是参考附图的方向,因此,使用的方位用语是为了更好、更清楚地说明及理解本申请实施例,而不是指示或暗指所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请实施例的限制。The directional terms mentioned in the embodiments of the present application, such as "upper", "lower", "left", "right", "inner", "outer", etc., are only for reference to the direction of the drawings. Therefore, use The orientation terms are used to describe and understand the embodiments of the present application better and more clearly, but do not indicate or imply that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application. Limitations of Application Examples.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本说明书的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the specification. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
为了提升处理效率,电子设备(例如手机)上可以显示多窗口。例如,电子设备接收到用于打开多窗口的操作时,显示多窗口。其中,用于打开多窗口的操作可以是各种类型的操作。一种可实现方式为,请参见图1中的(a),电子设备显示窗口A,示例性的,窗口A为视频播放窗口。当电子设备接收到从屏幕 右边缘(或左边缘)向内滑动的操作或者从屏幕右边缘(或左边缘)向内滑动且停顿一定时长的操作时,可以唤出智慧多窗口应用栏101,如图1中的(b)所示。智慧多窗口应用栏101中包括各种应用的图标,例如的图标,备忘录的图标等。当电子设备接收到针对智慧多窗口应用栏101中的图标的操作,可以打开的窗口B,即显示如图1中的(c)所示的多窗口界面。图1中的(c)所示界面中包括窗口B和窗口A,其中,窗口B位于窗口A的上层。因此,通过图1所示的方式可以打开多窗口。此时,如图1中的(d)所示,当用户点击窗口B中的输入框进行文字输入时,屏幕底部区域会显示虚拟键盘区域,虚拟键盘区域遮挡了窗口A中正在播放的视频画面,会对用户的体验造成较大影响。除此之外,用户此时的目的可能是对窗口B进行操作,而窗口B的显示尺寸较小,不方便用户进行操作,因此,用户可以将窗口B切换为全屏显示,例如,通过拖拽窗口B到屏幕中央的操作、或者通过对窗口B上的控件的操作等,如图1中的(e)所示,窗口B切换为全屏显示。然而,此时用户无法同时观看窗口A中的视频画面,影响了用户的使用电子设备的效率。进一步地,用户可以通过如图1中的(b)所示的智慧多窗口应用栏101再次打开视频应用对应的窗口A,其操作过程与图1中的(b)和(c)中所示的打开窗口B的过程类似,不再赘述。如图1中的(f)所示,此时,窗口A位于窗口B的上层,用户可以同时使用聊天应用和视频播放应用。In order to improve processing efficiency, multiple windows can be displayed on electronic devices (such as mobile phones). For example, when the electronic device receives an operation for opening multiple windows, the multiple windows are displayed. Among them, the operation for opening multiple windows can be various types of operations. One implementation method is that, see (a) in Figure 1, the electronic device displays window A. For example, window A is a video playback window. When the electronic device receives from the screen When you slide inward from the right edge (or left edge) or slide inward from the right edge (or left edge) of the screen and pause for a certain period of time, the smart multi-window application bar 101 can be called up, as shown in (b in Figure 1 ) shown. The smart multi-window application bar 101 includes icons for various applications, such as icon, memo icon, etc. When the electronic device receives a message for the smart multi-window application bar 101 The operation of the icon can be opened Window B displays the multi-window interface as shown in (c) in Figure 1. The interface shown in (c) in Figure 1 includes window B and window A, where window B is located on the upper layer of window A. Therefore, multiple windows can be opened in the manner shown in Figure 1. At this time, as shown in (d) in Figure 1, when the user clicks on the input box in window B to input text, the virtual keyboard area will be displayed at the bottom of the screen, and the virtual keyboard area blocks the video screen being played in window A. , which will have a greater impact on the user experience. In addition, the user's purpose at this time may be to operate window B, but the display size of window B is small and inconvenient for the user to operate. Therefore, the user can switch window B to full-screen display, for example, by dragging By operating window B to the center of the screen, or by operating controls on window B, as shown in (e) in Figure 1, window B is switched to full-screen display. However, at this time, the user cannot watch the video images in window A at the same time, which affects the user's efficiency in using the electronic device. Further, the user can open the window A corresponding to the video application again through the smart multi-window application bar 101 as shown in (b) of Figure 1. The operation process is the same as that shown in (b) and (c) of Figure 1 The process of opening window B is similar and will not be described again. As shown in (f) in Figure 1, at this time, window A is located on the upper layer of window B, and the user can use the chat application and the video playback application at the same time.
另一种可实现方式为,请参见图2中的(a),电子设备显示窗口A,示例性的,窗口A为视频播放窗口,用户在观看窗口A中播放的视频的过程中,收到一条通知消息,当电子设备接收到用户对该通知消息的点击操作或者下拉操作时,可以打开通知消息对应的应用的窗口B,即显示如图2中的(b)所示的多窗口界面。类似图1,用户可以点击窗口B中的输入框进行输入操作,或者可以将窗口B切换为全屏显示。Another implementation method is, please refer to (a) in Figure 2. The electronic device displays window A. For example, window A is a video playback window. While the user is watching the video played in window A, he receives A notification message. When the electronic device receives the user's click operation or pull-down operation on the notification message, it can open window B of the application corresponding to the notification message, that is, display the multi-window interface as shown in (b) of Figure 2. Similar to Figure 1, the user can click on the input box in window B to perform input operations, or switch window B to full-screen display.
需要说明的是,图1和图2仅是举例了打开多窗口的两种方式,在实际应用中,还可以通过其它方式(例如指关节敲击屏幕的方式)打开多窗口,本申请实施例不一一举例。It should be noted that Figure 1 and Figure 2 are only examples of two ways to open multiple windows. In actual applications, multiple windows can also be opened through other ways (such as tapping the screen with your knuckles). Embodiments of the present application Not giving examples one by one.
示例性地,如图1中的(c)和(d)和图2中的(b)所示,窗口A可以是全屏显示的窗口(或者理解为全屏显示的应用界面),窗口B可以是悬浮显示在窗口A上的小窗,即,窗口B的显示面积小于窗口A。例如,窗口B可以是自由(freeform)小窗(或称:自由窗口)。自由小窗可以认为是一种系统级悬浮窗口,使用自由小窗功能可使得整个应用窗口以自由小窗的形式显示。无论用户切换页面,还是打开其他应用或桌面,该自由小窗均置顶显示。示例性的,自由小窗可以理解为,具有在显示屏上进行动态的变化移动、尺寸缩放等功能。自由小窗中可以打开各种界面。例如,自由小窗可以使用视图(view)技术进行界面内信息(文字、图像等)的布局、绘制等,为用户展示各种样式的界面。在一些实施例中,自由小窗中新打开的界面可以覆盖之前打开的界面。For example, as shown in (c) and (d) in Figure 1 and (b) in Figure 2, window A may be a full-screen window (or understood as a full-screen application interface), and window B may be A small window is displayed suspended on window A, that is, the display area of window B is smaller than that of window A. For example, window B may be a freeform small window (or called: free window). The free small window can be considered as a system-level floating window. Using the free small window function, the entire application window can be displayed in the form of a free small window. Regardless of whether the user switches pages or opens other applications or desktops, this free small window remains on top. For example, a free small window can be understood as having functions such as dynamic movement, size scaling, etc. on the display screen. Various interfaces can be opened in the free small window. For example, free small windows can use view technology to lay out and draw information (text, images, etc.) in the interface to display various styles of interfaces to users. In some embodiments, a newly opened interface in a free window can overwrite a previously opened interface.
在一些实施例中,电子设备显示多窗口时,小窗(如窗口B)的位置可以移动。例如,请参见图3中的(a),当接收到针对窗口B的状态栏301的操作(例如在状态栏301的空白区域内任一位置的长按且拖拽操作)时,可以改变窗口B的位置,如图3中的(b)。在另一些实施例中,电子设备显示多窗口时,小窗(如窗口B)的大小可以缩放。例如,请参见图4中的(a),当接收到针对窗口B的左边缘向左拖拽的操作时,小窗B的宽度可以变大,如图4中的(b)。此外,小窗的尺寸可以等比例缩放,也可以仅增大宽度或者高度,本申请对此不做限定。可以理解的是,在对自由小窗进行位置变化和/或尺寸缩放时,自由小窗内界面也可以进行相应的位置变化和/或尺寸缩放,以适配自由小窗的变化。In some embodiments, when the electronic device displays multiple windows, the position of the small window (such as window B) can be moved. For example, please refer to (a) in Figure 3. When an operation on the status bar 301 of window B is received (such as a long press and drag operation anywhere in the blank area of the status bar 301), the window can be changed. The position of B is as shown in (b) in Figure 3. In other embodiments, when the electronic device displays multiple windows, the size of the small window (such as window B) can be scaled. For example, please refer to (a) in Figure 4. When a drag operation to the left for the left edge of window B is received, the width of small window B can become larger, as in (b) in Figure 4. In addition, the size of the small window can be scaled proportionally, or only the width or height can be increased, which is not limited in this application. It can be understood that when the position of the free small window is changed and/or the size is scaled, the interface in the free small window can also be correspondingly changed in position and/or resized to adapt to the change of the free small window.
可以看到的是,相关技术中,当用户打开新的界面(例如通过智慧多窗口应用栏打开新的应用、或点击通知消息)时,新的界面会以小窗形式显示,由于小窗尺寸较小,用户不方便对新打开的界面进行操作。若用户将新的界面切换为全屏显示,原来的窗口会消失,后续用户需要再次打开原来全屏显示的窗口,影响了用户使用多窗口界面的体验。除此之外,当用户调出虚拟键盘时,虚拟键盘显示的区域会遮挡原来全屏显示的界面,影响了用户的使用体验。It can be seen that in related technologies, when a user opens a new interface (for example, opening a new application through the smart multi-window application bar, or clicking on a notification message), the new interface will be displayed in the form of a small window. Due to the size of the small window It is small and it is inconvenient for users to operate the newly opened interface. If the user switches the new interface to full-screen display, the original window will disappear, and subsequent users need to open the original full-screen window again, which affects the user's experience of using the multi-window interface. In addition, when the user calls up the virtual keyboard, the area displayed by the virtual keyboard will block the original full-screen display interface, affecting the user experience.
基于此,本申请实施例提供一种多窗口显示方法,该方法可以应用于电子设备。采用本实施例提供的方法,全屏窗口和小窗的显示形态可以方便地进行切换。此外,在显示屏上显示虚拟键盘时,全屏窗口可以自动缩小,小窗可以自动调整位置和尺寸,从而避免虚拟键盘对全屏窗口和/或小窗中显示内容的遮挡。这样,可以提高用户使用多窗口显示的体验。Based on this, embodiments of the present application provide a multi-window display method, which can be applied to electronic devices. Using the method provided by this embodiment, the display forms of the full-screen window and the small window can be switched conveniently. In addition, when the virtual keyboard is displayed on the display screen, the full-screen window can be automatically reduced, and the small window can be automatically adjusted in position and size, thereby avoiding the virtual keyboard from blocking the content displayed in the full-screen window and/or the small window. In this way, the user's experience using multi-window display can be improved.
示例性的,本申请实施例中的电子设备可以为手机(如折叠屏手机、直板手机),平板电脑,手持计算机,PC,蜂窝电话,个人数字助理(personal digital assistant,PDA),可穿戴式设备(如智能手表),车载电脑,游戏机,以及增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本实施例对终端的具体形式不做特殊限制。另外,本实施例提供的技术方案除了可以应用于上述电子设备(或者说移动终端)外,还可以应用于其他电子设备,如智能家居设备(如电视机)等。 For example, the electronic device in the embodiment of the present application can be a mobile phone (such as a folding screen mobile phone, a candy bar mobile phone), a tablet computer, a handheld computer, a PC, a cellular phone, a personal digital assistant (PDA), a wearable Equipment (such as smart watches), vehicle-mounted computers, game consoles, and augmented reality (AR)/virtual reality (VR) equipment, etc. This embodiment does not place special restrictions on the specific form of the terminal. In addition, the technical solution provided by this embodiment can be applied not only to the above-mentioned electronic devices (or mobile terminals), but also to other electronic devices, such as smart home devices (such as televisions).
下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
在本实施例中,以电子设备为手机为例。请参考图5,为本申请实施例提供的一种手机的结构示意图。以下实施例中的方法可以在具有上述硬件结构的手机中实现。In this embodiment, the electronic device is a mobile phone as an example. Please refer to FIG. 5 , which is a schematic structural diagram of a mobile phone provided by an embodiment of the present application. The methods in the following embodiments can be implemented in a mobile phone with the above hardware structure.
如图5所示,手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193以及显示屏194等。可选的,手机还可以包括移动通信模块150,用户标识模块(subscriber identification module,SIM)卡接口195等。As shown in Figure 5, the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna. 1. Antenna 2, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 and display screen 194, etc. Optionally, the mobile phone may also include a mobile communication module 150, a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Among them, the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an environment. Light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本实施例示意的结构并不构成对手机的具体限定。在另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the mobile phone. In other embodiments, the mobile phone may include more or fewer components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。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 (GPU), and 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 processing unit (NPU) wait. Among them, different processing units can be independent devices or integrated in one or more processors.
控制器可以是手机的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can be the nerve center and command center of the phone. The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions 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.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM接口,和/或USB接口等。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM interface, and/or USB interface, etc.
充电管理模块140用于从充电器接收充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为手机供电。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141也可接收电池142的输入为手机供电。The charging management module 140 is used to receive charging input from the charger. While the charging management module 140 charges the battery 142, it can also provide power to the mobile phone through the power management module 141. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 can also receive input from the battery 142 to power the mobile phone.
手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in a phone can be used to cover a single or multiple communication bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
当手机包括移动通信模块150时,移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。When the mobile phone includes the mobile communication module 150, the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G that are applied to the mobile phone. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, 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 provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施 例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some implementations In this example, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如Wi-Fi网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the mobile phone including wireless local area networks (WLAN) (such as Wi-Fi network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), Wireless communication solutions such as frequency modulation (FM), NFC, and 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.
在一些实施例中,手机的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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)。In some embodiments, the antenna 1 of the mobile phone is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 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 (GPRS), 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 technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
手机通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone implements display functions through the GPU, display screen 194, and application processor. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏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)等。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use 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). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1.
手机可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。The mobile phone can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor. In some embodiments, the mobile phone may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。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 mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile phone. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area can store data created during the use of the mobile phone (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。当有触摸操作作用于显示屏194,手机根据压力传感器180A检测所述触摸操作强度。手机也可以根据压力传感器180A的检测信号计算触摸的位置。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation is performed on the display screen 194, the mobile phone detects the strength of the touch operation according to the pressure sensor 180A. The mobile phone can also calculate the touch position based on the detection signal of the pressure sensor 180A.
陀螺仪传感器180B可以用于确定手机的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。手机可以利用磁传感器180D检测翻盖皮套的开合。加速度传感器180E可检测手机在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。手机可以利用接近光传感器180G检测用户手持手机贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。手机可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。温度传感器180J用于检测温度。The gyro sensor 180B can be used to determine the movement posture of the mobile phone. Air pressure sensor 180C is used to measure air pressure. Magnetic sensor 180D includes a Hall sensor. The mobile phone can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. The acceleration sensor 180E can detect the acceleration of the mobile phone in various directions (generally three axes). Distance sensor 180F for measuring distance. The mobile phone can use the proximity light sensor 180G to detect when the user is holding the mobile phone close to the ear to talk, so that the screen can be automatically turned off to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen. The ambient light sensor 180L is used to sense ambient light brightness. Fingerprint sensor 180H is used to collect fingerprints. The mobile phone can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take pictures with the fingerprint, answer incoming calls with the fingerprint, etc. Temperature sensor 180J is used to detect temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K 与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K It forms a touch screen with the display screen 194, also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile phone in a position different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Bone conduction sensor 180M can acquire vibration signals. The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
当手机包括SIM卡接口195时,SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机的接触和分离。手机可以支持1个或N个SIM卡接口,N为大于1的正整数。手机通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机中,不能和手机分离。When the mobile phone includes a SIM card interface 195, the SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation from the mobile phone. The mobile phone can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The mobile phone interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the mobile phone uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the mobile phone and cannot be separated from the mobile phone.
本申请实施例以电子设备的软件系统是Android系统为例,示例性说明电子设备的软件结构。请参考图6,为本申请实施例提供的一种终端的软件架构的组成示意图。In the embodiment of this application, the software system of the electronic device is the Android system as an example to illustrate the software structure of the electronic device. Please refer to FIG. 6 , which is a schematic diagram of the software architecture of a terminal provided by an embodiment of the present application.
电子设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。假设电子设备是Android系统,可包括应用程序层(简称应用层),应用程序框架层(简称框架层)(framework,FWK),硬件层等等。The software structure of electronic equipment can be a layered architecture. For example, the software can be divided into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. Assuming that the electronic device is an Android system, it may include an application layer (referred to as the application layer), an application framework layer (referred to as the framework layer) (framework, FWK), a hardware layer, and so on.
其中,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。Among them, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。例如,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。其中,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,例如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。例如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, etc. Among them, the window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, 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 the electronic device 100 . For example, call status management (including connected, hung up, etc.). The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, and more. The notification manager allows applications 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. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。其中,应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system. The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android. Among them, the application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions. System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: 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 a variety of commonly used audio and video formats, as well as static 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, composition, and layer processing. 2D Graphics Engine is a drawing engine for 2D drawing.
在另一些实施例中,系统库中还可以包括窗口处理模块,用于控制窗口的隐藏、出现、缩小、放大等处理。需要说明的是,窗口处理模块可以是系统库中的一个模块,也可以是其它层中的模块,例如应用程序框架层或内核层中的模块,本申请实施例不作限定。In other embodiments, the system library may also include a window processing module for controlling the hiding, appearance, shrinking, and enlarging of windows. It should be noted that the window processing module may be a module in the system library, or may be a module in other layers, such as a module in the application framework layer or the kernel layer, which is not limited in the embodiment of the present application.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面以图6所示的软件结构为例,示例性的说明本申请实施例提供的多窗口显示方法的处理流程。The following takes the software structure shown in Figure 6 as an example to illustrate the processing flow of the multi-window display method provided by the embodiment of the present application.
例如,电子设备的显示屏上显示第一窗口和第二窗口时,硬件层中的触摸传感器接收到作用于第二窗口的第一输入事件。第一输入事件包括操作类型、操作时间、在显示屏上的位置等等。触摸传感器将第一 输入事件上报高层,例如系统库中的窗口处理模块。高层确定该输入事件是针对第二窗口中的输入框的点击操作,则调用显示驱动在显示屏上显示虚拟键盘。For example, when a first window and a second window are displayed on the display screen of the electronic device, the touch sensor in the hardware layer receives a first input event acting on the second window. The first input event includes operation type, operation time, position on the display screen, etc. Touch sensors will be the first Input events are reported to higher levels, such as the window processing module in the system library. The higher level determines that the input event is a click operation on the input box in the second window, and then calls the display driver to display the virtual keyboard on the display screen.
以下对本申请实施例提供的技术方案进行详细的描述。The technical solutions provided by the embodiments of the present application are described in detail below.
图7是本申请实施例提供的一种多窗口显示方法的示意图。如图7中的(a)所示,电子设备全屏显示第一窗口。第一窗口显示第一应用,其中,第一应用可以是电子设备中的任一应用。示例性的,第一应用为视频播放应用。用户在观看视频的过程中,收到一条通知消息,该通知消息可以来自电子设备中的第二应用,第二应用可以是电子设备中的任一应用。示例性的,第一应用和第二应用为不同的应用。例如,第二应用为聊天应用。在预设时间内,若用户对该通知消息执行点击操作或下拉操作,电子设备可以在第二窗口中打开该通知消息对应的第二应用。如图7中的(b)所示,响应于用户对该通知消息的点击操作或下拉操作,第二窗口显示该通知消息对应的界面,其中,第二窗口为全屏显示的窗口。同时,第一窗口可以自动切换为小窗形式显示,第一窗口位于第二窗口的上层,且第一窗口的显示面积小于第二窗口的显示面积。在该实施例中,当用户收到通知消息时,由于新打开的消息很可能是用户希望关注的消息,电子设备可以以全屏形式打开通知消息对应的应用窗口,方便用户对新收到的消息进行临时处理。Figure 7 is a schematic diagram of a multi-window display method provided by an embodiment of the present application. As shown in (a) of Figure 7, the electronic device displays the first window in full screen. The first window displays a first application, where the first application may be any application in the electronic device. For example, the first application is a video playback application. While the user is watching the video, he or she receives a notification message. The notification message may come from a second application in the electronic device, and the second application may be any application in the electronic device. For example, the first application and the second application are different applications. For example, the second application is a chat application. Within the preset time, if the user performs a click operation or a pull-down operation on the notification message, the electronic device can open the second application corresponding to the notification message in the second window. As shown in (b) of FIG. 7 , in response to the user's click operation or pull-down operation on the notification message, the second window displays an interface corresponding to the notification message, where the second window is a window displayed in full screen. At the same time, the first window can be automatically switched to a small window for display. The first window is located on the upper layer of the second window, and the display area of the first window is smaller than the display area of the second window. In this embodiment, when the user receives the notification message, since the newly opened message is likely to be the message that the user wants to pay attention to, the electronic device can open the application window corresponding to the notification message in full screen form to facilitate the user to view the newly received message. Perform temporary processing.
一种可能的实现方式中,自动切换后初始小窗的大小和比例可以是默认的,例如,如图7中的(b)所示,小窗可以默认为竖向显示的窗口。另一种可能的实现方式中,自动切换后的初始小窗的大小和比例可以根据界面内容决定,例如,如图7中的(c)所示,当第一窗口中显示全屏播放的视频界面时,自动切换后的初始小窗可以为横向显示的窗口,可以使小窗中显示的内容与小窗的比例更加匹配。再一种可能的实现方式中,自动切换后的初始小窗的大小可以根据应用的类型决定,例如视频应用对应横向小窗,聊天应用对应纵向小窗。本申请对此不做限定。In one possible implementation, the size and proportion of the initial small window after automatic switching may be default. For example, as shown in (b) of Figure 7 , the small window may default to a vertically displayed window. In another possible implementation, the size and proportion of the initial small window after automatic switching can be determined based on the interface content. For example, as shown in (c) in Figure 7, when a full-screen video interface is displayed in the first window , the initial small window after automatic switching can be a horizontally displayed window, which can make the content displayed in the small window more consistent with the proportion of the small window. In another possible implementation, the size of the initial small window after automatic switching can be determined according to the type of application. For example, a video application corresponds to a horizontal small window, and a chat application corresponds to a vertical small window. This application does not limit this.
需要说明的是,上述实施例中以用户收到通知消息为例进行介绍,用户通过其他操作打开小窗时,同样可以类似上述过程。例如,用户通过唤出智慧多窗口应用栏打开新的应用时,可以以全屏形式显示新打开的应用窗口,之前全屏显示的应用窗口自动切换为小窗显示。It should be noted that in the above embodiment, the user receives the notification message as an example. When the user opens the small window through other operations, the above process can also be similar. For example, when a user opens a new application by calling up the smart multi-window application bar, the newly opened application window can be displayed in full screen form, and the application window that was previously displayed in full screen will automatically switch to a small window display.
一些实施例中,当用户处理完全屏显示的第二窗口中的临时任务(例如回复聊天消息),需要继续处理第一窗口中的主任务(例如观看视频)时,用户可以通过第一预设操作切换第一窗口和第二窗口的显示形式(或称窗口形态)。示例性的,窗口的显示形式可以包括全屏显示、小窗显示等。如图7中的(d)所示,响应于第一预设操作,第一窗口重新切换为全屏显示,第二窗口切换为小窗显示,第二窗口位于第一窗口的上层,第二窗口的显示面积小于第一窗口的显示面积。可选的,用户可以再次执行第一预设操作,从而将第一窗口切换为小窗显示,第二窗口切换为全屏显示,即如图7中的(b)或图7中的(c)所示的显示形式。可以理解,通过执行第一预设操作,用户可以自由切换第一窗口和第二窗口的显示形式,在不中断第一窗口和第二窗口中的任务的情况下,自由选择对第一窗口或第二窗口中的任务进行全屏处理,从而提高了用户使用多窗口操作的效率。In some embodiments, when the user is processing a temporary task (such as replying to a chat message) in the full-screen second window and needs to continue processing the main task (such as watching a video) in the first window, the user can use the first preset The operation switches the display form (or window form) of the first window and the second window. For example, the display form of the window may include full-screen display, small window display, etc. As shown in (d) in Figure 7, in response to the first preset operation, the first window is switched to full-screen display again, and the second window is switched to small window display. The second window is located on the upper layer of the first window. The display area is smaller than the display area of the first window. Optionally, the user can perform the first preset operation again to switch the first window to a small window display and the second window to a full-screen display, that is, as shown in (b) in Figure 7 or (c) in Figure 7 the display format shown. It can be understood that by performing the first preset operation, the user can freely switch the display forms of the first window and the second window, and freely choose whether to display the first window or the second window without interrupting the tasks in the first window and the second window. Tasks in the second window are processed in full screen, thereby improving the user's efficiency in multi-window operations.
一种可能的实现方式中,第一预设操作可以为手势操作。示例性的,第一预设操作可以为作用于小窗的手势操作、或者作用于全屏窗口的手势操作、或者将小窗拖拽到全屏窗口特定热区的手势操作等,本申请对此不做限定。另一种可能的实现方式中,如图8所示,小窗中的状态栏中可以显示有切换控件801、最小化控件802、关闭控件803等。当接收到针对小窗的状态栏中的切换控件801的操作时,小窗可以切换为全屏窗口,同时,全屏窗口切换为小窗。当接收到针对小窗的状态栏内的最小化控件802的操作时,小窗可以最小化,例如切换为更小尺寸的小窗或者提示条。当接收到针对小窗的状态栏内的关闭控件803的操作时,小窗可以关闭,即显示屏上只显示全屏窗口。再一种可能的实现方式中,第一预设操作可以是对预设的物理按键或虚拟按键的操作,可选的,物理按键或者虚拟按键可以是系统预设的或者用户预定义的。以操作物理按键为例,用户可以通过连续两次按压音量键切换第一窗口和第二窗口的显示形式。可以理解,第一预设操作也可以为其他操作,本申请对此不做限定。In a possible implementation, the first preset operation may be a gesture operation. For example, the first preset operation may be a gesture operation that acts on a small window, or a gesture operation that acts on a full-screen window, or a gesture operation that drags a small window to a specific hotspot of the full-screen window, etc. This application does not cover this. Make limitations. In another possible implementation, as shown in Figure 8, the status bar in the small window may display a switching control 801, a minimizing control 802, a closing control 803, etc. When receiving an operation for the switching control 801 in the status bar of the small window, the small window can be switched to a full-screen window, and at the same time, the full-screen window is switched to a small window. When receiving an operation for the minimize control 802 in the status bar of the small window, the small window can be minimized, for example, switched to a smaller window or a prompt bar. When receiving an operation for the close control 803 in the status bar of the small window, the small window can be closed, that is, only the full-screen window is displayed on the display screen. In another possible implementation, the first preset operation may be an operation on a preset physical key or virtual key. Optionally, the physical key or virtual key may be preset by the system or predefined by the user. Taking the operation of physical buttons as an example, the user can switch the display mode of the first window and the second window by pressing the volume key twice in succession. It can be understood that the first preset operation can also be other operations, which is not limited in this application.
对应的,下面详细说明图7所示的实施例对应的后台处理流程。以主任务为第一窗口显示的第一应用对应的任务,临时任务为第二窗口显示的第二应用对应的任务为例,后台处理流程可以包括如下步骤:Correspondingly, the background processing flow corresponding to the embodiment shown in Figure 7 will be described in detail below. Taking the main task as the task corresponding to the first application displayed in the first window and the temporary task as the task corresponding to the second application displayed in the second window as an example, the background processing process may include the following steps:
步骤一、电子设备全屏显示第一应用的第一窗口;Step 1: The electronic device displays the first window of the first application in full screen;
步骤二、电子设备接收到第二应用的任务;Step 2: The electronic device receives the task of the second application;
步骤三、电子设备全屏显示第二应用的第二窗口、小窗显示第一应用的第一窗口;Step 3: The electronic device displays the second window of the second application in full screen and displays the first window of the first application in a small window;
步骤四、电子设备接收到用户且切换第一窗口和第二窗口的操作;Step 4: The electronic device receives the user's operation and switches the first window and the second window;
步骤五、电子设备全屏显示第一应用的第一窗口、小窗显示第二应用的第二窗口。Step 5: The electronic device displays the first window of the first application in full screen and displays the second window of the second application in a small window.
图7所示实施例中,全屏窗口上只存在一个小窗,用户可以通过第一预设操作切换第一窗口和第二窗 口的显示形式。其他一些实施例中,全屏窗口上可以存在多个小窗,用户可以通过作用于目标小窗的操作切换目标小窗和全屏窗口的显示形态。例如,如图9中(a)所示,电子设备全屏显示第二窗口,第二窗口上叠加小窗显示的第一窗口和第三窗口。如图9中的(b)所示,响应于作用于第一窗口的第二预设操作,第一窗口可以切换为全屏显示,第二窗口可以切换为小窗显示。也就是说,用户作用的目标小窗可以和全屏窗口之间互相切换显示形式。同理,响应于作用于第三窗口的第二预设操作,第三窗口可以切换为全屏显示,第二窗口可以切换为小窗显示(图中未示出)。可选的,第二预设操作可以为作用于目标小窗的手势操作、作用于目标小窗的控件的操作等,本申请对此不做限定。In the embodiment shown in Figure 7, there is only one small window on the full-screen window, and the user can switch the first window and the second window through the first preset operation. The display form of the mouth. In some other embodiments, there may be multiple small windows on the full-screen window, and the user can switch the display modes of the target small window and the full-screen window by operating on the target small window. For example, as shown in (a) of FIG. 9 , the electronic device displays the second window in full screen, and the first window and the third window displayed in small windows are superimposed on the second window. As shown in (b) of FIG. 9 , in response to the second preset operation acting on the first window, the first window can be switched to full-screen display, and the second window can be switched to small window display. In other words, the display mode of the target small window acted by the user can be switched between the full-screen window and the small window targeted by the user. Similarly, in response to the second preset operation on the third window, the third window can be switched to full-screen display, and the second window can be switched to small window display (not shown in the figure). Optionally, the second preset operation may be a gesture operation acting on the target small window, an operation acting on a control of the target small window, etc. This application does not limit this.
图10是本申请实施例提供的另一种多窗口显示方法的示意图。如图10中的(a)所示,电子设备全屏显示第一窗口,第一窗口显示第一应用。第一窗口上叠加以小窗形式显示的第二窗口,第二窗口位于显示屏的右上角,第二窗口显示第二应用。其中,第一应用和第二应用可以是电子设备中的任一应用。示例性的,当用户点击第二窗口中的输入框进行文字输入时,显示屏上可以显示虚拟键盘区域。可选的,虚拟键盘区域可以是显示屏的固定区域,例如显示屏的底部区域。Figure 10 is a schematic diagram of another multi-window display method provided by an embodiment of the present application. As shown in (a) of Figure 10, the electronic device displays the first window in full screen, and the first window displays the first application. A second window displayed in the form of a small window is superimposed on the first window. The second window is located in the upper right corner of the display screen, and the second window displays the second application. The first application and the second application may be any application in the electronic device. For example, when the user clicks on the input box in the second window to input text, the virtual keyboard area may be displayed on the display screen. Optionally, the virtual keyboard area may be a fixed area of the display screen, such as the bottom area of the display screen.
为了避免虚拟键盘区域对第一窗口和第二窗口显示内容的遮挡,当用户点击第二窗口中的输入框触发显示虚拟键盘区域时,电子设备可以将显示屏上除虚拟键盘区域之外的区域确定为允许绘制应用窗口的绘制区域,并在该绘制区域绘制第一窗口和第二窗口。以下进行具体介绍。In order to avoid the virtual keyboard area blocking the display content of the first window and the second window, when the user clicks the input box in the second window to trigger the display of the virtual keyboard area, the electronic device can display the area other than the virtual keyboard area on the display screen. A drawing area that allows drawing of the application window is determined, and the first window and the second window are drawn in the drawing area. Detailed introduction is given below.
一种可能的实现方式中,如图10中的(b)所示,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的高度为H1,虚拟键盘区域的高度为H2,H1与H2的和不超过电子设备显示屏显示区域的高度。第一窗口可以等比例缩小,从而避免虚拟键盘区域对第一窗口的遮挡。示例性的,第二窗口的宽度为W1,第一窗口的宽度可以自动调整为W2,其中,W1与W2的和等于电子设备显示屏显示区域的宽度。进一步的,第一窗口的高度可以基于第一窗口调整后的宽度W2以及第一窗口原始长宽比例得到。In one possible implementation, as shown in (b) of Figure 10, when the user clicks the input box in the second window to input text, the height of the second window is H1 and the height of the virtual keyboard area is H2. The sum of H1 and H2 does not exceed the height of the display area of the electronic device display screen. The first window can be reduced proportionally, thereby avoiding the virtual keyboard area from blocking the first window. For example, the width of the second window is W1, and the width of the first window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the width of the display area of the electronic device display screen. Further, the height of the first window can be obtained based on the adjusted width W2 of the first window and the original aspect ratio of the first window.
可选的,第一窗口也可以根据其他方式进行等比例缩小。例如,第一窗口的高度可以自动调整为H1,第一窗口的宽度可以基于第一窗口调整后的高度H1以及第一窗口原始长宽比例得到。本申请对此不做限定。Optionally, the first window can also be proportionally reduced according to other methods. For example, the height of the first window can be automatically adjusted to H1, and the width of the first window can be obtained based on the adjusted height H1 of the first window and the original aspect ratio of the first window. This application does not limit this.
另一种可能的实现方式中,如图10中的(c)所示,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的高度为H1,虚拟键盘区域的高度为H2,H1与H2的和不超过电子设备显示屏显示区域的高度。第一窗口的宽度可以根据第二窗口的宽度进行调整。示例性的,第二窗口的宽度为W1,第一窗口的宽度可以自动调整为W2,其中,W1与W2的和等于电子设备显示屏显示区域的宽度。此外,第二窗口的高度可以调整为与第一窗口相同,即调整为H1,以获得更好的显示效果。In another possible implementation, as shown in (c) in Figure 10, when the user clicks the input box in the second window to input text, the height of the second window is H1 and the height of the virtual keyboard area is H2. , the sum of H1 and H2 does not exceed the height of the display area of the electronic device display screen. The width of the first window can be adjusted according to the width of the second window. For example, the width of the second window is W1, and the width of the first window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the width of the display area of the electronic device display screen. In addition, the height of the second window can be adjusted to be the same as the first window, that is, to H1, to obtain better display effects.
再一种可能的实现方式中,如图10中的(d)所示,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的高度可以调整为H3,虚拟键盘区域的高度为H2,H2与H3的和等于电子设备显示屏显示区域的高度。第二窗口可以根据显示屏的剩余显示区域进行调整。示例性的,第二窗口的高度可以调整为与第一窗口相同,即调整为H3,第二窗口的宽度可以自动调整为W2,其中,W1与W2的和等于电子设备显示屏显示区域的宽度。本实现方式中,当用户点击第二窗口中的输入框显示虚拟键盘区域时,第一窗口和第二窗口的大小均可以进行调整,以填满显示屏的显示区域,从而提高显示屏显示的效率以及界面显示的美观度。In another possible implementation, as shown in (d) in Figure 10, when the user clicks the input box in the second window to input text, the height of the second window can be adjusted to H3, the height of the virtual keyboard area is H2, the sum of H2 and H3 is equal to the height of the display area of the electronic device display screen. The second window can be adjusted according to the remaining display area of the display screen. For example, the height of the second window can be adjusted to be the same as the first window, that is, adjusted to H3, and the width of the second window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the width of the display area of the electronic device. . In this implementation, when the user clicks the input box in the second window to display the virtual keyboard area, the sizes of both the first window and the second window can be adjusted to fill the display area of the display screen, thereby improving the display quality of the display screen. efficiency and the beauty of the interface display.
图10所示实施例中,当用户点击第二窗口中的输入框进行文字输入时,第一窗口的大小可以自动进行调整,最终第一窗口、第二窗口以及虚拟键盘区域均不重叠,从而避免了显示虚拟键盘区域时对窗口内容的遮挡,提高了用户的使用体验。In the embodiment shown in Figure 10, when the user clicks the input box in the second window to input text, the size of the first window can be automatically adjusted, and ultimately the first window, the second window and the virtual keyboard area do not overlap, so that This avoids blocking the window content when displaying the virtual keyboard area, improving the user experience.
图11是本申请实施例提供的另一种多窗口显示方法的示意图。如图11中的(a)所示,电子设备全屏显示第一窗口,第一窗口显示第一应用。第一窗口上叠加以小窗形式显示的第二窗口,第二窗口位于显示屏的中间靠右区域,第二窗口显示第二应用。其中,第一应用和第二应用可以是电子设备中的任一应用。如图11中的(b)所示,当用户点击第二窗口中的输入框进行文字输入时,屏幕底部区域可以显示虚拟键盘区域。第二窗口的高度为H1,虚拟键盘区域的高度为H2,H1与H2的和不超过电子设备显示屏显示区域的高度。示例性的,第二窗口的位置可以发生变化,以避免虚拟键盘区域对该第二窗口显示内容的遮挡。如图11中的(b)所示,第二窗口可以移动至显示屏的右上角。Figure 11 is a schematic diagram of another multi-window display method provided by an embodiment of the present application. As shown in (a) of Figure 11, the electronic device displays the first window in full screen, and the first window displays the first application. A second window displayed in the form of a small window is superimposed on the first window. The second window is located in the middle right area of the display screen, and the second window displays the second application. The first application and the second application may be any application in the electronic device. As shown in (b) of Figure 11, when the user clicks on the input box in the second window to input text, the virtual keyboard area may be displayed in the bottom area of the screen. The height of the second window is H1, the height of the virtual keyboard area is H2, and the sum of H1 and H2 does not exceed the height of the display area of the electronic device display screen. For example, the position of the second window can be changed to avoid the virtual keyboard area from blocking the content displayed in the second window. As shown in (b) of Figure 11, the second window can be moved to the upper right corner of the display screen.
可以理解,第二窗口的位置可以根据实际情况进行移动,例如,第二窗口可以向上移动、向上且向左移动、向上且向右移动等。可选的,第二窗口的移动方向可以与其初始显示的位置有关,例如,第二窗口初始显示在显示屏的中间靠右区域时,第二窗口可以向上且向右移动,又例如,第二窗口初始显示在显示屏的中间靠左区域时,第二窗口可以向上且向左移动,本申请对此不做限制。 It can be understood that the position of the second window can be moved according to the actual situation. For example, the second window can be moved upward, upward and left, upward and right, etc. Optionally, the moving direction of the second window may be related to its initial display position. For example, when the second window is initially displayed in the middle right area of the display screen, the second window may move upward and to the right. For example, the second window may move upward and to the right. When the window is initially displayed in the middle left area of the display screen, the second window can move upward and to the left, and this application does not impose restrictions on this.
此外,第一窗口可以等比例缩小,或者,第一窗口的宽度可以根据第二窗口的宽度进行调整,或者,第一窗口的高度可以根据第二窗口的高度进行调整,或者,第一窗口和第二窗口的大小均可以进行调整以填满显示屏的显示区域。具体调整方式可以参见图10所示实施例的相关表述,本申请在此不再赘述。In addition, the first window can be reduced proportionally, or the width of the first window can be adjusted according to the width of the second window, or the height of the first window can be adjusted according to the height of the second window, or the first window and The size of the second window can be adjusted to fill the display area of the display screen. For specific adjustment methods, please refer to the relevant expressions of the embodiment shown in FIG. 10 , which will not be described again in this application.
图11所示实施例中,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的位置可以进行移动,且第一窗口的大小可以自动进行调整,最终第一窗口、第二窗口以及虚拟键盘区域均不重叠,从而避免了显示虚拟键盘区域时对第一窗口和第二窗口内容的遮挡,提高了用户的使用体验。In the embodiment shown in Figure 11, when the user clicks the input box in the second window to input text, the position of the second window can be moved, and the size of the first window can be automatically adjusted. Finally, the first window, the second window The windows and the virtual keyboard area do not overlap, thereby avoiding the obstruction of the contents of the first window and the second window when the virtual keyboard area is displayed, and improving the user experience.
图12是本申请实施例提供的另一种多窗口显示方法的示意图。如图12中的(a)所示,电子设备全屏显示第一窗口,第一窗口显示第一应用。第一窗口上叠加以小窗形式显示的第二窗口,第二窗口位于显示屏的右上角,第二窗口显示第二应用。其中,第一应用和第二应用可以是电子设备中的任一应用。示例性的,当用户点击第二窗口中的输入框进行文字输入时,屏幕底部可以显示虚拟键盘区域。Figure 12 is a schematic diagram of another multi-window display method provided by an embodiment of the present application. As shown in (a) of Figure 12, the electronic device displays the first window in full screen, and the first window displays the first application. A second window displayed in the form of a small window is superimposed on the first window. The second window is located in the upper right corner of the display screen, and the second window displays the second application. The first application and the second application may be any application in the electronic device. For example, when the user clicks on the input box in the second window to input text, a virtual keyboard area may be displayed at the bottom of the screen.
一种可能的实现方式中,如图12中的(b)所示,第二窗口的原始高度H1与虚拟键盘区域H2的和大于显示屏显示区域的高度。因此,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的高度可以减小为H4。其中,H2与H4的和等于显示屏显示区域的高度,从而避免虚拟键盘区域对该第二窗口的遮挡。此外,第一窗口可以等比例缩小,从而避免虚拟键盘区域对第一窗口的遮挡。示例性的,第一窗口的高度可以调整为与第一窗口相同,即调整为H4。进一步的,第一窗口的宽度可以基于第一窗口调整后的高度H4以及第一窗口原始长宽比例得到。In one possible implementation, as shown in (b) of FIG. 12 , the sum of the original height H1 of the second window and the virtual keyboard area H2 is greater than the height of the display area of the display screen. Therefore, when the user clicks on the input box in the second window to input text, the height of the second window can be reduced to H4. The sum of H2 and H4 is equal to the height of the display area of the display screen, thereby avoiding the virtual keyboard area from blocking the second window. In addition, the first window can be reduced proportionally, thereby avoiding the virtual keyboard area from blocking the first window. For example, the height of the first window can be adjusted to be the same as the first window, that is, adjusted to H4. Further, the width of the first window can be obtained based on the adjusted height H4 of the first window and the original aspect ratio of the first window.
如图12中的(b)所示,第一窗口等比例缩小后,第一窗口的高度H4与虚拟键盘区域的高度H2的和等于显示屏显示区域的高度。另一些实施例中,第一窗口等比例缩小后,也可以是第一窗口的宽度与第二窗口的宽度的和等于显示屏显示区域的宽度。另一些实施例中,第一窗口等比例缩小后,也可以是第一窗口的宽度与第二窗口的宽度的和小于显示屏显示区域的宽度,且第一窗口的高度与第二窗口的高度的和小于显示屏显示区域的高度。又一些实施例中,第一窗口等比例缩小后,第一窗口、第二窗口以及虚拟键盘区域也可以正好填满电子设备显示屏的显示区域。As shown in (b) of Figure 12, after the first window is scaled down, the sum of the height H4 of the first window and the height H2 of the virtual keyboard area is equal to the height of the display area of the display screen. In other embodiments, after the first window is scaled down, the sum of the width of the first window and the width of the second window may be equal to the width of the display area of the display screen. In other embodiments, after the first window is scaled down, the sum of the width of the first window and the width of the second window may be smaller than the width of the display area of the display screen, and the height of the first window is equal to the height of the second window. The sum is less than the height of the display area of the display. In some embodiments, after the first window is scaled down, the first window, the second window and the virtual keyboard area can exactly fill the display area of the electronic device display screen.
另一种可能的实现方式中,如图12中的(c),第二窗口的原始高度H1与虚拟键盘区域H2的和大于显示屏显示区域的高度。因此,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的高度可以减小为H4。其中,H2与H4的和等于显示屏显示区域的高度,从而避免虚拟键盘区域对该第二窗口的遮挡。此外,第二窗口可以根据显示屏的剩余显示区域进行调整。示例性的,第二窗口的高度可以调整为与第一窗口的高度相同,即调整为H4,第二窗口的宽度可以自动调整为W2,其中,W1与W2的和等于电子设备显示屏显示区域的宽度。本实现方式中,当用户点击第二窗口中的输入框显示虚拟键盘区域时,第一窗口和第二窗口的大小均可以进行调整,以填满显示屏的显示区域,从而提高显示屏显示的效率以及界面显示的美观度。In another possible implementation, as shown in (c) of Figure 12, the sum of the original height H1 of the second window and the virtual keyboard area H2 is greater than the height of the display area of the display screen. Therefore, when the user clicks on the input box in the second window to enter text, the height of the second window can be reduced to H4. The sum of H2 and H4 is equal to the height of the display area of the display screen, thereby avoiding the virtual keyboard area from blocking the second window. In addition, the second window can be adjusted according to the remaining display area of the display screen. For example, the height of the second window can be adjusted to be the same as the height of the first window, that is, adjusted to H4, and the width of the second window can be automatically adjusted to W2, where the sum of W1 and W2 is equal to the display area of the electronic device display. width. In this implementation, when the user clicks the input box in the second window to display the virtual keyboard area, the sizes of both the first window and the second window can be adjusted to fill the display area of the display screen, thereby improving the display quality of the display screen. efficiency and the beauty of the interface display.
图11所示实施例中,当用户点击第二窗口中的输入框进行文字输入时,由于第一窗口的原始高度与虚拟键盘区域的和大于显示屏显示区域的高度,第二窗口的大小可以自动进行调整,且第一窗口的大小也可以自动进行调整,最终第一窗口、第二窗口以及虚拟键盘区域均不重叠,从而避免了显示虚拟键盘区域时对第一窗口和第二窗口内容的遮挡,提高了用户的使用体验。In the embodiment shown in Figure 11, when the user clicks the input box in the second window to input text, since the sum of the original height of the first window and the virtual keyboard area is greater than the height of the display area of the display screen, the size of the second window can be Automatically adjust, and the size of the first window can also be automatically adjusted. In the end, the first window, the second window and the virtual keyboard area do not overlap, thus avoiding the interference of the contents of the first window and the second window when the virtual keyboard area is displayed. Occlusion improves the user experience.
可选的,若点击第二窗口中的输入框前,第二窗口位于显示屏的中间区域,当用户点击第二窗口中的输入框进行文字输入时,第二窗口的位置类似图11所示实施例中进行移动,以避免虚拟键盘区域对该第二窗口显示内容的遮挡。例如,第二窗口可以移动到显示屏的右上角。此外,第一窗口和第二窗口的大小可以类似图12中的(b)和图12中的(c)所示相应进行调整,例如图12中的(b)所示第二窗口的高度减小为H4,第一窗口的高度调整为H4并等比例缩小。可以理解,第二窗口的位置可以根据实际情况进行缩小和移动,例如,第二窗口可以向上移动且缩小、向上且向左移动且缩小、向上且向右移动且缩小等。Optionally, if the user clicks on the input box in the second window, the second window is located in the middle area of the display screen. When the user clicks on the input box in the second window for text input, the position of the second window is similar to that shown in Figure 11. In the embodiment, the movement is performed to avoid the virtual keyboard area from blocking the display content of the second window. For example, the second window can be moved to the upper right corner of the display. In addition, the sizes of the first window and the second window can be adjusted accordingly as shown in (b) and (c) in Figure 12 , for example, the height of the second window as shown in (b) in Figure 12 is reduced. Small is H4, the height of the first window is adjusted to H4 and scaled down. It can be understood that the position of the second window can be reduced and moved according to the actual situation. For example, the second window can be moved upward and reduced, moved upward and left and reduced, moved upward and right and reduced, etc.
上述图10至图12所示实施例中,当用户点击第二窗口中的输入框触发显示虚拟键盘区域时,第一窗口和/或第二窗口的位置可以根据实际情况进行移动,第一窗口和/或第二窗口的大小可以根据实际情况进行调整,以在显示屏上互不重叠地显示第一窗口、第二窗口和虚拟键盘区域。可以理解,图10至图12所述实施例中仅给出了第一窗口和第二窗口的示例性调整方式,第一窗口和第二窗口还可以有其他更多的调整方式,本申请对此不做限定。In the above embodiments shown in Figures 10 to 12, when the user clicks the input box in the second window to trigger the display of the virtual keyboard area, the position of the first window and/or the second window can be moved according to the actual situation. And/or the size of the second window can be adjusted according to actual conditions to display the first window, the second window and the virtual keyboard area without overlapping each other on the display screen. It can be understood that the embodiments described in Figures 10 to 12 only provide exemplary adjustment methods for the first window and the second window. The first window and the second window can also have other more adjustment methods. This application provides This is not limited.
上述图10至图12所示实施例中,以用户点击第二窗口中的输入框触发显示虚拟键盘区域为例进行示例性介绍,可以理解,其他一些实施例中,也可以是用户点击第一窗口中的输入框触发显示虚拟键盘区域,或者,用户通过其他方式触发显示虚拟键盘区域。当显示屏上显示虚拟键盘区域时,第一窗口和第二窗口的调整方法均可以参照上述实施例中的相关介绍,本申请在此不再赘述。 In the above embodiments shown in Figures 10 to 12, the user clicks on the input box in the second window to trigger the display of the virtual keyboard area as an example for illustrative introduction. It can be understood that in other embodiments, the user can also click on the first The input box in the window triggers the display of the virtual keyboard area, or the user triggers the display of the virtual keyboard area through other methods. When the virtual keyboard area is displayed on the display screen, the adjustment methods of the first window and the second window can refer to the relevant introductions in the above embodiments, and will not be described in detail here.
一些实施例中,当虚拟键盘收起,例如用户点击虚拟键盘区域之外的区域收起虚拟键盘时,窗口的位置和/或大小可以恢复调整之前的显示状态。例如,如图13中的(a)所示,当用户点击第一窗口中的视频播放区域时,如图13中的(b)所示,第一窗口和第二窗口的位置和大小可以恢复调整前的窗口显示状态(即图12中的(a)所示状态)。In some embodiments, when the virtual keyboard is retracted, for example, when the user clicks on an area outside the virtual keyboard area to retract the virtual keyboard, the position and/or size of the window can be restored to the display state before adjustment. For example, as shown in (a) in Figure 13, when the user clicks on the video playback area in the first window, as shown in (b) in Figure 13, the positions and sizes of the first window and the second window can be restored. The window display state before adjustment (that is, the state shown in (a) in Figure 12).
对应的,下面详细说明图10至图13所示的实施例对应的后台处理流程。以主任务为第一窗口显示的第一应用对应的任务,临时任务为第二窗口显示的第二应用对应的任务为例,后台处理流程可以包括如下步骤:Correspondingly, the background processing flow corresponding to the embodiment shown in Figures 10 to 13 will be described in detail below. Taking the main task as the task corresponding to the first application displayed in the first window and the temporary task as the task corresponding to the second application displayed in the second window as an example, the background processing process may include the following steps:
步骤一、电子设备全屏显示第一应用的第一窗口、小窗显示第二应用的第二窗口;Step 1: The electronic device displays the first window of the first application in full screen and displays the second window of the second application in a small window;
步骤二、电子设备接收到显示虚拟键盘的操作;Step 2: The electronic device receives the operation of displaying the virtual keyboard;
步骤三、第一窗口和/或第二窗口的位置和/或大小进行调整;Step 3: Adjust the position and/or size of the first window and/or the second window;
步骤四、电子设备互不重叠地显示第一窗口、第二窗口以及虚拟键盘区域;Step 4: The electronic device displays the first window, the second window and the virtual keyboard area without overlapping each other;
步骤五、电子设备接收到收起虚拟键盘区域的操作;Step 5: The electronic device receives the operation to close the virtual keyboard area;
步骤六、电子设备恢复全屏显示第一应用的第一窗口、小窗显示第二应用的第二窗口。Step 6: The electronic device resumes displaying the first window of the first application in full screen and displaying the second window of the second application in a small window.
示例性的,第一窗口和第二窗口可以恢复原来的显示位置和/或大小。For example, the first window and the second window can be restored to their original display positions and/or sizes.
可选的,第一窗口和/或第二窗口自动调整后,用户还可以进一步对第一窗口和/或第二窗口的大小进行调整。一种实施方式中,如图14所示,用户可以对第一窗口和第二窗口的大小分别进行调整。例如,如图14中的(a)所示,当用户按住第一窗口的右边缘并向左拖拽时,如图14中的(b)所示,第一窗口的宽度逐渐减小。又例如,当用户按住第二窗口的左边缘并向右拖拽时,第二窗口的宽度逐渐减小。另一种实施方式中,用户调整第一窗口和第二窗口中一个窗口的宽度时,另一个窗口的宽度也会随之调整。例如,如图15中的(a)所示,第一窗口和第二窗口的宽度之和等于显示屏显示区域的宽度,此时,当用户按住第一窗口和第二窗口相邻的边缘并向左拖拽时,如图15中的(b)所示,第一窗口的宽度逐渐减小,同时,第二窗口的宽度逐渐增大。又例如,当用户按住第一窗口和第二窗口相邻的边缘并向右拖拽时,第一窗口的宽度逐渐增大,第二窗口的宽度逐渐减小。Optionally, after the first window and/or the second window are automatically adjusted, the user can further adjust the size of the first window and/or the second window. In one implementation, as shown in Figure 14, the user can adjust the sizes of the first window and the second window respectively. For example, as shown in (a) of Figure 14, when the user presses and holds the right edge of the first window and drags it to the left, as shown in (b) of Figure 14, the width of the first window gradually decreases. For another example, when the user presses and holds the left edge of the second window and drags it to the right, the width of the second window gradually decreases. In another implementation, when the user adjusts the width of one of the first window and the second window, the width of the other window will also be adjusted accordingly. For example, as shown in (a) of Figure 15, the sum of the widths of the first window and the second window is equal to the width of the display area of the display screen. At this time, when the user presses and holds the adjacent edges of the first window and the second window When dragging to the left, as shown in (b) in Figure 15, the width of the first window gradually decreases, and at the same time, the width of the second window gradually increases. For another example, when the user presses and holds the adjacent edges of the first window and the second window and drags them to the right, the width of the first window gradually increases and the width of the second window gradually decreases.
可选的,第一窗口和/或第二窗口自动调整后,用户还可以进一步对第一窗口和第二窗口的位置进行调整,例如,交换第一窗口和第二窗口的位置等。Optionally, after the first window and/or the second window are automatically adjusted, the user can further adjust the positions of the first window and the second window, for example, exchange the positions of the first window and the second window, etc.
上述图14至图15所示实施例中,在第一窗口和/或第二窗口自动调整之后,用户还可以进一步手动调整第一窗口和/或第二窗口的大小和/或位置,从而进一步提高了多窗口显示的用户体验。In the above embodiments shown in FIGS. 14 and 15 , after the first window and/or the second window are automatically adjusted, the user can further manually adjust the size and/or position of the first window and/or the second window, thereby further Improved user experience for multi-window displays.
一些实施例中,全屏窗口上可以叠加两个或者更多个小窗。图16是本申请实施例提供的另一种多窗口显示方法的示意图。如图16中的(a)所示,电子设备全屏显示第一窗口,第一窗口显示第一应用。第一窗口上叠加以小窗形式显示的第二窗口和第三窗口,第二窗口显示第二应用,第三窗口显示第三应用。其中,第一应用、第二应用和第三应用可以是电子设备中的任一应用。示例性的,当用户点击小窗中的输入框触发显示虚拟键盘区域时,用户作用的小窗和/或全屏窗口可以自动调整。例如,如图16中的(a)所示,当用户点击第二窗口中的输入框触发显示虚拟键盘区域时,第二窗口和全屏显示的第一窗口可以自动调整为如图16中的(b)所示的状态,而第三窗口可以暂时隐藏,例如从显示屏消失或者缩小为提示条等。又例如,如图16中的(c)所示,当用户点击第三窗口中的输入框触发显示虚拟键盘区域时,第三窗口和全屏显示的第一窗口可以自动调整为如图16中的(d)所示的状态,而第二窗口可以暂时隐藏。可选的,由于调整前第二窗口位于显示区域的靠右区域,第三窗口位于显示区域的靠左区域,如图16中的(b)所示,调整后的第二窗口可以位于显示区域的右上角,如图16中的(d)所示,调整后的第三窗口可以位于显示区域的左上角。需要注意的是,图16仅示意性示出了全屏窗口和小窗调整的一种可能方式,全屏窗口和小窗的位置和大小自动调整的方式还可以参考图10至图12所示实施例的相关描述,本申请在此不再赘述。可选的,自动调整后窗口还可以如图14或图15所示进行手动调整。In some embodiments, two or more small windows may be superimposed on the full-screen window. Figure 16 is a schematic diagram of another multi-window display method provided by an embodiment of the present application. As shown in (a) of Figure 16, the electronic device displays the first window in full screen, and the first window displays the first application. The first window is superimposed with a second window and a third window displayed in the form of small windows. The second window displays the second application, and the third window displays the third application. The first application, the second application and the third application may be any application in the electronic device. For example, when the user clicks on the input box in the small window to trigger the display of the virtual keyboard area, the small window and/or the full-screen window acted upon by the user can be automatically adjusted. For example, as shown in (a) of Figure 16, when the user clicks the input box in the second window to trigger the display of the virtual keyboard area, the second window and the first window displayed in full screen can be automatically adjusted as shown in (a) of Figure 16 b), and the third window can be temporarily hidden, such as disappearing from the display or shrinking to a prompt bar, etc. For another example, as shown in (c) in Figure 16, when the user clicks on the input box in the third window to trigger the display of the virtual keyboard area, the third window and the first window displayed in full screen can be automatically adjusted to as shown in Figure 16 The state shown in (d), while the second window can be temporarily hidden. Optionally, since the second window is located in the right area of the display area before adjustment, and the third window is located in the left area of the display area, as shown in (b) of Figure 16, the second window after adjustment can be located in the display area. The upper right corner of the display area, as shown in (d) in Figure 16, the adjusted third window can be located in the upper left corner of the display area. It should be noted that Figure 16 only schematically shows one possible way to adjust the full-screen window and small windows. For the automatic adjustment of the position and size of the full-screen window and small windows, please refer to the embodiments shown in Figures 10 to 12 The relevant description will not be repeated here in this application. Optionally, the automatically adjusted window can also be adjusted manually as shown in Figure 14 or Figure 15.
图16所示实施例中,当显示区域中存在不止一个小窗时,当用户点击目标小窗中的输入框触发虚拟键盘显示区域时,全屏窗口即第一窗口的大小可以自动进行调整,调整后第一窗口、用户点击的目标小窗以及虚拟键盘区域可以互不重叠地显示。而其他小窗可能是用户此时不希望关注的小窗,因此,其他小窗可以暂时隐藏,例如从显示屏消失或者缩小为提示条等。从而,显示区域可以显示用户此时希望专注的任务,同时也避免了虚拟键盘区域对显示内容的遮挡,提高了用户的使用体验。In the embodiment shown in Figure 16, when there is more than one small window in the display area, and when the user clicks the input box in the target small window to trigger the virtual keyboard display area, the size of the full-screen window, that is, the first window, can be automatically adjusted. The last first window, the target small window clicked by the user, and the virtual keyboard area can be displayed without overlapping each other. Other small windows may be small windows that the user does not want to pay attention to at this time. Therefore, other small windows can be temporarily hidden, such as disappearing from the display screen or shrinking to a prompt bar. Therefore, the display area can display the tasks that the user wants to focus on at this time, while also avoiding the virtual keyboard area from blocking the display content, improving the user experience.
一些实施例中,当全屏窗口上叠加两个或者更多个小窗时,用户也可以通过点击全屏窗口上的输入框触发显示虚拟键盘区域。此时,示例性的,全屏窗口和/或目标小窗可以自动进行调整,以互不重叠地显示全屏窗口、目标小窗和虚拟键盘区域。可选的,目标小窗可以为用户最近一次操作的小窗、用户最新打开 的小窗、或者预设的某一应用的小窗等。全屏小窗和目标小窗自动调整的方式同样可以参考图10至图12所示实施例的相关描述,本申请在此不再赘述。可选的,自动调整后窗口还可以如图14或图15所示进行手动调整。In some embodiments, when two or more small windows are superimposed on the full-screen window, the user can also trigger the display of the virtual keyboard area by clicking on the input box on the full-screen window. At this time, for example, the full-screen window and/or the target small window can be automatically adjusted to display the full-screen window, the target small window, and the virtual keyboard area without overlapping each other. Optionally, the target small window can be the small window most recently operated by the user and the window most recently opened by the user. a small window, or a preset small window for a certain application, etc. For the method of automatic adjustment of the full-screen small window and the target small window, reference can also be made to the relevant descriptions of the embodiments shown in FIGS. 10 to 12 , which will not be described again in this application. Optionally, the automatically adjusted window can also be adjusted manually as shown in Figure 14 or Figure 15.
示例性的,图16所示实施例中,当虚拟键盘收起,例如用户点击虚拟键盘区域之外的区域收起虚拟键盘时,窗口的位置和/或大小可以恢复调整之前的显示状态。例如,当用户点击虚拟键盘区域之外的区域时,各个窗口的位置和大小可以由图16中的(b)所示的状态恢复至图16中的(a)所示的状态,第三窗口可以重新显示。又例如,当用户点击虚拟键盘区域之外的区域时,各个窗口的位置和大小可以由图16中的(d)所示的状态恢复至图16中的(c)所示的状态,第二窗口可以重新显示。For example, in the embodiment shown in Figure 16, when the virtual keyboard is retracted, for example, when the user clicks on an area outside the virtual keyboard area to retract the virtual keyboard, the position and/or size of the window can be restored to the display state before adjustment. For example, when the user clicks an area outside the virtual keyboard area, the position and size of each window can be restored from the state shown in (b) in Figure 16 to the state shown in (a) in Figure 16. The third window Can be redisplayed. For another example, when the user clicks on an area outside the virtual keyboard area, the position and size of each window can be restored from the state shown in (d) in Figure 16 to the state shown in (c) in Figure 16 . Secondly, The window can be redisplayed.
图17是本申请实施例提供的另一种多窗口显示方法的示意图。如图17中的(a)所示,电子设备以分屏模式显示第一窗口和第二窗口,第一窗口显示第一应用,第二窗口显示第二应用。其中,第一应用和第二应用可以是电子设备中的任一应用。如图17中的(b)所示,当用户点击第二窗口中的输入框进行文字输入时,屏幕底部区域可以显示虚拟键盘区域。示例性的,第一窗口和第二窗口的大小可以自动进行调整,以避免虚拟键盘区域对第一窗口和第二窗口显示内容的遮挡。如图17中的(b)所示,第一窗口和第二窗口的高度减小、宽度保持不变,调整之后第一窗口、第二窗口和虚拟键盘区域填满显示屏的显示区域。可选的,用户可以进一步对第一窗口和第二窗口的位置和大小进行调整。例如,当用户按住第一窗口和第二窗口相邻的边缘并向左拖拽时,第一窗口的宽度逐渐减小,同时,第二窗口的宽度逐渐增大。又例如,用户可以交换第一窗口和第二窗口的位置。同样,当用户点击虚拟键盘区域之外的区域时,第一窗口和第二窗口的位置和/或大小可以恢复调整之前的分屏显示状态。Figure 17 is a schematic diagram of another multi-window display method provided by an embodiment of the present application. As shown in (a) of FIG. 17 , the electronic device displays a first window and a second window in a split-screen mode, the first window displays a first application, and the second window displays a second application. The first application and the second application may be any application in the electronic device. As shown in (b) of Figure 17, when the user clicks on the input box in the second window to input text, the virtual keyboard area may be displayed in the bottom area of the screen. For example, the sizes of the first window and the second window can be automatically adjusted to avoid the virtual keyboard area from blocking the display content of the first window and the second window. As shown in (b) of Figure 17 , the height of the first window and the second window is reduced and the width remains unchanged. After adjustment, the first window, the second window and the virtual keyboard area fill the display area of the display screen. Optionally, the user can further adjust the position and size of the first window and the second window. For example, when the user presses and holds the adjacent edge of the first window and the second window and drags it to the left, the width of the first window gradually decreases, and at the same time, the width of the second window gradually increases. For another example, the user can swap the positions of the first window and the second window. Similarly, when the user clicks on an area outside the virtual keyboard area, the position and/or size of the first window and the second window can be restored to the split-screen display state before adjustment.
可以理解,上述实施例中,窗口的大小发生变化后,窗口中显示的界面可以仍然为原来的界面,但是该界面的内容可以根据窗口的大小和比例进行自适应调整,以匹配窗口的显示比例。It can be understood that in the above embodiment, after the size of the window changes, the interface displayed in the window can still be the original interface, but the content of the interface can be adaptively adjusted according to the size and proportion of the window to match the display proportion of the window. .
图18是本申请实施例提供的一种电子设备的软件结构示意图。如图18所示,电子设备可以包括主任务应用、临时任务应用、输入法应用、多任务处理单元、窗口管理单元、输入管理单元和图形显示单元。主任务应用可以是前述实施例中的第一应用,临时任务应用可以是前述实施例中的第二应用,输入法应用可以是前述实施例中用于显示虚拟键盘区域的应用。多任务处理单元可以负责监听用户的交互事件,监听输入管理单元的输入触发和收起事件,处理主任务和临时任务的状态切换,计算多任务窗口的显示位置、区域和大小等。窗口管理单元可以初始化窗口的显示,根据多任务处理单元的指示改变主任务应用和临时任务应用窗口的大小和位置,并通知主任务应用和临时任务应用窗口大小和位置的变化。输入管理单元可以用于监听用户的交互事件,控制输入法应用的触发和收起。图形显示单元可以用于显示主任务应用、临时任务应用以及输入法应用的界面。Figure 18 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application. As shown in FIG. 18 , the electronic device may include a main task application, a temporary task application, an input method application, a multitasking unit, a window management unit, an input management unit and a graphics display unit. The main task application may be the first application in the aforementioned embodiment, the temporary task application may be the second application in the aforementioned embodiment, and the input method application may be the application used to display the virtual keyboard area in the aforementioned embodiment. The multi-tasking processing unit can be responsible for monitoring user interaction events, monitoring input triggering and closing events of the input management unit, processing the status switching between main tasks and temporary tasks, calculating the display position, area and size of the multi-tasking window, etc. The window management unit can initialize the display of the window, change the size and position of the main task application and temporary task application windows according to the instructions of the multitasking unit, and notify the main task application and temporary task application windows of changes in size and position. The input management unit can be used to monitor user interaction events and control the triggering and closing of input method applications. The graphic display unit can be used to display the interfaces of the main task application, the temporary task application and the input method application.
示例性的,当用户点击临时任务应用(例如第二应用)中的输入框进行文字输入时,输入管理单元可以监听到用户点击输入框的操作,触发输入法应用。输入管理单元可以通知多任务管理单元输入法应用的窗口发生变化。接着,多任务处理单元可以计算主任务应用(例如第一应用)、临时任务应用以及输入法应用显示的位置、区域和大小。进一步的,多任务处理单元可以通知窗口管理单元改变主任务应用、临时任务应用以及输入法应用显示的位置、区域和大小,并由窗口管理单元通知主任务应用、临时任务应用以及输入法应用。最终,主任务应用、临时任务应用以及输入法应用通知图形显示单元重新绘制窗口,并显示最终调整后的界面。For example, when the user clicks on the input box in the temporary task application (for example, the second application) to input text, the input management unit can monitor the user's click on the input box and trigger the input method application. The input snap-in can notify the multi-tasking snap-in that the window of the input method application has changed. Then, the multitasking unit may calculate the position, area, and size displayed by the main task application (eg, the first application), the temporary task application, and the input method application. Further, the multi-tasking processing unit can notify the window management unit to change the display position, area and size of the main task application, temporary task application and input method application, and the window management unit notifies the main task application, temporary task application and input method application. Finally, the main task application, the temporary task application and the input method application notify the graphics display unit to redraw the window and display the final adjusted interface.
图19示出了本申请实施例提供的一种多窗口显示方法的示意性流程图,该方法可以由电子设备执行。该方法包括:Figure 19 shows a schematic flowchart of a multi-window display method provided by an embodiment of the present application. The method can be executed by an electronic device. The method includes:
S1901:电子设备在显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口。S1901: The electronic device displays the first window in the full screen of the display screen, and displays the second window in the first area of the display screen.
S1902:电子设备接收第一操作。S1902: The electronic device receives the first operation.
示例性的,第一操作可以是用户点击第一窗口或第二窗口的输入框的操作。For example, the first operation may be an operation in which the user clicks on the input box of the first window or the second window.
S1903:响应于该第一操作,电子设备在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,在显示屏的第四区域显示虚拟键盘。其中,第二区域、第三区域与第四区域互不重叠。S1903: In response to the first operation, the electronic device displays the second window in the second area of the display screen, the first window in the third area of the display screen, and the virtual keyboard in the fourth area of the display screen. Among them, the second area, the third area and the fourth area do not overlap with each other.
一些实施例中,第一区域和第二区域可以相同,即第二窗口的显示位置和大小保持不变。例如,如图10中的(b)和(c)所示,虚拟键盘区域显示前后第二窗口的显示位置和大小均相同。In some embodiments, the first area and the second area may be the same, that is, the display position and size of the second window remain unchanged. For example, as shown in (b) and (c) in Figure 10, the display position and size of the second window are the same before and after the virtual keyboard area is displayed.
另一些实施例中,第一区域和第二区域可以不同。一种可能的实现方式中,如图11所示,在第一区域显示的第二窗口与在第二区域显示的第二窗口的大小相同但位置不同。另一种可能的实现方式中,如图12所示,在第一区域显示的第二窗口与在第二区域显示的第二窗口的大小不同,在第二区域显示的第二窗口的尺寸小于在第一区域显示的第二窗口的尺寸。例如,在第二区域显示的第二窗口的高度小于在第一区 域显示的第二窗口的高度。In other embodiments, the first area and the second area may be different. In a possible implementation, as shown in FIG. 11 , the second window displayed in the first area and the second window displayed in the second area have the same size but different positions. In another possible implementation, as shown in Figure 12, the size of the second window displayed in the first area and the second window displayed in the second area are different, and the size of the second window displayed in the second area is smaller than The size of the second window displayed in the first area. For example, the height of the second window displayed in the second area is smaller than that in the first area. The height of the second window displayed by the field.
一些实施例中,电子设备可以在显示屏的固定区域绘制虚拟键盘,第四区域即该固定区域;电子设备可以将显示屏中除虚拟键盘之外的区域确定为允许绘制应用窗口的绘制区域;进而,电子设备可以在该绘制区域绘制第一窗口和第二窗口。其中,该绘制区域包括上述第二区域和第三区域。In some embodiments, the electronic device can draw the virtual keyboard in a fixed area of the display screen, and the fourth area is the fixed area; the electronic device can determine the area of the display screen other than the virtual keyboard as a drawing area that allows drawing of the application window; Furthermore, the electronic device can draw the first window and the second window in the drawing area. Wherein, the drawing area includes the above-mentioned second area and third area.
一些实施例中,电子设备可以将第一窗口从第一尺寸等比例缩小为第二尺寸。例如,如图10中的(b)所示,第一窗口等比例缩小。In some embodiments, the electronic device may proportionally reduce the first window from the first size to the second size. For example, as shown in (b) of Figure 10, the first window is scaled down.
一些实施例中,电子设备接收第一操作后,缩小所述第一窗口,以使得在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,例如图10中的(b)所示。或者,电子设备接收第一操作后,缩小第一窗口,向上移动、向上且向左移动、或向上且向右移动第二窗口,以使得在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,例如图11中的(b)所示,电子设备缩小第一窗口、向上且向右移动第二窗口。或者,电子设备接收第一操作后,缩小第一窗口,向上移动、向上且向左移动、或向上且向右移动第二窗口,且缩小第二窗口,以使得在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口。In some embodiments, after receiving the first operation, the electronic device shrinks the first window so that the second window is displayed in the second area of the display screen and the first window is displayed in the third area of the display screen, for example, in Figure 10 shown in (b). Alternatively, after receiving the first operation, the electronic device shrinks the first window, moves it upward, moves it upward and to the left, or moves the second window upward and to the right, so that the second window is displayed in the second area of the display screen. The first window is displayed in the third area of the screen. For example, as shown in (b) in FIG. 11 , the electronic device reduces the first window and moves the second window upward and to the right. Alternatively, after receiving the first operation, the electronic device shrinks the first window, moves it upward, moves it upward and to the left, or moves the second window upward and to the right, and shrinks the second window so that it is displayed in the second area of the display screen. The second window displays the first window in the third area of the display screen.
一些实施例中,第二区域、第三区域以及第四区域填满显示屏的显示区域。例如,如图10中的(d)所示,第二区域显示的第二窗口、第三区域显示的第一窗口、以及第四区域显示的虚拟键盘正好填满显示屏的显示区域。In some embodiments, the second area, the third area and the fourth area fill the display area of the display screen. For example, as shown in (d) of FIG. 10 , the second window displayed in the second area, the first window displayed in the third area, and the virtual keyboard displayed in the fourth area exactly fill the display area of the display screen.
一些实施例中,电子设备接收作用于第一窗口和第二窗口相邻边缘的拖动操作;响应于该拖动操作,电子设备控制第二区域调整为第五区域,以及控制第三区域调整为第六区域,第五区域显示第二窗口,第六区域显示第一窗口。例如,如图15所示,当用户按住第一窗口和第二窗口相邻的边缘并向左拖拽时,第一窗口的显示区域逐渐减小,同时,第二窗口的显示区域逐渐增大。In some embodiments, the electronic device receives a drag operation acting on adjacent edges of the first window and the second window; in response to the drag operation, the electronic device controls the adjustment of the second area to the fifth area, and controls the adjustment of the third area. It is the sixth area, the fifth area displays the second window, and the sixth area displays the first window. For example, as shown in Figure 15, when the user presses and holds the adjacent edge of the first window and the second window and drags it to the left, the display area of the first window gradually decreases, and at the same time, the display area of the second window gradually increases. big.
一些实施例中,电子设备接收作用于第一窗口或第二窗口的第二操作;响应于该第二操作,虚拟键盘消失,电子设备在显示屏全屏显示第一窗口,在显示屏的第一区域显示所述第二窗口。例如。如图13所示,虚拟键盘收起时,窗口的位置和大小可以恢复调整前的窗口显示状态。In some embodiments, the electronic device receives a second operation that acts on the first window or the second window; in response to the second operation, the virtual keyboard disappears, and the electronic device displays the first window in full screen on the display screen, and in the first part of the display screen area displays the second window. For example. As shown in Figure 13, when the virtual keyboard is retracted, the position and size of the window can be restored to the window display state before adjustment.
图20示出了本申请实施例提供的另一种多窗口显示方法的示意性流程图,该方法可以由电子设备执行。该方法包括:Figure 20 shows a schematic flowchart of another multi-window display method provided by an embodiment of the present application. This method can be executed by an electronic device. The method includes:
S2001:电子设备在显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口。S2001: The electronic device displays the first window in the full screen of the display screen, and displays the second window in the first area of the display screen.
S2002:电子设备接收第一预设操作。S2002: The electronic device receives the first preset operation.
示例性的,第一预设操作可以是手势操作、对控件的操作、或者对预设的物理按键或虚拟按键的操作等。For example, the first preset operation may be a gesture operation, an operation on a control, or an operation on a preset physical key or virtual key, etc.
S2003:响应于该第一预设操作,电子设备在显示屏全屏显示第二窗口,在显示屏的第七区域显示第一窗口。S2003: In response to the first preset operation, the electronic device displays the second window in the full screen of the display screen and displays the first window in the seventh area of the display screen.
示例性的,如图7所示,用户可以通过第一预设操作切换第一窗口和第二窗口的显示形态。如图7中的(d)所示,第一窗口全屏显示,第二窗口以小窗形式显示。如图7中的(b)和(c)所示,第二窗口全屏显示,第一窗口以小窗形式显示。此外,如图7中的(b)和(d)所示,第一区域与第七区域相同。或者,如图7中的(c)和(d)所示,第一区域和第七区域不同。For example, as shown in Figure 7, the user can switch the display form of the first window and the second window through a first preset operation. As shown in (d) in Figure 7, the first window is displayed in full screen, and the second window is displayed in the form of a small window. As shown in (b) and (c) in Figure 7, the second window is displayed in full screen, and the first window is displayed in the form of a small window. Furthermore, as shown in (b) and (d) in FIG. 7 , the first area is the same as the seventh area. Or, as shown in (c) and (d) in FIG. 7 , the first area and the seventh area are different.
图21为本申请实施例提供的一种显示装置的组成示意图。如图21所示,该装置可以应用于电子设备,该装置可以包括:显示单元2101和输入单元2102。FIG. 21 is a schematic diagram of the composition of a display device provided by an embodiment of the present application. As shown in Figure 21, the device can be applied to electronic equipment, and the device can include: a display unit 2101 and an input unit 2102.
一些实施例中,显示单元2101,用于在电子设备的显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口。In some embodiments, the display unit 2101 is configured to display the first window in full screen on the display screen of the electronic device, and display the second window in the first area of the display screen.
输入单元2102,用于接收第一操作。The input unit 2102 is used to receive the first operation.
显示单元2101,还用于在接收到第一操作后,在显示屏的第二区域显示第二窗口,在显示屏的第三区域显示第一窗口,在显示屏的第四区域显示虚拟键盘。其中,第二区域、第三区域与第四区域互不重叠。The display unit 2101 is further configured to, after receiving the first operation, display a second window in the second area of the display screen, display the first window in the third area of the display screen, and display the virtual keyboard in the fourth area of the display screen. Among them, the second area, the third area and the fourth area do not overlap with each other.
又一些实施例中,显示单元2101,用于在电子设备的显示屏全屏显示第一窗口,在显示屏的第一区域显示第二窗口。In some embodiments, the display unit 2101 is configured to display the first window in full screen on the display screen of the electronic device, and display the second window in the first area of the display screen.
输入单元2102,用于接收第一预设操作。The input unit 2102 is used to receive the first preset operation.
显示单元2101,还用于在接收到第一预设操作后,在显示屏全屏显示第二窗口,在显示屏的第七区域显示第一窗口。The display unit 2101 is also configured to display the second window in the full screen of the display screen and display the first window in the seventh area of the display screen after receiving the first preset operation.
有关上述显示单元2101和输入单元2102更详细的描述可以直接参考上述实施例中相关描述直接得到,这里不加赘述。 More detailed descriptions about the display unit 2101 and the input unit 2102 can be obtained directly by referring to the relevant descriptions in the above embodiments, and will not be described again here.
本申请实施例还提供一种显示装置,该装置可以应用于电子设备,如上述实施例中的电子设备(如手机)。该装置可以包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令时使得该显示装置实现上述方法实施例中电子设备(如手机)执行的各个功能或者步骤。An embodiment of the present application also provides a display device, which can be applied to electronic equipment, such as the electronic equipment (such as a mobile phone) in the above embodiment. The device may include: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions so that the display device implements various functions performed by the electronic device (such as a mobile phone) in the above method embodiment or step.
本申请实施例还提供一种电子设备(该电子设备可以是电子设备,如可以为上述实施例中的手机),该电子设备可以包括:显示屏、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中电子设备(如手机)执行的各个功能或者步骤。当然,该电子设备包括但不限于上述显示屏、存储器和一个或多个处理器。例如,该电子设备的结构可以参考图5所示的手机的结构。An embodiment of the present application also provides an electronic device (the electronic device may be an electronic device, such as the mobile phone in the above embodiment). The electronic device may include: a display screen, a memory, and one or more processors. The display, memory and processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes computer instructions, the electronic device can perform various functions or steps performed by the electronic device (such as a mobile phone) in the above method embodiments. Of course, the electronic device includes but is not limited to the above-mentioned display screen, memory and one or more processors. For example, the structure of the electronic device may refer to the structure of the mobile phone shown in FIG. 5 .
本申请实施例还提供一种芯片系统,该芯片系统可以应用于电子设备,如前述实施例中的电子设备(如手机)。如图22所示,该芯片系统包括至少一个处理器2201和至少一个接口电路2202。该处理器2201可以是上述电子设备中的处理器。处理器2201和接口电路2202可通过线路互联。该处理器2201可以通过接口电路2202从上述电子设备的存储器接收并执行计算机指令。当计算机指令被处理器2201执行时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。Embodiments of the present application also provide a chip system, which can be applied to electronic devices, such as the electronic devices (such as mobile phones) in the previous embodiments. As shown in Figure 22, the chip system includes at least one processor 2201 and at least one interface circuit 2202. The processor 2201 may be the processor in the above-mentioned electronic device. The processor 2201 and the interface circuit 2202 may be interconnected via wires. The processor 2201 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 2202. When the computer instructions are executed by the processor 2201, the electronic device can be caused to perform various steps performed by the mobile phone in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in the embodiments of this application.
本申请实施例还提供一种计算机可读存储介质,用于存储电子设备,如上述电子设备(如手机)运行的计算机指令。Embodiments of the present application also provide a computer-readable storage medium for storing computer instructions run by an electronic device, such as the above-mentioned electronic device (such as a mobile phone).
本申请实施例还提供一种计算机程序产品,包括电子设备,如上述电子设备(如手机)运行的计算机指令。An embodiment of the present application also provides a computer program product, which includes computer instructions run by an electronic device, such as the above-mentioned electronic device (such as a mobile phone).
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be allocated according to needs. Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be The combination can either be integrated into another device, or some features can be omitted, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated. The components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium , including several instructions to cause a device (which can be a microcontroller, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above contents are only specific implementation modes of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (15)

  1. 一种多窗口显示方法,其特征在于,所述方法应用于电子设备,所述方法包括:A multi-window display method, characterized in that the method is applied to electronic devices, and the method includes:
    所述电子设备在显示屏全屏显示第一窗口,在所述显示屏的第一区域显示第二窗口;其中,所述第二窗口位于所述第一窗口上层,且所述第二窗口的显示面积小于所述第一窗口的显示面积;The electronic device displays a first window in the full screen of the display screen, and displays a second window in a first area of the display screen; wherein the second window is located on an upper layer of the first window, and the display of the second window The area is smaller than the display area of the first window;
    所述电子设备接收第一操作,所述第一操作用于指示显示虚拟键盘;The electronic device receives a first operation, the first operation is used to instruct display of a virtual keyboard;
    响应于所述第一操作,所述电子设备在所述显示屏的第二区域显示所述第二窗口,在所述显示屏的第三区域显示所述第一窗口,在所述显示屏的第四区域显示所述虚拟键盘;In response to the first operation, the electronic device displays the second window in a second area of the display screen, displays the first window in a third area of the display screen, and displays the first window in a third area of the display screen. The fourth area displays the virtual keyboard;
    其中,所述第二区域、所述第三区域与所述第四区域互不重叠。Wherein, the second area, the third area and the fourth area do not overlap with each other.
  2. 根据权利要求1所述的方法,其特征在于,所述第一区域与所述第二区域相同。The method of claim 1, wherein the first area and the second area are the same.
  3. 根据权利要求1所述的方法,其特征在于,所述第一区域与所述第二区域不同;The method of claim 1, wherein the first area and the second area are different;
    在所述第一区域显示的所述第二窗口与在所述第二区域显示的所述第二窗口的大小相同;或者The second window displayed in the first area is the same size as the second window displayed in the second area; or
    在所述第一区域显示的所述第二窗口与在所述第二区域显示的所述第二窗口的大小不同,在所述第二区域显示的所述第二窗口的尺寸小于在所述第一区域显示的所述第二窗口的尺寸。The size of the second window displayed in the first area is different from that of the second window displayed in the second area, and the size of the second window displayed in the second area is smaller than that in the second area. The size of the second window displayed in the first area.
  4. 根据权利要求3所述的方法,在所述第二区域显示的所述第二窗口的尺寸小于在所述第一区域显示的所述第二窗口的尺寸,包括:The method of claim 3, wherein the size of the second window displayed in the second area is smaller than the size of the second window displayed in the first area, including:
    在所述第二区域显示的所述第二窗口的高度小于在所述第一区域显示的所述第二窗口的高度。The height of the second window displayed in the second area is smaller than the height of the second window displayed in the first area.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述电子设备在所述显示屏的第二区域显示所述第二窗口,在所述显示屏的第三区域显示所述第一窗口,在所述显示屏的第四区域显示所述虚拟键盘,包括:The method according to any one of claims 1 to 4, characterized in that the electronic device displays the second window in a second area of the display screen, and displays the second window in a third area of the display screen. The first window displays the virtual keyboard in the fourth area of the display screen, including:
    所述电子设备在所述显示屏的固定区域绘制所述虚拟键盘;所述第四区域为所述固定区域;The electronic device draws the virtual keyboard in a fixed area of the display screen; the fourth area is the fixed area;
    所述电子设备将所述显示屏中除所述虚拟键盘之外的区域确定为允许绘制应用窗口的绘制区域;The electronic device determines an area of the display screen other than the virtual keyboard as a drawing area that allows drawing of the application window;
    所述电子设备在所述绘制区域绘制所述第一窗口和所述第二窗口;所述绘制区域包括所述第二区域和所述第三区域。The electronic device draws the first window and the second window in the drawing area; the drawing area includes the second area and the third area.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述电子设备将所述第一窗口从第一尺寸等比例缩小为第二尺寸。The method according to any one of claims 1 to 5, characterized in that the electronic device proportionally reduces the first window from the first size to the second size.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,响应于所述第一操作,所述电子设备在所述显示屏的第二区域显示所述第二窗口,在所述显示屏的第三区域显示所述第一窗口,包括:The method according to any one of claims 1 to 6, characterized in that, in response to the first operation, the electronic device displays the second window in a second area of the display screen, and in the The third area of the display screen displays the first window, including:
    响应于所述第一操作,缩小所述第一窗口,以使得在所述显示屏的第二区域显示所述第二窗口,在所述显示屏的第三区域显示所述第一窗口;或者In response to the first operation, shrinking the first window so that the second window is displayed in a second area of the display screen and the first window is displayed in a third area of the display screen; or
    响应于所述第一操作,缩小所述第一窗口,向上移动、向上且向左移动、或向上且向右移动所述第二窗口,以使得在所述显示屏的第二区域显示所述第二窗口,在所述显示屏的第三区域显示所述第一窗口;或者In response to the first operation, the first window is reduced, the second window is moved upward, upward and left, or upward and right, so that the second window is displayed in a second area of the display screen. A second window displays the first window in a third area of the display screen; or
    响应于所述第一操作,缩小所述第一窗口,向上移动、向上且向左移动、或向上且向右移动所述第二窗口,且缩小所述第二窗口,以使得在所述显示屏的第二区域显示所述第二窗口,在所述显示屏的第三区域显示所述第一窗口。In response to the first operation, the first window is reduced, the second window is moved upward, upward and left, or the second window is moved upward and right, and the second window is reduced so that on the display The second window is displayed in the second area of the screen, and the first window is displayed in the third area of the display screen.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第二区域、所述第三区域以及所述第四区域填满所述显示屏的显示区域。The method according to any one of claims 1 to 7, characterized in that the second area, the third area and the fourth area fill the display area of the display screen.
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, characterized in that the method further includes:
    所述电子设备接收作用于所述第一窗口和所述第二窗口相邻边缘的拖动操作;The electronic device receives a drag operation acting on adjacent edges of the first window and the second window;
    响应于所述拖动操作,所述电子设备控制所述第二区域调整为第五区域,以及控制所述第三区域调整为第六区域,所述第五区域显示所述第二窗口,所述第六区域显示所述第一窗口。In response to the drag operation, the electronic device controls the second area to be adjusted to a fifth area, and controls the third area to be adjusted to a sixth area, and the fifth area displays the second window, so The sixth area displays the first window.
  10. 根据权利要求1所述的方法,其特征在于,所述第一操作为作用于所述第二窗口的操作。The method of claim 1, wherein the first operation is an operation acting on the second window.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    所述电子设备接收作用于所述第一窗口或所述第二窗口的第二操作;The electronic device receives a second operation acting on the first window or the second window;
    响应于所述第二操作,所述虚拟键盘消失,所述电子设备在显示屏全屏显示所述第一窗口,在显示屏的所述第一区域显示所述第二窗口。In response to the second operation, the virtual keyboard disappears, the electronic device displays the first window in the full screen of the display screen, and displays the second window in the first area of the display screen.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that, the method further includes:
    所述电子设备接收第一预设操作; The electronic device receives a first preset operation;
    响应于所述第一预设操作,所述电子设备在显示屏全屏显示所述第二窗口,在显示屏的第七区域显示所述第一窗口;其中,所述第一区域和所述第七区域相同或不同。In response to the first preset operation, the electronic device displays the second window in the full screen of the display screen, and displays the first window in the seventh area of the display screen; wherein the first area and the third window Seven areas are the same or different.
  13. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    处理器,存储器,以及,一个或多个程序;processor, memory, and, one or more programs;
    其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求1至12任一项所述的方法步骤。Wherein, the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the tasks of claims 1 to The method steps described in any one of 12.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至12中任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute any one of claims 1 to 12. method described in the item.
  15. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1至12中任一项所述的方法。 A computer program product, characterized in that it includes a computer program, which when the computer program is run on a computer, causes the computer to perform the method according to any one of claims 1 to 12.
PCT/CN2023/104198 2022-07-05 2023-06-29 Multi-window display method and device WO2024007966A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210791020.XA CN117389437A (en) 2022-07-05 2022-07-05 Multi-window display method and equipment
CN202210791020.X 2022-07-05

Publications (1)

Publication Number Publication Date
WO2024007966A1 true WO2024007966A1 (en) 2024-01-11

Family

ID=89437883

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/104198 WO2024007966A1 (en) 2022-07-05 2023-06-29 Multi-window display method and device

Country Status (2)

Country Link
CN (1) CN117389437A (en)
WO (1) WO2024007966A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2854013A1 (en) * 2013-09-30 2015-04-01 Samsung Electronics Co., Ltd Method for displaying in electronic device and electronic device thereof
US20150121284A1 (en) * 2013-10-28 2015-04-30 Lenovo (Beijing) Co., Ltd. Method for information processing and electronic apparatus thereof
CN107678667A (en) * 2017-09-18 2018-02-09 维沃移动通信有限公司 A kind of virtual keyboard display method and mobile terminal
CN110661917A (en) * 2019-08-07 2020-01-07 华为技术有限公司 Display method and electronic equipment
CN111669459A (en) * 2020-04-23 2020-09-15 华为技术有限公司 Keyboard display method, electronic device and computer readable storage medium
CN111857532A (en) * 2020-07-30 2020-10-30 京东方科技集团股份有限公司 Virtual keyboard display method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2854013A1 (en) * 2013-09-30 2015-04-01 Samsung Electronics Co., Ltd Method for displaying in electronic device and electronic device thereof
US20150121284A1 (en) * 2013-10-28 2015-04-30 Lenovo (Beijing) Co., Ltd. Method for information processing and electronic apparatus thereof
CN107678667A (en) * 2017-09-18 2018-02-09 维沃移动通信有限公司 A kind of virtual keyboard display method and mobile terminal
CN110661917A (en) * 2019-08-07 2020-01-07 华为技术有限公司 Display method and electronic equipment
CN111669459A (en) * 2020-04-23 2020-09-15 华为技术有限公司 Keyboard display method, electronic device and computer readable storage medium
CN111857532A (en) * 2020-07-30 2020-10-30 京东方科技集团股份有限公司 Virtual keyboard display method and device and electronic equipment

Also Published As

Publication number Publication date
CN117389437A (en) 2024-01-12

Similar Documents

Publication Publication Date Title
WO2021027747A1 (en) Interface display method and device
WO2021018067A1 (en) Floating window management method and related device
WO2021036571A1 (en) Desktop editing method and electronic device
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
WO2021057868A1 (en) Interface switching method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
WO2021036628A1 (en) Touch-control method for device with folding screen, and folding-screen device
WO2020062294A1 (en) Display control method for system navigation bar, graphical user interface, and electronic device
CN111443836B (en) Method for temporarily storing application interface and electronic equipment
EP4209874A1 (en) Application startup method and apparatus, and electronic device
EP4209877A1 (en) Window display method and device
WO2021063098A1 (en) Touch screen response method, and electronic device
WO2022057512A1 (en) Split-screen method and apparatus, and electronic device
CN113132526B (en) Page drawing method and related device
WO2022222752A1 (en) Display method and related apparatus
WO2021057699A1 (en) Method for controlling electronic device with flexible screen, and electronic device
WO2023035888A1 (en) Display method, electronic device, and storage medium
WO2023051511A1 (en) Icon moving method, related graphical interface, and electronic device
CN114666427A (en) Image display method, electronic equipment and storage medium
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
WO2021042878A1 (en) Photography method and electronic device
WO2022213831A1 (en) Control display method and related device
WO2024007966A1 (en) Multi-window display method and device
WO2022002213A1 (en) Translation result display method and apparatus, and electronic device
WO2022042285A1 (en) Method for displaying interface of application program and electronic device

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: 23834733

Country of ref document: EP

Kind code of ref document: A1