Window control method and electronic equipment

By detecting cross-window drag and drop operations in electronic devices, and automatically adjusting the window size and position, the problem of floating window occlusion is solved, simplifying user operations and improving the user experience of the target window.

CN119148912APending Publication Date: 2024-12-17HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310713824.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In electronic devices, due to the limitation of the display screen size, the floating window is easy to block other window content, resulting in cumbersome operation of users and it is difficult to determine the location of the content insertion in the target window.

Method used

By detecting the user's cross-window drag operation, the size and position of the source window and/or target window are automatically adjusted to ensure the visibility of the target window, making it easier for users to operate in the target window.

Benefits of technology

It simplifies user operations, avoids the source window blocking the target window, and improves the user's operation convenience and efficiency in the target window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119148912A_ABST
    Figure CN119148912A_ABST
Patent Text Reader

Abstract

The invention provides a window control method and electronic equipment, and relates to the technical field of terminals. According to the method and the device, the size of the source window and / or the target window can be adaptively changed in response to the cross-window operation of the user, so that the operation of the user is facilitated through the adaptive change of the window. The method comprises the steps that the electronic equipment displays a first interface, wherein the first interface comprises a first window and a second window; after the electronic device detects a first operation that a user moves first content displayed in a first window to a second window, the electronic device responds to the first operation, the size of the first window and / or the second window is adjusted, the first window with the adjusted size is smaller than the first window with the adjusted size, and the first content is displayed in the second window. The second window after size adjustment is larger than the second window before size adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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. Background Art

[0002] With the development of terminal technology, electronic devices support running multiple application windows to meet users' multi-window usage needs. For example, when a user is editing a memo, he or she opens a browser through a floating window to browse the web, so that the user can add the content queried through the browser to the memo being edited.

[0003] However, due to the limitation of the display size of the 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. Summary of the invention

[0004] In order to solve the above technical problems, 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.

[0005] In order to achieve the above technical objectives, this application provides the following technical solutions:

[0006] In a first aspect, 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.

[0007] In some examples, the first operation is, for example, a cross-window drag operation, the first window is, for example, a source window, and the second window is, for example, a target window.

[0008] In this way, in response to the user's cross-window drag operation, 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.

[0009] According to the first aspect, the first interface further includes a third window, and 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.

[0010] In this way, 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.

[0011] According to the first aspect, or any implementation of the first aspect above, before and after resizing, 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.

[0012] According to the first aspect, or any implementation of the first aspect above, 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.

[0013] For example, 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, and 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.

[0014] For example, 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, and 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.

[0015] In this way, the electronic device can adaptively change the window size according to the window type, enrich the window change scenarios, and improve the user experience.

[0016] According to the first aspect, or any implementation of the first aspect above, 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.

[0017] Exemplarily, 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. Optionally, during the process of the electronic device running the memo application in the background, if the cross-window drag operation of the above-mentioned user is detected, 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.

[0018] In this way, when displaying 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.

[0019] In addition, if the application corresponding to the target window is not started, 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.

[0020] According to the first aspect, or any implementation of the first aspect above, 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.

[0021] According to the first aspect, or any implementation of the first aspect above, the first operation is a cross-window drag operation on the first content, and 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.

[0022] In this way, in response to the cross-window drag operation of the electronic device, 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.

[0023] According to the first aspect, or any implementation of the first aspect above, 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.

[0024] According to the first aspect, or any implementation of the first aspect above, 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.

[0025] For example, 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.

[0026] In other embodiments, 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.

[0027] For example, 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.

[0028] In a second aspect, 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.

[0029] In this way, in response to the cross-window drag operation of the electronic device, 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.

[0030] According to the second aspect, 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.

[0031] According to the second aspect, or any implementation of the second aspect above, the method also includes: in response to the first operation, adjusting the size of the first window and / or the second window, the first window after resizing is smaller than the first window before resizing, and the second window after resizing is larger than the second window before resizing.

[0032] According to the second aspect, or any implementation of the second aspect above, 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.

[0033] According to the second aspect, or any implementation of the second aspect above, the first operation is a cross-window drag operation on the first content, and 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.

[0034] According to the second aspect, or any implementation of the second aspect above, 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.

