WO2024255238A1 - 窗口控制方法及电子设备 - Google Patents
窗口控制方法及电子设备 Download PDFInfo
- Publication number
- WO2024255238A1 WO2024255238A1 PCT/CN2024/072620 CN2024072620W WO2024255238A1 WO 2024255238 A1 WO2024255238 A1 WO 2024255238A1 CN 2024072620 W CN2024072620 W CN 2024072620W WO 2024255238 A1 WO2024255238 A1 WO 2024255238A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- window
- electronic device
- user
- display
- application
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 97
- 230000004044 response Effects 0.000 claims abstract description 65
- 238000007667 floating Methods 0.000 claims description 98
- 238000004590 computer program Methods 0.000 claims description 21
- 230000008859 change Effects 0.000 abstract description 20
- 230000003044 adaptive effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 22
- 238000007726 management method Methods 0.000 description 21
- 238000004891 communication Methods 0.000 description 19
- 238000012545 processing Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 14
- 230000000903 blocking effect Effects 0.000 description 13
- 238000003780 insertion Methods 0.000 description 10
- 230000037431 insertion Effects 0.000 description 10
- 238000010295 mobile communication Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the embodiments of the present application relate to the field of terminal technology, and in particular to a window control method and an electronic device.
- the floating window will block the memo content being displayed. Therefore, during the operation, the user needs to close or minimize the floating window first before viewing the location of the content to be queried in the memo, which makes the user operation more cumbersome.
- the present application provides a window control method and an electronic device.
- the technical solution provided by the present application responds to the user's cross-window operation, and the source window and/or the target window adaptively change the display size, thereby facilitating the user's operation through the adaptive change of the window.
- a window control method is provided, which is applied to an electronic device.
- the method includes: displaying a first interface, the first interface including a first window and a second window. Detecting a first operation of a user moving a first content displayed in the first window to the second window. In response to the first operation, adjusting the size of the first window and/or the second window, the first window after the resizing is smaller than the first window before the resizing, and the second window after the resizing is larger than the second window before the resizing.
- the first operation is, for example, a cross-window drag operation
- the first window is, for example, a source window
- the second window is, for example, a target window.
- the electronic device automatically reduces the size of the source window and/or automatically enlarges the size of the target window, thereby simplifying the user's operation, avoiding the source window from blocking the target window, and facilitating the user to determine the insertion position of the mobile content in the target window.
- the first interface further includes a third window
- the method further includes: in response to the first operation, adjusting the size of the third window, the third window after the adjustment is smaller than the third window before the adjustment.
- the electronic device in response to the cross-window drag operation of the electronic device, the electronic device adapts the size and/or position of one or more windows among the multiple windows currently displayed, thereby facilitating the user's operation in the target window.
- the window type of the first window and the window type of the second window remain unchanged; or, before and after resizing, the window type of the first window and/or the window type of the second window change.
- the window type includes at least one of a full-screen window, a floating window, a split-screen window, a card window, an icon window, and a floating ball window.
- the electronic device displays the browser application through a floating window while displaying the memo application in full screen.
- the first window is, for example, a memo application window
- the second window is, for example, a browser application window.
- the electronic device detects that the user selects the picture displayed in the first window and drags it to the second window. Then, the electronic device automatically reduces the size of the first window to avoid the first window blocking the second window, so that it is convenient for the user to determine the position of the picture to be inserted in the second window. That is, before and after the resizing, the window type of the second window remains unchanged.
- a floating window and a card window are displayed on the desktop of an electronic device
- the first window is, for example, a floating window
- the second window is, for example, a card window.
- the electronic device detects that the user selects the picture displayed in the first window and drags the second window. Then, the electronic device can start the memo application corresponding to the second window and display the last displayed application interface corresponding to the memo application in full screen. That is, before and after the resizing, the window type of the second window changes.
- the electronic device can adaptively change the window size according to the window type, enrich the window change scenarios, and improve the user experience.
- the first application corresponding to the second window is not started or is running in the background, and the method also includes: in response to the first operation, starting the first application, and displaying the most recently closed page or home page of the first application in the resized second window.
- a floating window and an icon window are displayed on the desktop of an electronic device, the first window is, for example, a floating window, and the second window is, for example, an icon window.
- the electronic device detects an operation in which a user drags a picture displayed in a source floating window to move to an icon window. Then, the electronic device can start the memo application corresponding to the icon window and display the memo application in full screen.
- the electronic device can directly display the memo interface running in the background; or, if the electronic device does not start the memo application, in response to the cross-window drag operation of the above-mentioned user, the electronic device starts the memo application and displays the homepage of the memo application.
- the electronic device can also respond to user operations and adaptively adjust the window size or position to facilitate the user's cross-window operations.
- the electronic device can also respond to the user operation and adaptively start the application corresponding to the target window to meet the user's usage needs.
- the first operation is a cross-window drag operation on the first content, and in response to the first operation, the size of the first window and/or the second window is adjusted, including: in response to the first operation, the size of the first window and/or the second window is adjusted in a direction opposite to the dragging direction of the first operation.
- the first operation is a cross-window drag operation on the first content
- the method also includes: in response to the first operation, adjusting the display position of the first window and/or the second window in a direction opposite to the drag direction of the first operation.
- the electronic device adaptively adjusts the position of the source window and/or the target window, thereby avoiding the source window blocking the target window and facilitating the user's operation in the target window.
- the method further includes: moving the display position of the first window in a clockwise direction to avoid movement of the first content in response to the first operation.
- detecting a first operation in which a user moves first content displayed in a first window to a second window includes: detecting a first operation in which a user moves the first content displayed in the first window to a hot zone range of the second window, the hot zone range including a display area of the second window and a display area within a preset range outside the second window, a display area of the second window, and at least one of a display area within a preset range outside the second window.
- the second window is a floating window, wherein the entire floating window is the hot zone range corresponding to the floating window; or the hot zone range of the floating window includes the area where the floating window is located and the range within N pixel widths outside the floating window, where N is a positive integer; or the hot zone range of the floating window is the range within N pixel widths outside the floating window.
- the electronic device when the electronic device detects the user's operation of moving the content in the first window to the second window, it is not necessary to change the size and display position of the first window or the second window.
- the electronic device determines that the first window does not block the second window; or the size of the second window is greater than a preset threshold, and the user can easily determine the position where the mobile content is to be inserted. Then, the electronic device does not need to adjust the window size and/or position, thereby reducing the amount of calculation of the electronic device and reducing the power consumption of the device.
- a window control method is provided, which is applied to an electronic device.
- the method includes: displaying a first interface, the first interface including a first window and a second window. Detecting a first operation of a user moving a first content displayed in the first window to the second window. In response to the first operation, adjusting the display position of the first window and/or the second window in a direction opposite to the dragging direction of the first operation.
- the electronic device adaptively adjusts the position of the source window and/or the target window, thereby avoiding the source window blocking the target window and facilitating the user's operation in the target window.
- the method further includes: moving the display position of the first window in a clockwise direction to avoid movement of the first content in response to the first operation.
- the method further includes: in response to the first operation, adjusting the size of the first window and/or the second window, the first window after the adjustment is smaller than the first window before the adjustment, and the adjustment of the size The second window after being reduced is larger than the second window before being resized.
- the first application corresponding to the second window is not started or is running in the background, and the method also includes: in response to the first operation, starting the first application, and displaying the most recently closed page or home page of the first application in the resized second window.
- the first operation is a cross-window drag operation on the first content
- the method also includes: in response to the first operation, adjusting the size of the first window and/or the second window in a direction opposite to the drag direction of the first operation.
- detecting a first operation in which a user moves first content displayed in a first window to a second window includes: detecting a first operation in which a user moves the first content displayed in the first window to a hot zone range of the second window, the hot zone range including a display area of the second window and a display area within a preset range outside the second window, a display area of the second window, and at least one of a display area within a preset range outside the second window.
- an electronic device in a third aspect, includes: a processor, a memory, and a display screen, wherein the memory and the display screen are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method provided in the first aspect and any one of the implementations of the first aspect.
- an electronic device in a fourth aspect, includes: a processor, a memory, and a display screen, wherein the memory and the display screen are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method provided in the second aspect and any one of the implementations of the second aspect.
- an electronic device having one or more functional modules for implementing the window control method as described in the first aspect and any possible implementation thereof; or the electronic device having one or more functional modules for implementing the window control method as described in the second aspect and any possible implementation thereof.
- the functional module may be implemented by hardware, or may be implemented by executing corresponding software by hardware.
- a computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect; or the electronic device executes the method of the second aspect or any one of the implementations of the second aspect.
- a computer program also referred to as an instruction or code
- a computer program product runs on an electronic device, it enables the electronic device to execute the method of the first aspect or any one of the embodiments of the first aspect; or, it enables the electronic device to execute the method of the second aspect or any one of the embodiments of the second aspect.
- a circuit system comprising a processing circuit, the processing circuit being configured to execute the method of the first aspect or any one of the embodiments of the first aspect; or, the processing circuit being configured to execute the method of the second aspect or any one of the embodiments of the second aspect.
- a chip system comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect; or, the at least one processor executes the method of the second aspect or any one of the embodiments of the second aspect.
- FIG1 is a schematic diagram of a scenario in which a user manually adjusts a window size according to an embodiment of the present application
- FIG2 is a schematic diagram of an electronic device provided in an embodiment of the present application.
- FIG3 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG4 is a schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application.
- FIG5 is a schematic diagram of an interface for adaptively reducing a source window in a floating window scenario provided by an embodiment of the present application
- FIG6 is a schematic diagram of a window display position adjustment direction provided in an embodiment of the present application.
- FIG7 is a schematic diagram of an interface for adaptively restoring a source window in a floating window scenario provided by an embodiment of the present application
- FIG8 is a schematic diagram of an interface for adaptively reducing a source window in a split-screen scenario provided by an embodiment of the present application
- FIG9 is a first schematic diagram of an interface for adaptively enlarging a target window in a floating window scenario provided by an embodiment of the present application
- FIG10 is a second schematic diagram of an interface for adaptively enlarging a target window in a floating window scenario provided by an embodiment of the present application;
- FIG11 is a schematic diagram of an interface for adaptively restoring a target window in a floating window scenario provided by an embodiment of the present application
- FIG12 is a schematic diagram of an interface for adaptively adjusting multiple windows provided in an embodiment of the present application.
- FIG13 is a first schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided by an embodiment of the present application
- FIG. 14 is a second schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided by an embodiment of the present application;
- FIG15 is a third schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided by an embodiment of the present application.
- FIG. 16 is a fourth schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided by an embodiment of the present application;
- FIG. 17 is a fifth schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided by an embodiment of the present application.
- FIG18 is a schematic diagram of an interface for adaptively adjusting a target window displayed in the background provided by an embodiment of the present application.
- FIG19 is a flow chart of a window control method provided in an embodiment of the present application.
- FIG. 20 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- references to "one embodiment” or “some embodiments” etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment.
- the statements “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean “one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
- the terms “including”, “comprising”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized in other ways.
- connection includes direct connection and indirect connection, unless otherwise specified. "First” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
- the words “exemplarily” or “for example” are used to indicate examples, illustrations or explanations. Any embodiment or design described as “exemplarily” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplarily” or “for example” is intended to present related concepts in a specific way.
- the electronic device supports multi-window display.
- the electronic device can display different applications in different windows through various methods such as floating windows and split screens, so that users can operate multiple applications at the same time to meet usage needs.
- the mobile phone displays the browser application through the floating window 102 during the process of displaying the memo application interface 101 in full screen.
- the user can easily add the content queried by the browser to the memo.
- the floating window will block the memo content, and it is inconvenient for the user to view the blocked content.
- the user needs to manually adjust the size of the floating window to facilitate pasting the copied browser query content in the memo. For example, in response to the user clicking the minimize control 11, as shown in (b) of FIG. 1 , the mobile phone shrinks the floating window 102 to display it as a floating ball 103, so that the user can continue to edit the memo content.
- the electronic device responds to the user's cross-window operation, and the source window and/or target window adaptively changes the display size and/or position, thereby facilitating the user's operation through the adaptive change of the window.
- the window control method provided in the embodiment of the present application can be applied to the electronic device 100.
- the sub-device 100 may specifically be a mobile phone 21, a tablet computer 22, a laptop computer 23, a wearable device 24, a smart screen 25, a vehicle terminal 26, a computer, a computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an artificial intelligence (AI) device, or other terminal device with a display function.
- the operating system installed in the above electronic device 100 includes but is not limited to Or other operating systems. This application does not limit the specific type of the electronic device 100 and the installed operating system.
- the electronic device 100 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, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- 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, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM)
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure 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 (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU).
- AP application processor
- GPU graphics processor
- ISP image signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated into one or more processors.
- the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple groups of I2C buses.
- the processor 110 may be coupled to the touch sensor, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor through the I2C interface, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the electronic device 100.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
- the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
- the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other first electronic devices, such as AR devices, etc.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger.
- the charger can be a wireless charger or a Wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130.
- the charging management module 140 can receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it can also power the first electronic device 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 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
- antenna 1 can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module 150 can be set in the processor 110.
- at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
- the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (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, and/or IR technology.
- GSM global system for mobile communications
- GPRS general packet radio service
- CDMA code division multiple access
- WCDMA wideband code division multiple access
- TD-SCDMA time-division code division multiple access
- LTE long term evolution
- BT GNSS
- WLAN wireless local area network
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-led, Micro-led, Micro-oled, Quantum dot light emitting diodes (QLED) are manufactured.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the electronic device 100 displays multiple application windows through the display screen 194, detects the user's cross-window operation on the display screen 194 through the touch sensor, and determines that the user instructs to drag the source window display content to the target window display by copying or cutting. Then, the electronic device 100 responds to the user operation and adaptively adjusts the size of the source window and/or the target window, thereby facilitating the user's operation in the target window.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it onto the photosensitive element.
- the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
- CMOS complementary metal oxide semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
- the electronic device 100 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 electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
- the internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
- the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
- the electronic device 100 can use the audio module 170, such as music playing, recording, etc.
- the audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
- the sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
- a touch sensor is also called a "touch control device”.
- the touch sensor can be arranged on the display screen 194.
- the touch sensor and the display screen 194 form a touch screen, also called a "touch control screen”.
- the touch sensor is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.
- the key 190 includes a power key, a volume key, etc.
- the key 190 may be a mechanical key or a touch key.
- the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
- Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
- the SIM card interface 195 is used to connect a SIM card.
- the device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
- FIG. 4 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
- the layered architecture divides the software into several layers, each with a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, as well as the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as calendar, contacts, memo, camera, music, gallery, map, call, video, etc.
- the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
- the window manager is used to manage window programs.
- the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
- the electronic device 100 manages the display position and size of multiple windows being displayed through a window manager.
- the electronic device 100 detects the user's operation of dragging the selected display content in the source window to the target window, and determines that the user indicates to copy the dragged display content to the target window for display. Then, the electronic device 100 adjusts the size of the source window and/or the target window through the window manager to avoid the source window blocking the target window and affecting the user's dragging operation.
- Content providers are used to store and retrieve data and make it accessible to applications.
- the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
- the view system can be used to build applications.
- a display interface can be composed of one or more views.
- a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
- the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
- the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically 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 a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
- Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
- the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
- the application layer and the application framework layer run in a virtual machine.
- the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- functional modules such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
- the surface manager is used to manage the display subsystem and provide 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.
- a 2D graphics engine is a drawing engine for 2D drawings.
- the electronic device supports multi-window display.
- the electronic device can display multiple application windows at the same time through floating windows, split screens, etc., to meet the user's needs for simultaneous operation of multiple applications.
- the user needs to move the content of one window to another window for display by copying, cutting, etc. For example, after the user selects the content queried in the browser application window, he moves it to the memo application window by dragging and dropping to add the memo content, so that the user can record the queried content.
- the electronic device detects that the user selects the picture 101 displayed in the source window 11 and drags it toward the target window 21 in the direction indicated by the arrow 102, and determines that the user indicates to insert the picture 101 into the target window 21 by copying or cutting. Then, as shown in FIG. 5 (c), the electronic device automatically reduces the size of the source window 11 to avoid the source window 11 blocking the target window 21, so that it is convenient for the user to determine the position of the picture 101 to be inserted in the target window 21.
- the operation of inserting the content of the source window into the target window by the user may include other operations in addition to the above-mentioned drag operation.
- the source window may also change its size adaptively to facilitate the user to perform the paste operation in the target window. The following takes the example of the user performing a cross-window operation by dragging the selected content to introduce the window change process.
- the electronic device may also prevent the source window from affecting the user's operations in the target window through other means, such as increasing the transparency of the source window, moving the display position of the source window, making the target window cover the source window, etc.
- the electronic device changes the display position and/or size of the source window according to the dragging direction in response to the user's dragging operation. For example, in the scenario shown in FIG5 , the electronic device detects that the user drags toward the upper left of the display screen in the direction indicated by arrow 102, and the source window can be reduced in size or moved in the opposite direction of the direction indicated by arrow 102.
- the electronic device moves and/or reduces the source window in the direction opposite to the user's dragging direction.
- the electronic device detects the user's operation of dragging the selected content from the fourth quadrant to the second quadrant, and can move and/or reduce the source window from the second quadrant to the fourth quadrant.
- the electronic device moves the source window in a clockwise direction (or counterclockwise direction) to avoid the user's operation of dragging the selected content to the target window.
- FIG5 (c) after the electronic device detects that the user moves the picture 101 to the target window 21, it continues to perform the drag operation to adjust the display position of the picture 101 in the target window 21.
- the electronic device adaptively adjusts the size and/or position of the source window, thereby facilitating the user's operation in the target window.
- the electronic device displays the image 101 in the target window at the position indicated by the user by pasting it in response to the user operation.
- the electronic device detects the operation of the user clicking on the blank display area 701 in the source window 11, or detects the operation of the user clicking on the magnification control 702 displayed on the source window 11, and determines that the user indicates to operate the source window 11.
- the electronic device may enlarge the source window 11 to facilitate the user to continue to operate the source window.
- the electronic device may also adaptively change the size of the source window in response to the user's cross-window drag operation.
- the electronic device displays a memo application and a browser application in split screen, for example, the source window 11 displays the browser application, and the target window 21 displays the memo application.
- the electronic device detects that the user selects the picture 801 displayed in the source window 11 (such as long pressing the picture 801), and drags the picture 801 toward the target window 21 in the direction indicated by the arrow 802.
- the electronic device detects that the user selects the picture 801 displayed in the source window 11 (such as long pressing the picture 801), and drags the picture 801 toward the target window 21 in the direction indicated by the arrow 802.
- the picture 801 displayed in the source window 11 such as long pressing the picture 801
- the electronic device may automatically reduce the size of the source window 11 in response to the user's cross-window drag operation, and the corresponding target window 21 automatically enlarges as the source window 11 is reduced. In this way, the user can more conveniently determine the position of the picture 801 to be inserted in the enlarged target window 21.
- the above embodiments introduce the process of the electronic device adaptively adjusting the size and/or position of the window in response to the user's cross-window drag operation, assuming that the source window and the target window have mutual influence during the display process. For example, when the source window covers the target window, the electronic device adaptively reduces the source window, etc. In some scenarios, the source window and the target window do not have mutual influence during the display process, but the display of the target window is inconvenient for the user to operate.
- the electronic device can also adaptively adjust the display of the window to facilitate the user's operation.
- the electronic device when the electronic device detects a user's cross-window dragging operation during multi-window display and determines that the target window is smaller, it can adaptively enlarge the display of the target window, thereby facilitating the user to confirm the insertion position of the dragged content in the target window.
- the electronic device displays the memo application through a floating window during the full-screen display of the browser application.
- the source window 11 is a browsing application window
- the target window 21 is a memo application window. It can be seen that if the user needs to insert the content in the source window 11 into the target window 21 for display, since the target window 21 is small, it is difficult for the user to accurately determine the position of the selected content to be inserted in the target window.
- the electronic device detects the user's operation of dragging the picture 901 to the target window 21 in the direction indicated by the arrow 902, and determines that the user instructs to insert the picture 901 into the target window 21 for display. Then, as shown in FIG. 9 (c), in response to the user's operation, the electronic device enlarges the target window 21 to facilitate the user to determine the insertion position of the picture 901 in the target window 21.
- the electronic device when it detects that the user drags the content in the source window to the hot zone range of the target window, it determines that the user's cross-window drag operation is detected.
- the hot zone range of the window is, for example, the display area where the window is located, or the display area where the window is located and the display area within a preset range outside the window.
- the entire floating window is the hot zone range corresponding to the floating window; or the hot zone range of the floating window includes the area where the floating window is located and the range within N pixel widths outside the floating window, where N is a positive integer; or the hot zone range of the floating window is the range within N pixel widths outside the floating window.
- the electronic device when it detects a user's drag operation across windows, it can adaptively change the size and/or position of the target window to reduce the difficulty of user operation.
- the electronic device detects that the user selects the picture 901 displayed in the source window 11 and performs a drag operation, and determines that the target window 21 is displayed in the direction of the user's drag, and can determine that the user needs to drag the picture 901 across windows to the target window for display. Then, as shown in FIG10 (a), the electronic device can enlarge the target window 21 in the direction opposite to the user's dragging direction, and then, as shown in FIG10 (b), it is convenient for the user to determine the insertion position of the picture 901 in the target window 21. In addition, the distance that the user drags the selected content is reduced, reducing the difficulty of user operation.
- the electronic device when the electronic device detects that the user drags the selected content in the source window beyond a preset distance and there is another window in the dragging direction, it determines that the user is performing a cross-window drag operation, and adaptively enlarges the target window or moves the target window, thereby avoiding the operation of adaptively adjusting the target window and affecting the user's movement of displayed content in the source window.
- the electronic device adaptively adjusts the size and/or position of the target window, thereby facilitating the user's operation in the target window.
- the electronic device may automatically restore the display of the source window in response to the user's operation on the source window.
- the electronic device displays the image 901 in the position indicated by the user in the target window by pasting in response to the user operation. Afterwards, as shown in (a) of FIG. 11 , the electronic device detects the user's operation of clicking on the source window 11, and determines that the user indicates to operate the source window 11. Then, as shown in (b) of FIG. 11 , the electronic device can reduce the target window 21 to avoid the target window blocking the source window 11, so that the user can continue to operate the source window 11.
- the display position and size of the reduced target window are the same as the display position and size of the target window before the electronic device enlarges and/or moves the target window in response to the user's cross-window drag operation, that is, the electronic device restores the display of the target window.
- the above respectively introduces the changes of the source window or the target window in response to the user's cross-window drag operation.
- the source window, the target window, and other windows displayed by the electronic device may change in response to the user's cross-window drag operation. It is convenient for users to operate in the target window.
- the electronic device when displaying multiple windows, the electronic device detects a user's cross-window drag operation and determines to adjust the display of other currently displayed windows and one or more windows in the target window to avoid the display of other windows affecting the user's operation in the target window.
- the electronic device displays the browser application window 11 in a floating window manner, and displays the memo application window 21 and the media application window 31 in a split screen manner.
- the electronic device detects that the user selects the picture 1201 displayed in the browser application window 11, and drags the picture 1201 toward the memo application window 21 in the direction indicated by the arrow 1202, and reaches the hot zone range of the memo application window 21. It can be determined that the user performs a cross-window drag operation, the source window is the browser application window 11, and the target window is the memo application window 21. Then, as shown in FIG. 12 (c), the electronic device can adaptively adjust the multiple windows being displayed.
- the electronic device automatically reduces the browser application window 11 to prevent the browser application window 11 from blocking the memo application window 21; the electronic device automatically reduces the media application window 31, and correspondingly enlarges the memo application window 21.
- the memo application window 21 that is enlarged and less blocked is more convenient for the user to determine the insertion position of the picture 1201 that moves across windows.
- the electronic device in response to the cross-window drag operation of the electronic device, the electronic device adapts the size and/or position of one or more windows among the multiple windows currently displayed, thereby facilitating the user's operation in the target window.
- the multiple windows displayed by the electronic device include a full-screen window, a floating window, a split-screen window, a card window (or described as a card), an icon window (or described as an icon), a floating ball window (or described as a floating ball), etc.
- the window size can be adaptively adjusted.
- the electronic device can trigger the application corresponding to the target window to be displayed in the foreground.
- the screen content of the foreground application can include not only the screen visible to the user, but also the content without user interface, transparent layer content or content that is blocked by other application interfaces and is invisible to the user.
- the application interface displayed may be the application interface last displayed when the user exits the foreground display of the application, or may be an application interface frequently used by the user, or may be a default application interface set by the user.
- the electronic device enlarging the target window in response to the user's cross-window drag operation includes enlarging without changing the display form or enlarging with a change in the display form.
- the display form includes, for example, full screen display, floating window display, card display, icon display, floating ball display, etc.
- the electronic device shrinking the source window in response to the user's cross-window drag operation includes shrinking without changing the display form or shrinking with a change in the display form.
- the electronic device determines that the target window is a floating window, and enlarges the floating window displayed in a small window state to a floating window displayed in a large window state, that is, the enlarged target window does not change the display form.
- the electronic device determines that the target window is a card window, pulls up the application corresponding to the card window and displays the interface of the application in full screen, that is, the enlarged target window with a changed display form.
- the electronic device determines that the target window is a floating ball window, pulls up the application corresponding to the floating ball window and displays the application through the floating window, or displays the application card corresponding to the floating ball window, or displays the interface of the application corresponding to the floating ball window in full screen, etc., that is, the enlarged target window with a changed display form.
- the electronic device determines that the target window is an icon window, pulls up the application corresponding to the icon window and displays the interface of the application corresponding to the icon window in full screen, or displays the application card corresponding to the icon window, or displays the application corresponding to the icon window through the floating window, etc., that is, the enlarged target window with a changed display form.
- the electronic device displays a floating window 11, a card 12, an icon 13, and a floating ball 14.
- the electronic device detects that the user selects the picture 1301 displayed in the floating window 11 and drags it in the direction indicated by the arrow 1302, determines that the picture 1301 is dragged to the hot zone range of the card 12, and can determine that the user's cross-window drag operation is detected, the source window is the floating window 11, and the target window is the card 12.
- the electronic device can start the memo application corresponding to the card 12 and display the last displayed application interface corresponding to the memo application in full screen.
- the electronic device can also reduce the floating window 11 (i.e., the source window) to avoid the floating window 11 blocking the full-screen displayed memo application interface, affecting the user's adjustment of the insertion position of the picture 1301.
- the floating window 11 ie, the source window
- Other windows affect the user's determination of the target window for the cross-window drag operation.
- the electronic device detects that the user selects the picture 1301 displayed in the floating window 11 and drags it in the direction indicated by the arrow 1303 and keeps dragging in the blank area of the desktop for more than a preset time. It can be determined that the display of the current source window affects the user's determination of the target window, so the electronic device can reduce the source window.
- the electronic device reduces the floating window 11 so that the user can continue to drag the picture 1301 to determine the target window.
- the electronic device can also respond to the user's operation and move the display position of the floating window 11 clockwise in the quadrant shown in Figure 6 to avoid the user's finger (or stylus, etc.) touching the position to prevent the floating window 11 from blocking the target window to be selected by the user.
- the electronic device detects that the user continues to drag the image 1301 to the hot zone range of the card 12, and can determine that the target window is the card 12. Then, as shown in (b) of FIG. 15 , the electronic device can start the memo application corresponding to the card 12 and display the memo application in full screen.
- the electronic device detects the control position (such as the position of the memo 3) where the user's finger finally stops on the card, and can trigger the display of the application interface corresponding to the control (such as the memo 3 interface); or, the electronic device directly displays the homepage or the last displayed interface of the application corresponding to the card 12.
- the control position such as the position of the memo 3
- the electronic device in the process of dragging the image 1301 to move in the memo application interface, can also respond to the user operation and move the display position of the floating window 11 clockwise (or counterclockwise) according to the quadrant shown in FIG. 6 to avoid the user's finger touch position.
- the electronic device detects that the user continues to drag the image 1301 to the hot zone of the icon 13, and can determine that the target window is the icon 13. Then, as shown in (b) of FIG16 , the electronic device can start the memo application corresponding to the icon 13 and display the memo application in full screen.
- the electronic device can directly display the memo interface running in the background; or, if the electronic device does not start the memo application, in response to the cross-window drag operation of the above-mentioned user, the electronic device starts the memo application and displays the memo application homepage.
- the electronic device detects that the user continues to drag the picture 1301 to move to the hot zone of the floating ball 14, and can determine that the target window is the floating ball 14. Then, as shown in FIG. 17 (b), the electronic device can start the memo application corresponding to the floating ball 14 and display the memo application through the floating window 21.
- the electronic device detects that the user continues to drag image 1301 to the edge of the current display interface and continues dragging, and can determine to switch to displaying other interfaces of the desktop, so that the user can move image 1301 to the target window displayed on other interfaces of the desktop.
- the electronic device can also respond to user operations and adaptively adjust the window size or position to facilitate the user's cross-window operations.
- the user can directly determine the target window located in the background, thereby reducing the difficulty of the user in finding the target window on the desktop.
- FIG19 is a flowchart of a window control method provided by an embodiment of the present application. It should be noted that the method is not limited to FIG19 and the specific sequence described below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
- the electronic device displays a first interface, where the first interface includes a first window and a second window.
- the electronic device supports multi-window display.
- the electronic device can display multiple application windows at the same time through floating windows, split screens, etc., to meet the user's needs for operating multiple applications at the same time.
- the electronic device displays a browser application through a floating window while displaying a memo application in full screen.
- the first window is, for example, a memo application window
- the second window is, for example, a browser application window.
- the electronic device displays the memo application and the browser application in split screen.
- the first window is, for example, a browser application window
- the second window is, for example, a memo application window.
- S1902 The electronic device detects a first operation of a user to move first content displayed in a first window to a second window.
- the first operation may be an operation of moving the display content in the first window to the second window, or an operation of moving the display content in the first window to a hot zone of the second window.
- the first operation is a cross-window drag operation.
- the first window is, for example, a source window
- the second window is, for example, a target window.
- the hot zone range includes at least one of a display area within a preset range around the second window, a display area of the second window, the second window, and a display area within a preset range around the second window.
- the second window is a floating window, wherein the entire floating window is the hot zone range corresponding to the floating window; or the hot zone range of the floating window includes the area where the floating window is located and the range within N pixel widths outside the floating window, where N is a positive integer; or the hot zone range of the floating window is the range within N pixel widths outside the floating window.
- S1903 In response to the first operation, the electronic device adjusts the size of the first window and/or the second window, wherein the first window after the adjustment is smaller than the first window before the adjustment, and the second window after the adjustment is larger than the second window before the adjustment.
- the electronic device in response to the first operation, adjusts the size of the first window and/or the second window in a direction opposite to the drag direction of the first operation.
- the electronic device detects that the user selects the picture 101 displayed in the source window 11 and drags it toward the target window 21 in the direction indicated by the arrow 102, and determines that the user instructs to insert the picture 101 into the target window 21 by copying or cutting. Then, as shown in FIG5(c), the electronic device automatically reduces the size of the source window 11 to avoid the source window 11 blocking the target window 21, so that the user can easily determine the position of the picture 101 to be inserted in the target window 21.
- the electronic device detects that the user selects the picture 801 displayed in the source window 11 (such as long pressing the picture 801), and drags the picture 801 toward the target window 21 along the direction indicated by the arrow 802.
- the electronic device can automatically reduce the size of the source window 11 in response to the user's cross-window drag operation, and the corresponding target window 21 automatically enlarges as the source window 11 is reduced. In this way, the user can more conveniently determine the position of the picture 801 to be inserted in the enlarged target window 21.
- the electronic device displays the memo application in a floating window during the process of displaying the browser application in full screen.
- the electronic device detects the user's operation of dragging the picture 901 to the target window 21 along the direction indicated by the arrow 902, and determines that the user instructs to insert the picture 901 into the target window 21 for display.
- the electronic device enlarges the target window 21 so that the user can determine the insertion position of the picture 901 in the target window 21.
- the electronic device moves and/or reduces the source window in the direction opposite to the user's dragging direction.
- the electronic device detects the user's operation of dragging the selected content from the fourth quadrant to the second quadrant, and can move and/or reduce the source window from the second quadrant to the fourth quadrant.
- the electronic device moves the source window in a clockwise direction (or counterclockwise direction) to avoid the user's operation of dragging the selected content to the target window.
- FIG5 (c) after the electronic device detects that the user moves the picture 101 to the target window 21, it continues to perform the drag operation to adjust the display position of the picture 101 in the target window 21.
- the source window 11 can be controlled to move clockwise, such as from the fourth quadrant to the third quadrant, to avoid the display position of the picture 101.
- the center position of the four quadrants can be the center position of the electronic device display screen.
- the electronic device when the electronic device detects the user's operation of moving the content in the first window to the second window, it is not necessary to change the size and display position of the first window or the second window.
- the electronic device determines that the first window does not block the second window; or the size of the second window is greater than a preset threshold, and the user can easily determine the position where the mobile content is to be inserted. Then, the electronic device does not need to adjust the window size and/or position, thereby reducing the amount of calculation of the electronic device and reducing the power consumption of the device.
- the window type of the first window and the window type of the second window remain unchanged before and after the resizing; or, the window type of the first window and/or the window type of the second window change before and after the resizing.
- the window type includes at least one of a full-screen window, a floating window, a split-screen window, a card window, an icon window, and a floating ball window.
- the electronic device displays a floating window 11, a card 12, an icon 13, and a floating ball 14.
- the electronic device detects that the user selects the picture 1301 displayed in the floating window 11 and drags it in the direction indicated by the arrow 1302, and determines that the picture 1301 is dragged to the hot zone range of the card 12. It can be determined that the user's cross-window drag operation is detected, the source window is the floating window 11, and the target window is the card 12.
- the electronic device can start the memo application corresponding to the card 12 and display the last displayed application interface corresponding to the memo application in full screen. That is, before and after the resizing, the window type of the second window changes.
- the first interface further includes a third window. Then, in response to the first operation, the size of the third window is adjusted, and the third window after the adjustment is smaller than the third window before the adjustment.
- the electronic device displays the browser application window 11 in a floating window manner, and displays the memo application window 21 and the media application window 31 in a split screen manner.
- the electronic device detects that the user selects the picture 1201 displayed in the browser application window 11, and drags it to the memo application window 21 in the direction indicated by the arrow 1202, and can determine that the user performs a cross-window drag operation, the source window is the browser application window 11, and the target window is the memo application window 21. Then, as shown in FIG. 12 (c), the electronic device can adaptively adjust the multiple windows being displayed.
- the electronic device in response to the cross-window drag operation of the electronic device, the electronic device adapts the size and/or position of one or more windows among the multiple windows currently displayed, thereby facilitating the user's operation in the target window.
- the first application corresponding to the second window is not started or is running in the background. Then, in response to the first operation, the electronic device starts the first application and displays the most recently closed page or the home page of the first application in the resized second window.
- the electronic device detects that the user drags the picture 1301 displayed in the source window 11 to the hot zone of the icon 13, and can determine that the target window is the icon 13. Then, as shown in (b) of FIG. 16 , the electronic device can start the memo application corresponding to the icon 13 and display the memo application in full screen.
- the electronic device can directly display the memo interface running in the background; or, if the electronic device does not start the memo application, in response to the cross-window drag operation of the above-mentioned user, the electronic device starts the memo application and displays the memo application homepage.
- the electronic device can also respond to user operations and adaptively adjust the window size or position to facilitate the user's cross-window operations.
- the electronic device can also respond to the user operation and adaptively start the application corresponding to the target window to meet the user's usage needs.
- the window control method provided by the embodiment of the present application is described in detail above in conjunction with Figures 5 to 19.
- the electronic device provided by the embodiment of the present application is described in detail below in conjunction with Figure 20.
- Figure 20 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- the electronic device 2000 may include: a display unit 2001, a processing unit 2002, and a transceiver unit 2003.
- the electronic device 2000 may be used to implement the functions of the electronic device involved in the above method embodiment.
- the display unit 2001 is used to support the electronic device 2000 to display interface content; and/or support the electronic device 2000 to execute S1901 and S1903 in Figure 19.
- processing unit 2002 is used to support the electronic device 2000 to execute S1903 in Figure 19.
- the transceiver unit 2003 is used to support the electronic device 2000 to execute S1902 in Figure 19.
- the transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component.
- the operations and/or functions of each unit in the electronic device 2000 are respectively to implement the corresponding process of the window control method described in the above method embodiment, and all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, they will not be repeated here.
- the electronic device 2000 shown in FIG20 may further include a storage unit (not shown in FIG20 ), in which a program or instruction is stored.
- a storage unit not shown in FIG20
- the electronic device 2000 shown in FIG20 may execute the window control method described in the above method embodiment.
- the technical effects of the electronic device 2000 shown in FIG. 20 may refer to the technical effects of the window control method described in the above method embodiment, which will not be described in detail here.
- the technical solution provided by the present application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.
- An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
- the processor in the chip system may be one or more.
- the processor may be implemented by hardware or by software.
- the processor may be a logic circuit, an integrated circuit, etc.
- the processor may be a general-purpose processor implemented by reading software code stored in a memory.
- the memory in the chip system may also be one or more.
- the memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application.
- the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively.
- the embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
- the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
- FPGA field programmable gate array
- ASIC application specific integrated circuit
- SoC system on chip
- CPU central processor unit
- NP network processor
- DSP digital signal processor
- MCU microcontroller unit
- PLD programmable logic device
- each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software.
- the method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
- the embodiment of the present application also provides a computer program product.
- the computer program product When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the window control method in the above-mentioned embodiment.
- an embodiment of the present application further provides a device.
- the device may be a component or a module, and the device may include one or more processors and a memory connected to each other.
- the memory is used to store a computer program.
- the computer program is executed by one or more processors, the device executes the window control method in each of the above method embodiments.
- the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
- the steps of the method or algorithm described in conjunction with the disclosed content of the embodiments of the present application may be implemented in hardware or by a processor executing software instructions.
- the software instructions may be composed of corresponding software modules, and the software modules may be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs), or any other form of storage medium known in the art.
- An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium.
- the storage medium may also be a processor's
- the processor and the storage medium may be located in an application specific integrated circuit (ASIC).
- ASIC application specific integrated circuit
- the disclosed method can be implemented in other ways.
- the device embodiments described above are merely schematic.
- the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
- Computer-readable storage media include, but are not limited to, any of the following: USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供窗口控制方法及电子设备,涉及终端技术领域。本申请能够响应于用户的跨窗口操作,自适应的变化源窗口和/或目标窗口的大小,从而通过窗口的自适应变化,方便用户的操作。该方法包括:电子设备显示第一界面,第一界面包括第一窗口和第二窗口。电子设备检测到用户将在第一窗口中显示的第一内容向第二窗口移动的第一操作后,响应于该第一操作,调整第一窗口和/或第二窗口的大小,其中调整大小后的第一窗口小于调整大小前的第一窗口,调整大小后的第二窗口大于调整大小前的第二窗口。
Description
本申请要求于2023年06月15日提交国家知识产权局、申请号为202310713824.2、申请名称为“窗口控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及终端技术领域,尤其涉及一种窗口控制方法及电子设备。
随着终端技术的发展,电子设备支持运行多个应用的窗口,满足用户的多窗口使用需求。例如,用户在编辑备忘录的过程中,通过悬浮窗打开浏览器进行网页浏览,这样用户可将通过浏览器查询到的内容添加到正在编辑的备忘录中。
但是受限于电子设备显示屏尺寸,悬浮窗会遮挡正在显示的备忘录内容,那么用户在操作过程中,需要先关闭或最小化悬浮窗,才能查看备忘录中需要添加查询到的内容的位置,用户操作较为繁琐。
发明内容
为了解决上述的技术问题,本申请提供了一种窗口控制方法及电子设备。本申请提供的技术方案,响应于用户的跨窗口操作,源窗口和/或目标窗口自适应的变化显示大小,从而通过窗口的自适应变化,方便用户的操作。
为了实现上述的技术目的,本申请提供了如下技术方案:
第一方面,提供一种窗口控制方法,应用于电子设备。该方法包括:显示第一界面,第一界面包括第一窗口和第二窗口。检测到用户将在第一窗口中显示的第一内容向第二窗口移动的第一操作。响应于第一操作,调整第一窗口和/或第二窗口的大小,调整大小后的第一窗口小于调整大小前的第一窗口,调整大小后的第二窗口大于调整大小前的第二窗口。
一些示例中,第一操作例如为跨窗口拖拽操作。第一窗口例如为源窗口,第二窗口例如为目标窗口。
如此,响应于用户的跨窗口拖拽操作,电子设备自动缩小源窗口的大小和/或自动放大目标窗口的大小。从而简化用户操作,避免源窗口对目标窗口的遮挡,且方便用户确定移动内容在目标窗口中的插入位置。
根据第一方面,第一界面还包括第三窗口,方法还包括:响应于第一操作,调整第三窗口的大小,调整大小后的第三窗口小于调整大小前的第三窗口。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应当前显示的多个窗口中的一个或多个窗口的大小和/或位置,从而便于用户在目标窗口中的操作。
根据第一方面,或者以上第一方面的任意一种实现方式,调整大小前后,第一窗口的窗口类型和第二窗口的窗口类型不变;或者,调整大小前后,第一窗口的窗口类型和/或第二窗口的窗口类型发生变化。
根据第一方面,或者以上第一方面的任意一种实现方式,窗口类型包括全屏窗口、悬浮窗口、分屏窗口、卡片窗口、图标窗口、悬浮球窗口中的至少一项。
示例性地,电子设备在全屏显示备忘录应用的过程中,通过悬浮窗口显示浏览器应用。第一窗口例如为备忘录应用窗口,第二窗口例如为浏览器应用窗口。电子设备检测到用户选中第一窗口中显示的图片向第二窗口拖动的操作。那么,电子设备自动缩小第一窗口的大小,以避免第一窗口遮挡在第二窗口,这样方便用户在第二窗口中确定待插入图片的位置。即,调整大小前后,第二窗口的窗口类型不变。
示例性地,电子设备桌面上显示有悬浮窗口和卡片窗口,第一窗口例如为悬浮窗口,第二窗口例如为卡片窗口。电子设备检测到用户选中第一窗口中显示的图片第二窗口拖动的操作。那么,电子设备可启动第二窗口对应的备忘录应用并全屏显示备忘录应用对应的最后显示的应用界面。即,调整大小前后,第二窗口的窗口类型发生变化。
如此,电子设备根据窗口类型,自适应的变化窗口大小,更加丰富窗口变化场景,提升用户使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,第二窗口对应的第一应用未启动或后台运行,方法还包括:响应于第一操作,启动第一应用,并在调整大小后的第二窗口中显示第一应用的最近关闭页面或首页。
示例性地,电子设备桌面上显示有悬浮窗口和图标窗口,第一窗口例如为悬浮窗口,第二窗口例如为图标窗口。电子设备检测到用户拖拽源悬浮窗口中显示的图片向图标窗口移动的操作。那么,电子设备可启动图标窗口对应的备忘录应用并全屏显示备忘录应用。可选地,电子设备后台运行备忘录应用的过程中,检测到上述用户的跨窗口拖拽操作,电子设备可直接显示后台运行的备忘录界面;或者,电子设备未启动备忘录应用,响应于上述用户的跨窗口拖拽操作,电子设备启动备忘录应用,并显示备忘录应用首页。
如此,电子设备在显示桌面的过程中,也可响应于用户操作,自适应调整窗口大小或位置,便于用户的跨窗口操作。
此外,若目标窗口对应的应用未启动,电子设备也可响应于用户操作,自适应的启动目标窗口对应的应用,满足用户的使用需求。
根据第一方面,或者以上第一方面的任意一种实现方式,第一操作为对第一内容的跨窗口拖拽操作,响应于第一操作,调整第一窗口和/或第二窗口的大小,包括:响应于第一操作,向与第一操作拖拽方向相反的方向,调整第一窗口和/或第二窗口的大小。
根据第一方面,或者以上第一方面的任意一种实现方式,第一操作为对第一内容的跨窗口拖拽操作,方法还包括:响应于第一操作,向与第一操作拖拽方向相反的方向,调整第一窗口和/或第二窗口的显示位置。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应调整源窗口和/或目标窗口的位置,从而避免源窗口遮挡目标窗口,便于用户在目标窗口中的操作。
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:按照顺时针的方向移动第一窗口的显示位置,以避让第一内容响应于第一操作的移动。
根据第一方面,或者以上第一方面的任意一种实现方式,检测到用户将在第一窗口中显示的第一内容向第二窗口移动的第一操作,包括:检测到用户将在第一窗口中显示的第一内容移动至第二窗口的热区范围的第一操作,热区范围包括第二窗口的显示区域以及第二窗口外围预设范围内的显示区域、第二窗口的显示区域、第二窗口外围预设范围内的显示区域中的至少一项。
例如,第二窗口为悬浮窗口。其中,整个悬浮窗口为悬浮窗口对应的热区范围;或者悬浮窗口的热区范围包括悬浮窗口所在区域以及悬浮窗口外围N个像素点宽度内的范围,N为正整数;或者悬浮窗口的热区范围为悬浮窗口外围N个像素点宽度内的范围。
在另一些实施例中,电子设备检测到用户将第一窗口中的内容移动到第二窗口中的操作,也可不必变化第一窗口或第二窗口的大小和显示位置。
例如,电子设备确定第一窗口未遮挡第二窗口;或者,第二窗口的大小大于预设阈值,用户能够较为容易确定移动内容的待插入位置。那么,电子设备可不必调整窗口大小和/或位置,从而减少电子设备计算量,降低设备功耗。
第二方面,提供一种窗口控制方法,应用于电子设备。该方法包括:显示第一界面,第一界面包括第一窗口和第二窗口。检测到用户将在第一窗口中显示的第一内容向第二窗口移动的第一操作。响应于第一操作,向与第一操作拖拽方向相反的方向,调整第一窗口和/或第二窗口的显示位置。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应调整源窗口和/或目标窗口的位置,从而避免源窗口遮挡目标窗口,便于用户在目标窗口中的操作。
根据第二方面,方法还包括:按照顺时针的方向移动第一窗口的显示位置,以避让第一内容响应于第一操作的移动。
根据第二方面,或者以上第二方面的任意一种实现方式,该方法还包括:响应于第一操作,调整第一窗口和/或第二窗口的大小,调整大小后的第一窗口小于调整大小前的第一窗口,调整大
小后的第二窗口大于调整大小前的第二窗口。
根据第二方面,或者以上第二方面的任意一种实现方式,第二窗口对应的第一应用未启动或后台运行,方法还包括:响应于第一操作,启动第一应用,并在调整大小后的第二窗口中显示第一应用的最近关闭页面或首页。
根据第二方面,或者以上第二方面的任意一种实现方式,第一操作为对第一内容的跨窗口拖拽操作,该方法还包括:响应于第一操作,向与第一操作拖拽方向相反的方向,调整第一窗口和/或第二窗口的大小。
根据第二方面,或者以上第二方面的任意一种实现方式,检测到用户将在第一窗口中显示的第一内容向第二窗口移动的第一操作,包括:检测到用户将在第一窗口中显示的第一内容移动至第二窗口的热区范围的第一操作,热区范围包括第二窗口的显示区域以及第二窗口外围预设范围内的显示区域、第二窗口的显示区域、第二窗口外围预设范围内的显示区域中的至少一项。
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,提供一种电子设备。该电子设备包括:处理器、存储器和显示屏,存储器和显示屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行如前述第一方面及第一方面中任意一种实现方式提供的方法。
第四方面,提供一种电子设备。该电子设备包括:处理器、存储器和显示屏,存储器和显示屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行如前述第二方面及第二方面中任意一种实现方式提供的方法。
第五方面,提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的窗口控制方法的一个或多个功能模块;或者,该电子设备具有实现如上述第二方面及其中任一种可能的实现方式中所述的窗口控制方法的一个或多个功能模块。该功能模块可以通过硬件实现,也可以通过硬件执行相应地软件实现。
第六方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被电子设备执行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法;或者,使得电子设备执行第二方面或第二方面中任意一种实施方式的方法。
第七方面,提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法;或者,使得电子设备执行第二方面或第二方面中任意一种实施方式的方法。
第八方面,提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法;或者,处理电路被配置为执行第二方面或第二方面中任意一种实施方式的方法。
第九方面,提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法;或者,至少一个处理器执行第二方面或第二方面中任意一种实施方式的方法。
前述各个方面的技术效果可互相参考,此处不再赘述。
图1为本申请实施例提供的用户手动调整窗口大小的场景示意图;
图2为本申请实施例提供的电子设备形态示意图;
图3为本申请实施例提供的电子设备的硬件结构示意图;
图4为本申请实施例提供的电子设备的软件结构框图示意图;
图5为本申请实施例提供的悬浮窗口场景中自适应缩小源窗口的界面示意图;
图6为本申请实施例提供的窗口显示位置调整方向示意图;
图7为本申请实施例提供的悬浮窗口场景中自适应恢复源窗口的界面示意图;
图8为本申请实施例提供的分屏场景中自适应缩小源窗口的界面示意图;
图9为本申请实施例提供的悬浮窗口场景中自适应放大目标窗口的界面示意图一;
图10为本申请实施例提供的悬浮窗口场景中自适应放大目标窗口的界面示意图二;
图11为本申请实施例提供的悬浮窗口场景中自适应恢复目标窗口的界面示意图;
图12为本申请实施例提供的自适应调整多个窗口的界面示意图;
图13为本申请实施例提供的自适应调整桌面显示的目标窗口的界面示意图一;
图14为本申请实施例提供的自适应调整桌面显示的目标窗口的界面示意图二;
图15为本申请实施例提供的自适应调整桌面显示的目标窗口的界面示意图三;
图16为本申请实施例提供的自适应调整桌面显示的目标窗口的界面示意图四;
图17为本申请实施例提供的自适应调整桌面显示的目标窗口的界面示意图五;
图18为本申请实施例提供的自适应调整后台显示的目标窗口的界面示意图;
图19为本申请实施例提供的窗口控制方法流程示意图;
图20为本申请实施例提供的电子设备的结构示意图。
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
在一些实施例中,电子设备支持多窗口显示,例如电子设备可通过悬浮窗、分屏等多种方式,在不同的窗口显示不同的应用,这样用户可同时操作多个应用,满足使用需求。
示例性地,如图1中(a)所示,手机在全屏显示备忘录应用界面101的过程中,通过悬浮窗口102显示浏览器应用。这样,用户可方便的将浏览器查询到的内容添加到备忘录中。但是,受限于显示屏面积,悬浮窗口会遮挡备忘录内容,用户不方便查看被遮挡的内容。那么,用户就需要手动调整悬浮窗口大小,以方便在备忘录中粘贴复制的浏览器查询内容。例如,响应于用户点击最小化控件11的操作,如图1中(b)所示,手机将悬浮窗口102缩小显示为悬浮球103,这样用户可以继续编辑备忘录内容。之后,用户如需继续通过浏览器进行查询,还需要再点击悬浮球103,这样手机响应于用户操作,才可以显示如图1中(c)所示界面,再通过悬浮窗口102显示浏览器应用。
可以看出,由于窗口大小需要用户手动调整,用户跨窗口操作难度较大,影响用户使用体验。
由此,本申请实施例所提供的一种窗口控制方法,电子设备响应于用户的跨窗口操作,源窗口和/或目标窗口自适应的变化显示大小和/或位置,从而通过窗口的自适应变化,方便用户的操作。
可选地,本申请实施例提供的窗口控制方法,可以应用于电子设备100。如图2所示,该电
子设备100具体可以是手机21、平板电脑22、笔记本电脑23、可穿戴设备24、智慧屏25、车载终端26、计算机、电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、人工智能(artificial intelligence,AI)设备等具有显示功能的终端设备,上述电子设备100安装的操作系统包括但不限于
或者其它操作系统。本申请对上述电子设备100的具体类型、所安装的操作系统均不作限制。
示例性地,如图3所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元。例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器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)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器,使处理器110与触摸传感器通过I2C总线接口通信,实现电子设备100的触摸功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他第一电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是
有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为第一电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),例如采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-led,Micro-led,Micro-oled,
量子点发光二极管(quantum dot light emitting diodes,QLED)等生产制造。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在一些实施例中,电子设备100通过显示屏194显示多个应用窗口,通过触摸传感器检测到用户在显示屏194上的跨窗口操作,确定用户指示将源窗口显示内容通过复制或剪切的方式拖拽到目标窗口显示。那么,电子设备100响应于用户操作,自适应调整源窗口和/或目标窗口的大小,从而便于用户在目标窗口中的操作。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。电子设备100可以通过音频模块170,例如音乐播放,录音等。音频模块170可以包括扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图4是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,
安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图4所示,应用程序包可以包括日历,联系人,备忘录,相机,音乐,图库,地图,通话,视频等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
在一些实施例中,电子设备100通过窗口管理器管理正在显示的多个窗口的显示位置和大小。电子设备100检测到用户将源窗口中选中的显示内容向目标窗口拖拽的操作,确定用户指示将被拖拽的显示内容复制到目标窗口显示。那么,电子设备100通过窗口管理器调整源窗口和/或目标窗口的大小,从而避免源窗口遮挡目标窗口影响用户的拖拽操作。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
二维图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
在一些实施例中,电子设备支持多窗口显示。例如,电子设备可通过悬浮窗、分屏等方式,同时显示多个应用窗口,满足用户多应用同时操作的需求。那么在一些情况下,用户需要将一个窗口中的内容通过复制、剪切等方式移动到另一个窗口显示。例如,用户将浏览器应用窗口中查询到的内容选中后,通过拖拽的方式移动到备忘录应用窗口中,以添加备忘录内容,方便用户对查询到的内容进行记录。
一些示例中,响应于用户的跨窗口拖拽操作,电子设备自动缩小源窗口大小,从而便于用户
将选中内容拖拽至目标窗口。例如,源窗口覆盖目标窗口,将源窗口缩小后,减小目标窗口被覆盖面积,便于用户确定目标窗口中待插入选中内容的位置。其中,源窗口为检测到用户拖拽操作的起始位置的窗口,即生成被复制或剪切的选中内容的窗口。目标窗口为用户拖拽操作的终止位置的窗口,即待插入用户拖拽的选中内容的窗口。
示例性地,在悬浮窗场景中,如图5中(a)所示,电子设备在全屏显示备忘录应用的过程中,通过悬浮窗口显示浏览器应用。其中,源窗口11为浏览应用窗口,目标窗口21为备忘录应用窗口,源窗口11覆盖在目标窗口21上,那么如果用户需要将源窗口11中显示的内容(如图片101)插入到目标窗口21中显示,可能由于目标窗口21被遮挡,影响用户确定选中内容在目标窗口21中的插入位置。例如,如图5中(b)所示,电子设备检测到用户选中源窗口11中显示的图片101并沿箭头102所示的方向向目标窗口21拖动的操作,确定用户指示将图片101通过复制或剪切等方式插入到目标窗口21中。那么,如图5中(c)所示,电子设备自动缩小源窗口11的大小,以避免源窗口11遮挡在目标窗口21,这样方便用户在目标窗口21中确定待插入图片101的位置。
一些示例中,用户将源窗口中的内容插入到目标窗口中显示的操作除包括上述拖拽操作以外,还可以包括其他操作。例如用户在源窗口中选中内容后,再点击目标窗口,源窗口也可自适应变化大小,以便于用户在目标窗口中执行粘贴操作。下文以用户通过拖拽选中内容的方式进行跨窗口操作为例,对窗口的变化过程进行介绍。
一些示例中,电子设备也可通过其他方式避免源窗口影响用户在目标窗口中的操作,例如电子设备增加源窗口的透明度、移动源窗口的显示位置、使目标窗口覆盖源窗口等。
一些示例中,电子设备响应于用户的拖拽操作,根据拖拽方向,对源窗口的显示位置和/或大小进行变化。例如,如图5所示场景,电子设备检测到用户沿箭头102所示方向向显示屏左上方进行拖拽操作,那么可向箭头102所示方向的相反方向缩小源窗口的大小或移动源窗口的显示位置。
示例性地,如图6所示,以四象限为例,电子设备向与用户拖拽方向相反的方向移动和/或缩小源窗口。例如,电子设备检测到用户从第四象限方向向第二象限方向的拖拽选中内容的操作,可从第二象限方向向第四象限方向移动和/或缩小源窗口。或者,电子设备沿顺时针方向(或逆时针方向)移动源窗口避让用户向目标窗口的拖拽选中内容的操作。例如,如图5中(c)所示,电子设备检测到用户将图片101移动到目标窗口21后,继续执行拖拽操作调整图片101在目标窗口21中的显示位置,如检测到用户将图片101由第三象限方向向第四象限方向移动的拖拽操作,可控制源窗口11顺时针移动,如由第四象限向第三象限方向移动,以避让图片101的显示位置。可选地,四象限中心位置可以为电子设备显示屏的中心位置。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应调整源窗口的大小和/或位置,从而便于用户在目标窗口中的操作。
在一些实施例中,用户在将源窗口中选中的内容移动到目标窗口后,可能还需要继续操作源窗口中显示的应用,那么电子设备响应于用户对源窗口的操作,也可自动恢复源窗口的显示。
示例性地,如图5中(c)所示,电子设备响应于用户操作将图片101通过粘贴的方式显示在目标窗口中用户指示的位置。之后,如图7中(a)所示,电子设备检测到用户点击源窗口11中空白显示区域701的操作,或者检测到用户点击源窗口11上显示的放大控件702的操作,确定用户指示操作源窗口11。那么如图7中(b)所示,电子设备可放大源窗口11,以便于用户继续操作源窗口。可选地,放大后的源窗口的显示位置和大小与电子设备响应于用户的跨窗口拖拽操作自适应缩小和/或移动源窗口前源窗口的显示位置和大小相同,即电子设备恢复源窗口的显示。
又示例性地,在分屏场景中,电子设备也可响应于用户的跨窗口拖拽操作,自适应的变化源窗口的大小。如图8中(a)所示,电子设备分屏显示备忘录应用和浏览器应用,例如源窗口11显示浏览器应用,目标窗口21显示备忘录应用。如图8中(b)所示,电子设备检测到用户选中源窗口11中显示的图片801(如长按图片801),并将图片801沿箭头802所示方向向目标窗口21拖拽的操作,如图8中(c)所示,电子设备可响应于用户的跨窗口拖拽操作,自动缩小源窗口11的大小,相应的目标窗口21随着源窗口11的缩小自动放大。这样,用户在放大后的目标窗口21中,能够更方便的确定待插入图片801的位置。
应理解,上述各个实施例以源窗口和目标窗口在显示过程中存在互相影响的情况下,对响应于用户的跨窗口拖拽操作电子设备自适应调整窗口的大小和/或位置的过程进行介绍,例如源窗口遮挡目标窗口时,电子设备自适应缩小源窗口等。在一些场景中,源窗口和目标窗口在显示过程中不存在互相影响,但目标窗口的显示不方便用户操作,电子设备也可自适应调整窗口的显示,以便于用户操作。
在一些实施例中,电子设备在多窗口显示的过程中,检测到用户的跨窗口拖拽操作,确定目标窗口较小,可自适应放大目标窗口的显示,从而便于用户在目标窗口中确认拖拽内容的插入位置。
示例性地,如图9中(a)所示,电子设备在全屏显示浏览器应用的过程中,通过悬浮窗口显示备忘录应用。其中,源窗口11为浏览应用窗口,目标窗口21为备忘录应用窗口,可以看出用户如果需要将源窗口11中的内容插入到目标窗口21中显示,由于目标窗口21较小,用户很难准确的确定目标窗口中待插入选中内容的位置。例如,如图9中(b)所示,电子设备检测到用户将图片901沿箭头902所示方向拖拽到目标窗口21的操作,确定用户指示将图片901插入到目标窗口21中显示。那么,如图9中(c)所示,响应于用户操作,电子设备放大目标窗口21,以便于用户在目标窗口21中确定图片901的插入位置。
可选地,电子设备确定目标窗口的大小小于预设阈值,可确定响应于用户的跨窗口拖拽操作,需要放大目标窗口。或者,电子设备确定检测到用户的跨窗口拖拽操作时,目标窗口处于当前窗口形式下的非最大显示状态,可放大目标窗口。例如,如图9所示场景,目标窗口21处于悬浮窗口的小窗口状态,电子设备响应于用户的跨窗口拖拽操作可放大目标窗口21,将目标窗口21显示为大窗口状态。
可选地,电子设备检测到用户将源窗口中的内容拖拽到目标窗口的热区范围时,确定检测到用户的跨窗口拖拽操作。可选地,窗口的热区范围例如为窗口所在的显示区域,或窗口所在的显示区域以及窗口外围预设范围内的显示区域。例如,整个悬浮窗口为悬浮窗口对应的热区范围;或者悬浮窗口的热区范围包括悬浮窗口所在区域以及悬浮窗口外围N个像素点宽度内的范围,N为正整数;或者悬浮窗口的热区范围为悬浮窗口外围N个像素点宽度内的范围。
在一些实施例中,电子设备在检测到用户跨窗口拖拽操作的过程中,可自适应变化目标窗口的大小和/或位置,以降低用户操作难度。
示例性地,如图9所示场景,电子设备检测到用户选中源窗口11中显示的图片901并进行拖拽的操作,确定用户拖拽方向显示有目标窗口21,可确定用户需要将该图片901跨窗口拖拽到目标窗口进行显示。那么,如图10中(a)所示,电子设备可沿用户拖拽方向相反的方向放大目标窗口21,那么如图10中(b)所示,方便用户确定图片901在目标窗口21中的插入位置。并且,减少用户拖拽选中内容的距离,降低用户操作难度。
可选地,电子设备检测到用户拖拽源窗口中的选中内容超过预设距离且拖拽方向存在另一个窗口的情况下,确定用户正在进行跨窗口拖拽操作,以适应性的放大目标窗口或移动目标窗口。从而避免自适应调整目标窗口的操作,影响用户在源窗口中移动显示内容。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应调整目标窗口的大小和/或位置,从而便于用户在目标窗口中的操作。
在一些实施例中,用户在将源窗口中选中的内容移动到目标窗口后,可能还需要继续操作源窗口中显示的应用,那么电子设备响应于用户对源窗口的操作,也可自动恢复源窗口的显示。
示例性地,如图10中(b)所示,电子设备响应于用户操作将图片901通过粘贴的方式显示在目标窗口中用户指示的位置。之后,如图11中(a)所示,电子设备检测到用户点击源窗口11的操作,确定用户指示操作源窗口11。那么如图11中(b)所示,电子设备可缩小目标窗口21,以避免目标窗口遮挡源窗口11,便于用户继续操作源窗口11。可选地,缩小后的目标窗口的显示位置和大小与电子设备响应于用户的跨窗口拖拽操作放大和/或移动目标窗口前目标窗口的显示位置和大小相同,即电子设备恢复目标窗口的显示。
以上分别对响应于用户的跨窗口拖拽操作源窗口或目标窗口的变化进行介绍,在一些场景中,源窗口、目标窗口以及电子设备显示的其他窗口均可响应于用户的跨窗口拖拽操作进行变化,以
便于用户在目标窗口中的操作。
在一些实施例中,电子设备在显示多个窗口的过程中,检测到用户的跨窗口拖拽操作,确定调整当前显示的其他窗口和目标窗口中的一个或多个窗口的显示,从而避免其他窗口的显示影响用户在目标窗口中的操作。
示例性地,如图12中(a)所示,电子设备通过悬浮窗口的方式显示浏览器应用窗口11,并通过分屏的方式显示备忘录应用窗口21和媒体应用窗口31。如图12中(b)所示,电子设备检测到用户选中浏览器应用窗口11中显示的图片1201,并沿箭头1202所示方向向备忘录应用窗口21拖拽的操作,并到达备忘录应用窗口21的热区范围,可确定用户执行跨窗口拖拽操作,源窗口为浏览器应用窗口11,目标窗口为备忘录应用窗口21。那么,如图12中(c)所示,电子设备可自适应调整正在显示的多个窗口。例如,电子设备自动缩小浏览器应用窗口11,避免浏览器应用窗口11遮挡备忘录应用窗口21;电子设备自动缩小媒体应用窗口31,并相应的放大备忘录应用窗口21。这样,放大显示且减少遮挡的备忘录应用窗口21,更加便于用户确定跨窗口移动的图片1201的插入位置。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应当前显示的多个窗口中的一个或多个窗口的大小和/或位置,从而便于用户在目标窗口中的操作。
在一些实施例中,电子设备显示的多个窗口包括全屏窗口、悬浮窗口、分屏窗口、卡片窗口(或描述为卡片)、图标窗口(或描述为图标)、悬浮球窗口(或描述为悬浮球)等。电子设备检测到用户选中其中一个窗口中的显示内容向另一个窗口拖拽的操作,可触发自适应调整窗口大小。
一些示例中,目标窗口对应的应用未启动或处于后台,电子设备可触发拉起目标窗口对应的应用前台显示。应理解,前台应用的画面内容不仅可以包括用户看的见的画面,还可以包括无用户界面的内容、透明图层的内容或者被其他应用界面遮挡对用户不可见的内容。
可选地,电子设备拉起目标窗口对应的应用后,显示的应用界面可以为用户退出该应用前台显示时最后显示的应用界面,或者也可以是用户常用的应用界面。或者也可以是用户设置的默认应用界面等。
一些示例中,电子设备响应于用户的跨窗口拖拽操作放大目标窗口包括不改变显示形式的放大或改变显示形式的放大。其中,显示形式例如包括全屏显示、悬浮窗口显示、卡片显示、图标显示、悬浮球显示等。可选地,电子设备响应于用户的跨窗口拖拽操作缩小源窗口包括不改变显示形式的缩小或改变显示形式的缩小。
比如,电子设备响应于用户的跨窗口拖拽操作,确定目标窗口为悬浮窗口,将处于小窗口状态显示的悬浮窗口放大为大窗口状态显示的悬浮窗口,即不改变显示形式的放大目标窗口。又比如,电子设备响应于用户的跨窗口拖拽操作,确定目标窗口为卡片窗口,拉起卡片窗口对应的应用并全屏显示该应用的界面,即改变显示形式的放大目标窗口。又比如,电子设备响应于用户的跨窗口拖拽操作,确定目标窗口为悬浮球窗口,拉起悬浮球窗口对应的应用并通过悬浮窗口显示该应用,或者显示该悬浮球窗口对应的应用卡片,或者全屏显示该悬浮球窗口对应的应用的界面等,即改变显示形式的放大目标窗口。再比如,电子设备响应于用户的跨窗口拖拽操作,确定目标窗口为图标窗口,拉起图标窗口对应的应用并全屏显示该图标窗口对应的应用的界面,或者显示该图标窗口对应的应用卡片,或者通过悬浮窗口显示该图标窗口对应的应用等,即改变显示形式的放大目标窗口。
示例性地,如图13中(a)所示,电子设备显示有悬浮窗口11、卡片12、图标13以及悬浮球14。如图13中(b)所示,电子设备检测到用户选中悬浮窗口11中显示的图片1301并沿箭头1302所示方向的拖拽操作,确定拖拽该图片1301到达卡片12的热区范围,可确定检测到用户的跨窗口拖拽操作,源窗口为悬浮窗口11,目标窗口为卡片12。那么,如图13中(c)所示,电子设备可启动卡片12对应的备忘录应用并全屏显示备忘录应用对应的最后显示的应用界面。可选地,电子设备还可缩小悬浮窗口11(即源窗口),以避免悬浮窗口11遮挡全屏显示的备忘录应用界面,影响用户调整图片1301的插入位置。
又示例性地,在图13中(a)所示,由于悬浮窗口11(即源窗口)可能会遮挡桌面上显示的
其他窗口,影响用户确定跨窗口拖拽操作的目标窗口。那么,如图14中(a)所示,电子设备检测到用户选中悬浮窗口11中显示的图片1301并沿箭头1303所示方向的拖拽操作并在桌面空白区域保持拖拽停留超过预设时间,可确定当前源窗口的显示影响用户确定目标窗口,那么电子设备可缩小源窗口。例如,如图14中(b)所示,电子设备缩小悬浮窗口11,这样用户可继续拖拽图片1301以确定目标窗口。可选地,在拖拽图片1301在桌面上移动的过程中,电子设备还可响应于用户操作,按照如图6所示的象限,顺时针移动悬浮窗口11的显示位置以避让用户手指(或触控笔等)触摸位置,避免悬浮窗口11遮挡用户待选择的目标窗口。
之后,如图15中(a)所示,电子设备检测到用户继续拖拽图片1301移动到卡片12的热区范围的操作,可确定目标窗口为卡片12。那么,如图15中(b)所示,电子设备可启动卡片12对应的备忘录应用并全屏显示备忘录应用。可选地,电子设备检测到用户手指在卡片上最终停留的控件位置(如备忘录3的位置),可触发显示该控件对应的应用界面(如备忘录3界面);或者,电子设备直接显示卡片12对应的应用的首页或最后显示的界面等。可选地,如图15中(b)所示,在拖拽图片1301在备忘录应用界面移动的过程中,电子设备还可响应于用户操作,按照如图6所示的象限,顺时针(或逆时针)移动悬浮窗口11显示位置避让用户手指触摸位置。
或者,如图16中(a)所示,电子设备检测到用户继续拖拽图片1301移动到图标13的热区范围的操作,可确定目标窗口为图标13。那么,如图16中(b)所示,电子设备可启动图标13对应的备忘录应用并全屏显示备忘录应用。可选地,电子设备后台运行备忘录应用的过程中,检测到上述用户的跨窗口拖拽操作,电子设备可直接显示后台运行的备忘录界面;或者,电子设备未启动备忘录应用,响应于上述用户的跨窗口拖拽操作,电子设备启动备忘录应用,并显示备忘录应用首页。
或者,如图17中(a)所示,电子设备检测到用户继续拖拽图片1301移动到悬浮球14的热区范围的操作,可确定目标窗口为悬浮球14。那么,如图17中(b)所示,电子设备可启动悬浮球14对应的备忘录应用并通过悬浮窗口21显示备忘录应用。
一些示例中,电子设备检测到用户继续拖拽图片1301到达当前显示界面边缘位置仍继续拖拽的操作,可确定切换显示桌面的其他界面,这样便于用户将图片1301移动至位于桌面其他界面上显示的目标窗口中。
如此,电子设备在显示桌面的过程中,也可响应于用户操作,自适应调整窗口大小或位置,便于用户的跨窗口操作。
再示例性地,用户需要拖拽显示内容移动的目标窗口可能正处于后台显示,那么如图18中(a)所示,电子设备检测到用户选中悬浮窗口11中显示的图片1301并沿箭头1303所示方向的拖拽操作并在桌面空白区域保持拖拽停留超过预设时间,可显示如图18中(b)所示的多任务界面。之后,电子设备检测到用户在多任务界面上继续拖拽图片1301至后台卡片1304的操作,可确定该后台卡片1304为目标窗口。那么,如图18中(c)所示,电子设备可启动后台卡片1304对应的备忘录应用并全屏显示后台卡片1304对应的备忘录应用界面。
如此,通过触发显示多任务界面,便于用户直接确定位于后台的目标窗口,降低用户在桌面上寻找目标窗口的难度。
示例性地,图19为本申请实施例提供的一种窗口控制方法流程示意图。需要说明的是,该方法并不以图19以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:
S1901、电子设备显示第一界面,第一界面包括第一窗口和第二窗口。
在一些实施例中,电子设备支持多窗口显示。例如,电子设备可通过悬浮窗、分屏等方式,同时显示多个应用窗口,满足用户多应用同时操作的需求。
示例性地,在悬浮窗场景中,如图5中(a)所示,电子设备在全屏显示备忘录应用的过程中,通过悬浮窗口显示浏览器应用。第一窗口例如为备忘录应用窗口,第二窗口例如为浏览器应用窗口。
又示例性地,在分屏场景中,如图8中(a)所示,电子设备分屏显示备忘录应用和浏览器应
用,第一窗口例如为浏览器应用窗口,第二窗口例如为备忘录应用窗口。
S1902、电子设备检测到用户将在第一窗口中显示的第一内容向第二窗口移动的第一操作。
其中,第一操作可以是将第一窗口中的显示内容向第二窗口移动的操作,也可以是将第一窗口中的显示内容移动至第二窗口的热区范围的操作。例如,第一操作为跨窗口拖拽操作。
其中,第一窗口例如为源窗口,第二窗口例如为目标窗口。
可选地,电子设备检测到用户拖拽源窗口中的选中内容超过预设距离且拖拽方向存在另一个窗口的情况下,确定用户正在进行跨窗口拖拽操作。
可选地,热区范围包括第二窗口外围预设范围内的显示区域、第二窗口的显示区域、第二窗口以及第二窗口外围预设范围内的显示区域中的至少一项。
例如,第二窗口为悬浮窗口。其中,整个悬浮窗口为悬浮窗口对应的热区范围;或者悬浮窗口的热区范围包括悬浮窗口所在区域以及悬浮窗口外围N个像素点宽度内的范围,N为正整数;或者悬浮窗口的热区范围为悬浮窗口外围N个像素点宽度内的范围。
S1903、电子设备响应于第一操作,调整第一窗口和/或第二窗口的大小,调整大小后的第一窗口小于调整大小前的第一窗口,调整大小后的第二窗口大于调整大小前的第二窗口。
在一些实施例中,响应于第一操作,电子设备向与第一操作拖拽方向相反的方向,调整第一窗口和/或第二窗口的大小。
示例性地,在悬浮窗场景中,如图5中(b)所示,电子设备检测到用户选中源窗口11中显示的图片101并沿箭头102所示的方向向目标窗口21拖动的操作,确定用户指示将图片101通过复制或剪切等方式插入到目标窗口21中。那么,如图5中(c)所示,电子设备自动缩小源窗口11的大小,以避免源窗口11遮挡在目标窗口21,这样方便用户在目标窗口21中确定待插入图片101的位置。
又示例性地,在分屏场景中,如图8中(b)所示,电子设备检测到用户选中源窗口11中显示的图片801(如长按图片801),并将图片801沿箭头802所示方向向目标窗口21拖拽的操作,如图8中(c)所示,电子设备可响应于用户的跨窗口拖拽操作,自动缩小源窗口11的大小,相应的目标窗口21随着源窗口11的缩小自动放大。这样,用户在放大后的目标窗口21中,能够更方便的确定待插入图片801的位置。
再示例性地,如图9中(a)所示,电子设备在全屏显示浏览器应用的过程中,通过悬浮窗口显示备忘录应用。如图9中(b)所示,电子设备检测到用户将图片901沿箭头902所示方向拖拽到目标窗口21的操作,确定用户指示将图片901插入到目标窗口21中显示。那么,如图9中(c)所示,响应于用户操作,电子设备放大目标窗口21,以便于用户在目标窗口21中确定图片901的插入位置。
如此,响应于用户的跨窗口拖拽操作,电子设备自动缩小源窗口的大小、自动放大目标窗口的大小,这样避免源窗口对目标窗口的遮挡,且方便用户确定移动内容在目标窗口中的插入位置。
在另一些实施例中,响应于第一操作,电子设备向与第一操作拖拽方向相反的方向,调整第一窗口和/或第二窗口的显示位置。
一些示例中,按照顺时针的方向移动第一窗口的显示位置,以避让第一内容响应于第一操作的移动。
示例性地,如图6所示,以四象限为例,电子设备向与用户拖拽方向相反的方向移动和/或缩小源窗口。例如,电子设备检测到用户从第四象限方向向第二象限方向的拖拽选中内容的操作,可从第二象限方向向第四象限方向移动和/或缩小源窗口。或者,电子设备沿顺时针方向(或逆时针方向)移动源窗口避让用户向目标窗口的拖拽选中内容的操作。例如,如图5中(c)所示,电子设备检测到用户将图片101移动到目标窗口21后,继续执行拖拽操作调整图片101在目标窗口21中的显示位置,如检测到用户将图片101由第三象限方向向第四象限方向移动的拖拽操作,可控制源窗口11顺时针移动,如由第四象限向第三象限方向移动,以避让图片101的显示位置。可选地,四象限中心位置可以为电子设备显示屏的中心位置。
在另一些实施例中,电子设备检测到用户将第一窗口中的内容移动到第二窗口中的操作,也可不必变化第一窗口或第二窗口的大小和显示位置。
例如,电子设备确定第一窗口未遮挡第二窗口;或者,第二窗口的大小大于预设阈值,用户能够较为容易确定移动内容的待插入位置。那么,电子设备可不必调整窗口大小和/或位置,从而减少电子设备计算量,降低设备功耗。
在一些实施例中,调整大小前后,第一窗口的窗口类型和第二窗口的窗口类型不变;或者,调整大小前后,第一窗口的窗口类型和/或第二窗口的窗口类型发生变化。
可选地,窗口类型包括全屏窗口、悬浮窗口、分屏窗口、卡片窗口、图标窗口、悬浮球窗口中的至少一项。
示例性地,如图13中(a)所示,电子设备显示有悬浮窗口11、卡片12、图标13以及悬浮球14。如图13中(b)所示,电子设备检测到用户选中悬浮窗口11中显示的图片1301并沿箭头1302所示方向的拖拽操作,确定拖拽该图片1301到达卡片12的热区范围,可确定检测到用户的跨窗口拖拽操作,源窗口为悬浮窗口11,目标窗口为卡片12。那么,如图13中(c)所示,电子设备可启动卡片12对应的备忘录应用并全屏显示备忘录应用对应的最后显示的应用界面。即,调整大小前后,第二窗口的窗口类型发生变化。
在一些实施例中,第一界面还包括第三窗口。那么,响应于第一操作,调整第三窗口的大小,调整大小后的第三窗口小于调整大小前的第三窗口。
示例性地,如图12中(a)所示,电子设备通过悬浮窗口的方式显示浏览器应用窗口11,并通过分屏的方式显示备忘录应用窗口21和媒体应用窗口31。如图12中(b)所示,电子设备检测到用户选中浏览器应用窗口11中显示的图片1201,并沿箭头1202所示方向向备忘录应用窗口21拖拽的操作,可确定用户执行跨窗口拖拽操作,源窗口为浏览器应用窗口11,目标窗口为备忘录应用窗口21。那么,如图12中(c)所示,电子设备可自适应调整正在显示的多个窗口。例如,电子设备自动缩小浏览器应用窗口11,避免浏览器应用窗口11遮挡备忘录应用窗口21;电子设备自动缩小媒体应用窗口31,并相应的放大备忘录应用窗口21。这样,放大显示且减少遮挡的备忘录应用窗口21,更加便于用户确定跨窗口移动的图片1201的插入位置。
如此,响应于电子设备的跨窗口拖拽操作,电子设备自适应当前显示的多个窗口中的一个或多个窗口的大小和/或位置,从而便于用户在目标窗口中的操作。
在一些实施例中,第二窗口对应的第一应用未启动或后台运行。那么,电子设备响应于第一操作,启动第一应用,并在调整大小后的第二窗口中显示第一应用的最近关闭页面或首页。
示例性地,如图16中(a)所示,电子设备检测到用户拖拽源窗口11中显示的图片1301移动到图标13的热区范围的操作,可确定目标窗口为图标13。那么,如图16中(b)所示,电子设备可启动图标13对应的备忘录应用并全屏显示备忘录应用。可选地,电子设备后台运行备忘录应用的过程中,检测到上述用户的跨窗口拖拽操作,电子设备可直接显示后台运行的备忘录界面;或者,电子设备未启动备忘录应用,响应于上述用户的跨窗口拖拽操作,电子设备启动备忘录应用,并显示备忘录应用首页。
如此,电子设备在显示桌面的过程中,也可响应于用户操作,自适应调整窗口大小或位置,便于用户的跨窗口操作。
此外,若目标窗口对应的应用未启动,电子设备也可响应于用户操作,自适应的启动目标窗口对应的应用,满足用户的使用需求。
以上结合图5-图19详细说明了本申请实施例提供的窗口控制方法。以下结合图20详细说明本申请实施例提供的电子设备。
在一种可能的设计中,图20为本申请实施例提供的电子设备的结构示意图。如图20所示,电子设备2000可以包括:显示单元2001、处理单元2002以及收发单元2003。电子设备2000可用于实现上述方法实施例中涉及的电子设备的功能。
可选地,显示单元2001,用于支持电子设备2000显示界面内容;和/或,支持电子设备2000执行图19中的S1901和S1903。
可选地,处理单元2002,用于支持电子设备2000执行图19中的S1903。
可选地,收发单元2003,用于支持电子设备2000执行图19中的S1902。
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,
可以为收发器或收发模块。电子设备2000中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的窗口控制方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。
可选地,图20所示的电子设备2000还可以包括存储单元(图20中未示出),该存储单元中存储有程序或指令。当显示单元2001、处理单元2002以及收发单元2003执行该程序或指令时,使得图20所示的电子设备2000可以执行上述方法实施例中所述的窗口控制方法。
图20所示的电子设备2000的技术效果可以参考上述方法实施例中所述的窗口控制方法的技术效果,此处不再赘述。
除了以电子设备2000的形式以外,本申请提供的技术方案也可以为电子设备中的功能单元或者芯片,或者与电子设备匹配使用的装置。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的窗口控制方法。
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的窗口控制方法。
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的窗口控制方法。
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的
组成部分。处理器和存储介质可以位于专用集成电路(application specific integrated circuit,ASIC)中。
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (12)
- 一种窗口控制方法,其特征在于,应用于电子设备,所述方法包括:显示第一界面,所述第一界面包括第一窗口和第二窗口;检测到用户将在所述第一窗口中显示的第一内容向所述第二窗口移动的第一操作;响应于所述第一操作,调整所述第一窗口和/或所述第二窗口的大小,调整大小后的第一窗口小于调整大小前的第一窗口,调整大小后的第二窗口大于调整大小前的第二窗口。
- 根据权利要求1所述的方法,其特征在于,所述第一界面还包括第三窗口,所述方法还包括:响应于所述第一操作,调整所述第三窗口的大小,调整大小后的第三窗口小于调整大小前的第三窗口。
- 根据权利要求1或2所述的方法,其特征在于,调整大小前后,所述第一窗口的窗口类型和所述第二窗口的窗口类型不变;或者,调整大小前后,所述第一窗口的窗口类型和/或所述第二窗口的窗口类型发生变化。
- 根据权利要求3所述的方法,其特征在于,所述窗口类型包括全屏窗口、悬浮窗口、分屏窗口、卡片窗口、图标窗口、悬浮球窗口中的至少一项。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述第二窗口对应的第一应用未启动或后台运行,所述方法还包括:响应于所述第一操作,启动所述第一应用,并在调整大小后的第二窗口中显示所述第一应用的最近关闭页面或首页。
- 根据权利要求1-5任一项所述的方法,其特征在于,所述第一操作为对所述第一内容的跨窗口拖拽操作,所述响应于所述第一操作,调整所述第一窗口和/或所述第二窗口的大小,包括:响应于所述第一操作,向与所述第一操作拖拽方向相反的方向,调整所述第一窗口和/或所述第二窗口的大小。
- 根据权利要求1-6任一项所述的方法,其特征在于,所述第一操作为对所述第一内容的跨窗口拖拽操作,所述方法还包括:响应于所述第一操作,向与所述第一操作拖拽方向相反的方向,调整所述第一窗口和/或所述第二窗口的显示位置。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:按照顺时针的方向移动所述第一窗口的显示位置,以避让所述第一内容响应于所述第一操作的移动。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述检测到用户将在所述第一窗口中显示的第一内容向所述第二窗口移动的第一操作,包括:检测到用户将在所述第一窗口中显示的所述第一内容移动至所述第二窗口的热区范围的所述第一操作,所述热区范围包括所述第二窗口的显示区域以及所述第二窗口外围预设范围内的显示区域、所述第二窗口的显示区域、所述第二窗口外围预设范围内的显示区域中的至少一项。
- 一种电子设备,其特征在于,包括:处理器、存储器和显示屏,所述存储器和所述显示屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述电子设备执行如权利要求1-9中任意一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任意一项所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-9中任意一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310713824.2 | 2023-06-15 | ||
CN202310713824.2A CN119148912A (zh) | 2023-06-15 | 2023-06-15 | 窗口控制方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024255238A1 true WO2024255238A1 (zh) | 2024-12-19 |
Family
ID=93816070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2024/072620 WO2024255238A1 (zh) | 2023-06-15 | 2024-01-16 | 窗口控制方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN119148912A (zh) |
WO (1) | WO2024255238A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105009060A (zh) * | 2013-01-29 | 2015-10-28 | 谷歌公司 | 智能窗口大小调整和控制 |
CN113407086A (zh) * | 2021-08-20 | 2021-09-17 | 北京鲸鲮信息系统技术有限公司 | 对象拖拽方法、设备和存储介质 |
CN114510176A (zh) * | 2021-08-03 | 2022-05-17 | 荣耀终端有限公司 | 终端设备的桌面管理方法和终端设备 |
US20220357845A1 (en) * | 2019-09-30 | 2022-11-10 | Huawei Technologies Co., Ltd. | Split-screen display method and electronic device |
CN115729431A (zh) * | 2021-08-31 | 2023-03-03 | 华为技术有限公司 | 一种控件内容的拖拽方法、电子设备及系统 |
-
2023
- 2023-06-15 CN CN202310713824.2A patent/CN119148912A/zh active Pending
-
2024
- 2024-01-16 WO PCT/CN2024/072620 patent/WO2024255238A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105009060A (zh) * | 2013-01-29 | 2015-10-28 | 谷歌公司 | 智能窗口大小调整和控制 |
US20220357845A1 (en) * | 2019-09-30 | 2022-11-10 | Huawei Technologies Co., Ltd. | Split-screen display method and electronic device |
CN114510176A (zh) * | 2021-08-03 | 2022-05-17 | 荣耀终端有限公司 | 终端设备的桌面管理方法和终端设备 |
CN113407086A (zh) * | 2021-08-20 | 2021-09-17 | 北京鲸鲮信息系统技术有限公司 | 对象拖拽方法、设备和存储介质 |
CN115729431A (zh) * | 2021-08-31 | 2023-03-03 | 华为技术有限公司 | 一种控件内容的拖拽方法、电子设备及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN119148912A (zh) | 2024-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021036571A1 (zh) | 一种桌面的编辑方法及电子设备 | |
CN114115619B (zh) | 一种应用程序界面显示的方法及电子设备 | |
JP2023506936A (ja) | マルチ画面共働方法およびシステム、ならびに電子デバイス | |
WO2021115194A1 (zh) | 一种应用图标的显示方法及电子设备 | |
CN111338519B (zh) | 一种显示方法及电子设备 | |
WO2022252805A1 (zh) | 显示方法及电子设备 | |
CN115061607B (zh) | 功能页面显示方法及电子设备 | |
WO2022252816A1 (zh) | 显示方法及电子设备 | |
US20240393920A1 (en) | Method for displaying dock bar in launcher and electronic device | |
CN114816200A (zh) | 一种显示方法及电子设备 | |
WO2023051511A1 (zh) | 一种图标移动方法、相关图形界面及电子设备 | |
WO2022160999A1 (zh) | 显示方法和电子设备 | |
JP7669638B2 (ja) | 表示方法及び電子デバイス | |
CN118484113A (zh) | 应用管理的方法和电子设备 | |
WO2023030198A1 (zh) | 批注方法和电子设备 | |
WO2024255238A1 (zh) | 窗口控制方法及电子设备 | |
CN117389437A (zh) | 一种多窗口显示方法及设备 | |
CN115700431A (zh) | 一种桌面的显示方法及电子设备 | |
CN120276693A (zh) | 一种界面的分布式显示方法、电子设备及通信系统 | |
CN115268741B (zh) | 截屏方法、图形界面及电子设备 | |
CN114327324B (zh) | 一种界面的分布式显示方法、电子设备及通信系统 | |
CN117270720B (zh) | 一种页面显示方法及电子设备 | |
WO2023071590A1 (zh) | 输入控制方法及电子设备 | |
WO2024125301A1 (zh) | 显示方法和电子设备 | |
WO2022262453A1 (zh) | 一种异常提示方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24822199 Country of ref document: EP Kind code of ref document: A1 |