[0035] The technical effects corresponding to the second aspect and any implementation method of the second aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0036] In a third aspect, an electronic device is provided. The electronic device 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.

[0037] In a fourth aspect, an electronic device is provided. The electronic device 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.

[0038] In a fifth aspect, an electronic device is provided, the 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.

[0039] In a sixth aspect, a computer-readable storage medium is provided. The 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.

[0040] In the seventh aspect, a computer program product is provided. When the 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.

[0041] In an eighth aspect, a circuit system is provided, the 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.

[0042] In the ninth aspect, a chip system is provided, 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.

[0043] The technical effects of the aforementioned aspects can be referenced to each other and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of a scenario in which a user manually adjusts the window size provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of the electronic device provided in the embodiment of the present application;

[0046] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0048] Figure 5 A schematic diagram of an interface for adaptively reducing a source window in a floating window scenario provided in an embodiment of the present application;

[0049] Figure 6A schematic diagram of the direction of adjusting the window display position provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of an interface for adaptively restoring a source window in a floating window scenario provided in an embodiment of the present application;

[0051] Figure 8 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;

[0052] Fig. 9 Schematic diagram of an interface for adaptively enlarging a target window in a floating window scenario provided in an embodiment of the present application Figure 1 ;

[0053] Fig.10 Schematic diagram of an interface for adaptively enlarging a target window in a floating window scenario provided in an embodiment of the present application Figure 2 ;

[0054] Fig.11 A schematic diagram of an interface for adaptively restoring a target window in a floating window scenario provided in an embodiment of the present application;

[0055] Fig.12 A schematic diagram of an interface for adaptively adjusting multiple windows provided in an embodiment of the present application;

[0056] Fig.13 Schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided in an embodiment of the present application Figure 1 ;

[0057] Fig.14 Schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided in an embodiment of the present application Figure 2 ;

[0058] Fig.15 Schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided in an embodiment of the present application Figure 3 ;

[0059] Fig.16 Schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided in an embodiment of the present application Figure 4 ;

[0060] Fig.17 Schematic diagram of an interface for adaptively adjusting a target window displayed on a desktop provided in an embodiment of the present application Figure 5 ;

[0061] Fig.18 A schematic diagram of an interface for adaptively adjusting a target window displayed in the background provided by an embodiment of the present application;

[0062] Fig.19A schematic diagram of a window control method flow chart provided in an embodiment of the present application;

[0063] Fig. 20 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0065] 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. Thus, 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. The term "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.

[0066] In the embodiments of the present application, 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.

[0067] In some embodiments, the electronic device supports multi-window display. For example, 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.

[0068] For example, Figure 1As shown in (a), 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. In this way, the user can easily add the content queried by the browser to the memo. However, due to the limited display area, the floating window will block the memo content, and it is inconvenient for the user to view the blocked content. Then, 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 FIG. Figure 1 As shown in (b), the mobile phone shrinks the floating window 102 to a floating ball 103, so that the user can continue to edit the memo content. After that, if the user wants to continue to query through the browser, he needs to click the floating ball 103 again, so that the mobile phone can respond to the user operation and display the following Figure 1 The interface shown in (c) then displays the browser application through the floating window 102.

[0069] It can be seen that since the window size needs to be manually adjusted by the user, it is difficult for the user to operate across windows, which affects the user experience.

[0070] Therefore, in a window control method provided by an embodiment of the present application, 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.

[0071] Optionally, the window control method provided in the embodiment of the present application can be applied to the electronic device 100. Figure 2 As shown, the electronic device 100 may 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 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.

[0072] For example, Figure 3As shown, 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.

[0073] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, 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.

[0074] The processor 110 may include one or more processing units. For example, 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). Different processing units may be independent devices or integrated into one or more processors.

[0075] 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.

[0076] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, 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.

[0077] In some embodiments, 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.

[0078] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, 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.

[0079] 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. In some embodiments, 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.

[0080] 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.

[0081] It is understandable that 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. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0082] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the first electronic device through the power management module 141.

[0083] 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. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0084] 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.

[0085] 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. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0086] 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. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, 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.

[0087] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. 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, 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 it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0088] In some embodiments, 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, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).

[0089] 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.

[0090] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as 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), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0091] In some embodiments, 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.

[0092] 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. 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. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0093] 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, such as storing music, video and other files in the external memory card.

[0094] 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. Among them, 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. In addition, 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.

[0095] 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. In some embodiments, 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.

[0096] 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.

[0097] 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. In other embodiments, 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.

[0098] 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.

[0099] 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.

[0100] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0101] 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.

[0102] 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.

[0103] Figure 4 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0104] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0105] The application layer can include a series of application packages.

[0106] like Figure 4 As shown, the application package may include applications such as calendar, contacts, memo, camera, music, gallery, map, call, video, etc.

[0107] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0108] like Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0109] 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.

[0110] In some embodiments, 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.

[0111] 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.

[0112] 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. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0113] 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.).

[0114] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0115] 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.

[0116] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0117] 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.

[0118] 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.

[0119] The system library may 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.

[0120] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0121] 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.

[0122] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0123] A 2D graphics engine is a drawing engine for 2D drawings.

[0124] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0125] In some embodiments, the electronic device supports multi-window display. For example, 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. In some cases, 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.

[0126] In some examples, in response to a user's cross-window drag operation, the electronic device automatically reduces the size of the source window, so that the user can drag the selected content to the target window. For example, the source window covers the target window. After the source window is reduced, the covered area of ​​the target window is reduced, which is convenient for the user to determine the position of the target window where the selected content is to be inserted. Among them, the source window is the window where the starting position of the user's drag operation is detected, that is, the window where the selected content to be copied or cut is generated. The target window is the window where the user's drag operation ends, that is, the window where the selected content dragged by the user is to be inserted.

[0127] For example, in a floating window scenario, Figure 5As shown in (a), the electronic device displays the browser application through a floating window while displaying the memo application in full screen. The source window 11 is the browsing application window, and the target window 21 is the memo application window. The source window 11 covers the target window 21. If the user needs to insert the content displayed in the source window 11 (such as picture 101) into the target window 21 for display, the target window 21 may be blocked, which may affect the user's determination of the insertion position of the selected content in the target window 21. For example, Figure 5 As shown in (b), 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 along 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, Figure 5 As shown in (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 image 101 to be inserted in the target window 21.

[0128] In some examples, 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. For example, after the user selects the content in the source window and then clicks the target window, 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.

[0129] In some examples, 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.

[0130] In some examples, 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. Figure 5 In the scenario shown, the electronic device detects that the user drags the window toward the upper left of the display screen in the direction indicated by arrow 102 , and can reduce the size of the source window or move the display position of the source window in the opposite direction of the direction indicated by arrow 102 .

[0131] For example, Figure 6 As shown, taking the fourth quadrant as an example, the electronic device moves and / or shrinks the source window in the direction opposite to the user's dragging direction. For example, if the electronic device detects that the user drags the selected content from the fourth quadrant to the second quadrant, the source window can be moved and / or shrunk from the second quadrant to the fourth quadrant. Alternatively, the electronic device moves the source window in a clockwise direction (or counterclockwise direction) to avoid the user's dragging of the selected content to the target window. For example, Figure 5 As shown in (c), after the electronic device detects that the user has moved 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. For example, if it detects that the user has dragged the picture 101 from the third quadrant to the fourth quadrant, 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. Optionally, the center position of the four quadrants can be the center position of the electronic device display screen.

[0132] In this way, in response to the cross-window drag operation of the electronic device, the electronic device adaptively adjusts the size and / or position of the source window, thereby facilitating the user's operation in the target window.

[0133] In some embodiments, after the user moves the selected content in the source window to the target window, the user may need to continue operating the application displayed in the source window. In this case, the electronic device may automatically restore the display of the source window in response to the user's operation on the source window.

[0134] For example, Figure 5 As shown in (c), the electronic device displays the image 101 in the position indicated by the user in the target window by pasting in response to the user operation. Figure 7 As shown in (a), the electronic device detects that the user clicks on the blank display area 701 in the source window 11, or detects that the user clicks on the zoom control 702 displayed on the source window 11, and determines that the user indicates to operate the source window 11. Figure 7 As shown in (b), the electronic device may enlarge the source window 11 so that the user can continue to operate the source window. Optionally, the display position and size of the enlarged source window are the same as the display position and size of the source window before the electronic device adaptively reduces and / or moves the source window in response to the user's cross-window drag operation, that is, the electronic device restores the display of the source window.

[0135] As another example, in a split-screen scenario, the electronic device may also adaptively change the size of the source window in response to the user's cross-window drag operation. Figure 8 As shown in (a), the electronic device displays the memo application and the browser application in split screens, for example, the source window 11 displays the browser application, and the target window 21 displays the memo application. Figure 8 As shown in (b), 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, as shown in FIG. Figure 8As shown in (c), 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 can automatically enlarge as the source window 11 is reduced. In this way, the user can more conveniently determine the position of the image 801 to be inserted in the enlarged target window 21.

[0136] It should be understood that 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.

[0137] In some embodiments, 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.

[0138] For example, Fig. 9 As shown in (a), the electronic device displays the memo application in a floating window while displaying the browser application in full screen. The source window 11 is the browsing application window, and the target window 21 is the 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, it is difficult for the user to accurately determine the position of the target window where the selected content is to be inserted because the target window 21 is small. For example, Fig. 9 As shown in (b), 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. Fig. 9 As shown in (c), in response to a user operation, the electronic device enlarges the target window 21 to facilitate the user to determine the insertion position of the image 901 in the target window 21.

[0139] Optionally, the electronic device determines that the size of the target window is less than a preset threshold, and may determine that in response to the user's cross-window drag operation, the target window needs to be enlarged. Alternatively, the electronic device determines that when the user's cross-window drag operation is detected, the target window is in a non-maximum display state under the current window form, and may enlarge the target window. For example, Fig. 9 In the scenario shown, the target window 21 is in a small window state of a floating window. In response to the user's cross-window drag operation, the electronic device can enlarge the target window 21 and display the target window 21 as a large window state.

[0140] Optionally, when the electronic device 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. Optionally, 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. For example, 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.

[0141] In some embodiments, when the electronic device 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.

[0142] For example, Fig. 9 In the scenario shown, the electronic device detects that the user selects the picture 901 displayed in the source window 11 and performs a drag operation, determines that there is a target window 21 displayed in the direction of the user's drag, and determines that the user needs to drag the picture 901 across windows to the target window for display. Fig.10 As shown in (a), the electronic device can enlarge the target window 21 in the direction opposite to the user dragging direction. Fig.10 As shown in (b), it is convenient for the user to determine the insertion position of the image 901 in the target window 21. In addition, the distance that the user drags the selected content is reduced, thereby reducing the difficulty of user operation.

[0143] Optionally, 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.

[0144] In this way, in response to the cross-window drag operation of the electronic device, the electronic device adaptively adjusts the size and / or position of the target window, thereby facilitating the user's operation in the target window.

[0145] In some embodiments, after the user moves the selected content in the source window to the target window, the user may need to continue operating the application displayed in the source window. In this case, the electronic device may automatically restore the display of the source window in response to the user's operation on the source window.

[0146] For example, Fig.10 As shown in (b), 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. Fig.11As shown in (a), the electronic device detects the user clicking the source window 11, and determines that the user indicates to operate the source window 11. Fig.11 As shown in (b), 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. Optionally, 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.

[0147] The above introduces the changes of the source window or the target window in response to the user's cross-window drag operation. In some scenarios, the source window, the target window and other windows displayed by the electronic device can all change in response to the user's cross-window drag operation to facilitate the user's operation in the target window.

[0148] In some embodiments, 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.

[0149] For example, Fig.12 As shown in (a), 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. Fig.12 As shown in (b), the electronic device detects that the user selects the picture 1201 displayed in the browser application window 11, and drags it 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, if Fig.12 As shown in (c), the electronic device can adaptively adjust the multiple windows being displayed. For example, 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. In this way, the memo application window 21 that is enlarged and less blocked makes it easier for the user to determine the insertion position of the picture 1201 that moves across windows.

[0150] In this way, 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.

[0151] In some embodiments, 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. When the electronic device detects that the user selects the display content in one of the windows and drags it to another window, the window size can be adaptively adjusted.

[0152] In some examples, if the application corresponding to the target window is not started or is in the background, the electronic device can trigger the application corresponding to the target window to be displayed in the foreground. It should be understood that 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.

[0153] Optionally, after the electronic device pulls up the application corresponding to the target window, 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.

[0154] In some examples, 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. Optionally, 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.

[0155] For example, in response to the user's cross-window drag operation, 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. For another example, in response to the user's cross-window drag operation, 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. For another example, in response to the user's cross-window drag operation, 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. For another example, in response to the user's cross-window drag operation, 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.

[0156] For example, Fig.13 As shown in (a), the electronic device displays a floating window 11, a card 12, an icon 13 and a floating ball 14. Fig.13 As shown in (b), 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. Then, if Fig.13 As shown in (c), 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. Optionally, 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 memo application interface, affecting the user's adjustment of the insertion position of the picture 1301.

[0157] As another example, in Fig.13 As shown in (a), since the floating window 11 (i.e., the source window) may block other windows displayed on the desktop, it affects the user's determination of the target window of the cross-window drag operation. Fig.14 As shown in (a), 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 it in the blank area of ​​the desktop for more than a preset time, and can determine 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. Fig.14 As shown in (b), the electronic device shrinks the floating window 11, so that the user can continue to drag the image 1301 to determine the target window. Optionally, in the process of dragging the image 1301 to move on the desktop, the electronic device can also respond to the user operation, as shown in Figure 6 In the quadrant shown, the display position of the floating window 11 is moved clockwise to avoid the position touched by the user's finger (or stylus, etc.), so as to prevent the floating window 11 from blocking the target window to be selected by the user.

[0158] Afterwards, if Fig.15 As shown in (a), the electronic device detects that the user continues to drag the picture 1301 to the hot zone of the card 12, and can determine that the target window is the card 12. Then, if Fig.15 As shown in (b), the electronic device can start the memo application corresponding to card 12 and display the memo application in full screen. Optionally, the electronic device detects the control position where the user's finger finally stops on the card (such as the position of memo 3), 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 of the application corresponding to card 12 or the last displayed interface, etc. Fig.15As shown in (b), during the process of dragging the picture 1301 to move in the memo application interface, the electronic device may also respond to the user operation as follows: Figure 6 In the quadrant shown, the floating window 11 is moved clockwise (or counterclockwise) to avoid the position touched by the user's finger.

[0159] Or, if Fig.16 As shown in (a), the electronic device detects that the user continues to drag the picture 1301 to the hot zone of the icon 13, and can determine that the target window is the icon 13. Then, if Fig.16 As shown in (b), the electronic device can start the memo application corresponding to icon 13 and display the memo application in full screen. Optionally, when the electronic device is running the memo application in the background, if the cross-window drag operation of the user is detected, 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 user, the electronic device starts the memo application and displays the memo application homepage.

[0160] Or, if Fig.17 As shown in (a), 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, if Fig.17 As shown in (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.

[0161] In some examples, 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.

[0162] In this way, when displaying 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.

[0163] For example, the target window that the user needs to drag to move the display content may be displayed in the background. Fig.18 As shown in (a), 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 it in the blank area of ​​the desktop for more than a preset time, and can display the following Fig.18 The multitasking interface shown in (b) of FIG. 10 . Afterwards, the electronic device detects that the user continues to drag the image 1301 to the background card 1304 on the multitasking interface, and determines that the background card 1304 is the target window. Then, if Fig.18As shown in (c), the electronic device can start the memo application corresponding to the background card 1304 and display the memo application interface corresponding to the background card 1304 in full screen.

[0164] In this way, by triggering the display of the multitasking interface, 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.

[0165] For example, Fig.19 The following is a flow chart of a window control method provided in an embodiment of the present application. It should be noted that the method does not Fig.19 The specific order described below is a limitation, and 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:

[0166] S1901: The electronic device displays a first interface, where the first interface includes a first window and a second window.

[0167] In some embodiments, the electronic device supports multi-window display. For example, 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.

[0168] For example, in a floating window scenario, Figure 5 As shown in (a), the electronic device displays the browser application through a floating window during the process of displaying the memo application in full screen. The first window is, for example, a memo application window, and the second window is, for example, a browser application window.

[0169] As another example, in a split screen scenario, Figure 8 As shown in (a), the electronic device displays a memo application and a browser application in split screen, the first window is, for example, a browser application window, and the second window is, for example, a memo application window.

[0170] S1902: The electronic device detects a first operation of a user to move first content displayed in a first window to a second window.

[0171] 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. For example, the first operation is a cross-window drag operation.

[0172] The first window is, for example, a source window, and the second window is, for example, a target window.

[0173] Optionally, 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.

[0174] Optionally, 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.

[0175] For example, 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.

[0176] 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.

[0177] In some embodiments, in response to the first operation, the electronic device adjusts the size of the first window and / or the second window in a direction opposite to the drag direction of the first operation.

[0178] For example, in a floating window scenario, Figure 5 As shown in (b), 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 along 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, Figure 5 As shown in (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 image 101 to be inserted in the target window 21.

[0179] As another example, in a split screen scenario, Figure 8 As shown in (b), 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, as shown in FIG. Figure 8 As shown in (c), 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 can automatically enlarge as the source window 11 is reduced. In this way, the user can more conveniently determine the position of the image 801 to be inserted in the enlarged target window 21.

[0180] For example, Fig. 9As shown in (a), the electronic device displays the memo application in a floating window while displaying the browser application in full screen. Fig. 9 As shown in (b), 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. Fig. 9 As shown in (c), in response to a user operation, the electronic device enlarges the target window 21 to facilitate the user to determine the insertion position of the image 901 in the target window 21.

[0181] In this way, in response to the user's cross-window drag operation, the electronic device automatically reduces the size of the source window and automatically enlarges the size of the target window, thereby avoiding the source window from blocking the target window and making it easier for the user to determine the insertion position of the mobile content in the target window.

[0182] In other embodiments, in response to the first operation, the electronic device adjusts the display position of the first window and / or the second window in a direction opposite to the dragging direction of the first operation.

[0183] In some examples, the display position of the first window is moved in a clockwise direction to avoid movement of the first content in response to the first operation.

[0184] For example, Figure 6 As shown, taking the fourth quadrant as an example, the electronic device moves and / or shrinks the source window in the direction opposite to the user's dragging direction. For example, if the electronic device detects that the user drags the selected content from the fourth quadrant to the second quadrant, the source window can be moved and / or shrunk from the second quadrant to the fourth quadrant. Alternatively, the electronic device moves the source window in a clockwise (or counterclockwise) direction to avoid the user's dragging of the selected content to the target window. For example, Figure 5 As shown in (c), after the electronic device detects that the user has moved 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. For example, if it detects that the user has dragged the picture 101 from the third quadrant to the fourth quadrant, 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. Optionally, the center position of the four quadrants can be the center position of the electronic device display screen.

[0185] In other embodiments, 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.

[0186] For example, 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.

[0187] In some embodiments, 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.

[0188] Optionally, 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.

[0189] For example, Fig.13 As shown in (a), the electronic device displays a floating window 11, a card 12, an icon 13 and a floating ball 14. Fig.13 As shown in (b), 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. Then, if Fig.13 As shown in (c), 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.

[0190] In some embodiments, 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.

[0191] For example, Fig.12 As shown in (a), 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. Fig.12 As shown in (b), the electronic device detects that the user selects the picture 1201 displayed in the browser application window 11 and drags it toward the memo application window 21 in the direction indicated by the arrow 1202. 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, Fig.12As shown in (c), the electronic device can adaptively adjust the multiple windows being displayed. For example, 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. In this way, the memo application window 21 that is enlarged and less blocked makes it easier for the user to determine the insertion position of the picture 1201 that moves across windows.

[0192] In this way, 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.

[0193] In some embodiments, 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.

[0194] For example, Fig.16 As shown in (a), the electronic device detects the operation of the user dragging the picture 1301 displayed in the source window 11 to move to the hot zone range of the icon 13, and can determine that the target window is the icon 13. Then, if Fig.16 As shown in (b), the electronic device can start the memo application corresponding to icon 13 and display the memo application in full screen. Optionally, when the electronic device is running the memo application in the background, if the cross-window drag operation of the user is detected, 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 user, the electronic device starts the memo application and displays the memo application homepage.

[0195] In this way, when displaying 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.

[0196] In addition, if the application corresponding to the target window is not started, 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.

[0197] Combination of the above Figure 5-Figure 19 The window control method provided by the embodiment of the present application is described in detail. Fig. 20 The electronic device provided by the embodiments of the present application is described in detail.

[0198] In one possible design, Fig. 20 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 20As shown, 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.

[0199] Optionally, the display unit 2001 is used to support the electronic device 2000 to display interface content; and / or to support the electronic device 2000 to execute Fig.19 S1901 and S1903 in.

[0200] Optionally, the processing unit 2002 is used to support the electronic device 2000 to execute Fig.19 S1903 in.

[0201] Optionally, the transceiver unit 2003 is used to support the electronic device 2000 to execute Fig.19 S1902 in.

[0202] 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, and may be a transceiver or a transceiver module. 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.

[0203] Optionally, Fig. 20 The electronic device 2000 shown may also include a storage unit ( Fig. 20 (not shown), the storage unit stores a program or instruction. When the display unit 2001, the processing unit 2002 and the transceiver unit 2003 execute the program or instruction, Fig. 20 The electronic device 2000 shown can execute the window control method described in the above method embodiment.

[0204] Fig. 20 The technical effects of the electronic device 2000 shown can refer to the technical effects of the window control method described in the above method embodiment, which will not be repeated here.

[0205] In addition to being in the form of electronic device 2000, 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.

[0206] 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.

[0207] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0208] Optionally, 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. Exemplarily, 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.

[0209] Exemplarily, 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.

[0210] It should be understood that 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.

[0211] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the window control method in the above-mentioned embodiment.

[0212] The embodiment of the present application also provides a 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.

[0213] In addition, 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. When the computer program is executed by one or more processors, the device executes the window control method in each of the above method embodiments.

[0214] Among them, 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.

[0215] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can 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, 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 can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0216] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0217] In the several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The device embodiments described above are merely schematic. For example, 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. In addition, 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.

[0218] In addition, 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.

[0219] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program codes.

[0220] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A window control method, characterized in that: Applied to electronic equipment, the method comprises: Display a first interface, wherein the first interface includes a first window and a second window; detecting a first operation of a user moving first content displayed in the first window to the second window; In response to the first operation, the first window and / or the second window are resized, the first window after resizing is smaller than the first window before resizing, and the second window after resizing is larger than the second window before resizing.

2. The method according to claim 1, characterized in that The first interface further includes a third window, and the method further includes: 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.

3. The method according to claim 1 or 2, characterized in that: Before and after the resizing, the window type of the first window and the window type of the second window remain unchanged; or, Before and after the resizing, the window type of the first window and / or the window type of the second window changes.

4. The method according to claim 3, characterized in that 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.

5. The method according to any one of claims 1 to 4, characterized in that: The first application corresponding to the second window is not started or is running in the background, and the method further includes: In response to the first operation, the first application is started, and a recently closed page or a home page of the first application is displayed in the resized second window.

6. The method according to any one of claims 1 to 5, characterized in that: The first operation is a cross-window drag operation on the first content, and adjusting the size of the first window and / or the second window in response to the first operation includes: 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 drag direction of the first operation.

7. The method according to any one of claims 1 to 6, characterized in that: The first operation is a cross-window drag operation on the first content, and the method further includes: In response to the first operation, the display position of the first window and / or the second window is adjusted in a direction opposite to the drag direction of the first operation.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: The display position of the first window is moved in a clockwise direction to avoid movement of the first content in response to the first operation.

9. The method according to any one of claims 1 to 8, characterized in that: The first operation of detecting that the user moves the first content displayed in the first window to the second window includes: The first operation of the user moving the first content displayed in the first window to the hot zone range of the second window is detected, and the hot zone range includes a display area of ​​the second window and at least one of a display area within a preset range around the second window, a display area of ​​the second window, and a display area within a preset range around the second window.

10. An electronic device, characterized in that: include: 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 code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 9.

12. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 9.