An interaction method, an electronic device, and a computer-readable storage medium
By detecting the scrolling speed on the terminal device and automatically executing changes in window position or shape, the problem of inconvenient window movement on large-screen terminal devices is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202510632571.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2026-11-17
AI Technical Summary
As terminal device screen sizes increase, users need to drag application windows a considerable distance to move them to their target location, resulting in a poor user experience.
When a finger is slid a short distance across the first window and then released, if the sliding speed exceeds a preset speed, the electronic device determines the user's intention and automatically performs a change in the window's position or shape, or sends resource information to other devices.
It saves user operations, improves user experience, avoids windows pausing and accidentally touching near the dividing line, and improves the ease of moving windows.
Smart Images

Figure CN123114352A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to an interaction method, electronic device, and computer-readable storage medium. Background Technology
[0002] With the development of terminal technology, the screen sizes of terminal devices are getting larger and larger. Users can drag application windows to change their display position on the terminal device's screen. The position of the application window moves with the user's finger, and the display position of the application window can be determined based on the ending position of the drag operation, which can be the position where the user releases their finger. However, as the screen size of terminal devices increases, users need to drag the application window a relatively long distance to display it in the target position, resulting in a poor user experience. Summary of the Invention
[0003] This application provides an interaction method, an electronic device, and a computer-readable storage medium. A user can swipe a short distance on a first window and release their finger. If the swipe speed during a first time period before the finger leaves the first window is greater than a preset speed, or if the user performs an air swipe gesture and the swipe speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to perform a preset operation on the first window. This saves user time and improves the user experience.
[0004] In a first aspect, this application provides an interaction method. The method includes: a first electronic device displaying a first window; the first electronic device receiving a first operation gesture, the first operation gesture including a sliding operation of a finger on the first window or a sliding operation in the air; if the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed or the sliding speed of the air operation is greater than a second preset speed, the first electronic device performs a preset operation on the first window.
[0005] The first electronic device performs a preset operation on the first window, including: the first electronic device changes the display position of the first window in the first electronic device, or the first electronic device changes the display form of the first window, or the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device, the resource information corresponding to the first window is used by the second electronic device to display the second window or the resource information corresponding to the first window is used by the second electronic device to play the first media content, and the content of the second window is the same as or partially the same as the content of the first window.
[0006] Optionally, the sliding distance of the finger on the first window is less than the first distance.
[0007] The swiping speed during the first time period before the finger leaves the first window can refer to the instantaneous swiping speed when the finger leaves the first window, or it can be described as the swiping speed during the last time period before the swiping operation ends. The first time period can refer to a short period of time before the finger leaves the first window or the last period of time before the swiping operation ends. It is necessary to ensure that the instantaneous swiping speed when the finger leaves the first window is greater than a first preset speed, or the instantaneous swiping speed when the swiping operation ends is greater than a first preset speed.
[0008] The sliding speed of the air swipe operation includes the maximum sliding speed or the average sliding speed of the air swipe operation.
[0009] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, it indicates an intention to perform a preset operation on the first window. The first electronic device can then determine that it is performing the preset operation on the first window, saving user operations and improving the user experience.
[0010] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first display area and a second display area, which are different from each other; the first electronic device displays a first window, specifically including: the first window is displayed in the first display area of the first electronic device; the first electronic device changes the display position of the first window in the first electronic device, specifically including: the first electronic device displays the first window on the second display area.
[0011] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed in the second display area. The user does not need to continuously drag the first window to the target position in the second display area. On the one hand, this saves user operations; on the other hand, the user does not need to continuously drag the first window beyond the dividing line between the first and second display areas, thus avoiding the problem of the first window stopping near the dividing line and changing its shape. For example, it avoids the problem of the first window stopping near the dividing line and enlarging its size, reducing accidental touches and improving the user experience.
[0012] In some embodiments, the first display area and the second display area may be two display areas displayed in a split-screen manner on the first display screen of the first electronic device. For example, refer to... Figures 4A-4E , Figure 5 Description in the embodiments.
[0013] In some embodiments, the first display area and the second display area may be multiple display areas divided by the first electronic device on the first display screen. For example, refer to... Figures 6A-6E , Figure 7 Description in the embodiments.
[0014] In some embodiments, the first electronic device includes a first display screen and a second display screen. The first display area may be the display area of the first display screen, and the second display area may be the display area of the second display screen. For example, refer to... Figures 10A-10E , Figure 11 Description in the embodiments.
[0015] In some embodiments, the first electronic device may receive and respond to a first operation gesture on the first window, and move the first window arbitrarily within the first display screen.
[0016] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is fixed.
[0017] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or the display position of the first window on the second display area is determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.
[0018] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area cannot exceed a preset position.
[0019] For the method of determining the display position of the first window on the second display area, please refer to... Figure 5 The description of S507 in the embodiments will not be repeated here.
[0020] In conjunction with the first aspect, in one possible implementation, if the display position of the first window on the second display area exceeds a preset position, the first electronic device can change the display form of the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.
[0021] In conjunction with the first aspect, in one possible implementation, the first electronic device is connected to a second electronic device. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can send the resource information corresponding to the first window to the second electronic device. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.
[0022] Optionally, the first electronic device can also be connected to a second electronic device and a third electronic device simultaneously. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can determine whether to send the resource information corresponding to the first window to the second or third electronic device based on the sliding direction of the finger on the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.
[0023] In conjunction with the first aspect, in one possible implementation, the sliding operation of a finger on the first window includes the sliding operation of three fingers on the first window.
[0024] In conjunction with the first aspect, in one possible implementation, the method further includes, before the first electronic device displays the first window on the second display area, the first electronic device displaying the first window at one or more transition positions.
[0025] In one possible implementation, one or more transition positions are determined based on the display position of the first window in the first display area and the display position of the first window in the second display area.
[0026] By implementing this method, the first window can be moved directly from its initial position in the first display area to its target position in the second display area, avoiding a sudden change in the screen, thereby improving the user's visual experience.
[0027] Optionally, the first electronic device may also change the style of the first window, such as size, shape, size, transparency, or one or more styles, and display the style-changed first window at one or more transition positions.
[0028] Optionally, the styles of the first windows displayed at one or more transition positions can be the same or different.
[0029] In conjunction with the first aspect, in one possible implementation, the first electronic device displays a first window, specifically including: the first electronic device displays the first window in a first display form; the first electronic device changes the display form of the first window, specifically including: the first electronic device displays the first window in a second display form, the second display form being different from the first display form.
[0030] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to change the display mode of the first window, and the first electronic device can switch the display mode of the first window from the first display mode to the second display mode.
[0031] In conjunction with the first aspect, in one possible implementation, when the first window includes multiple different display forms, the electronic device can determine the target display form based on the sliding direction of a finger on the first window.
[0032] For example, the first electronic device changes the display form of the first window, specifically including: when the sliding direction of the finger on the first window is a first direction, the first electronic device displays the first window in a second display form.
[0033] For example, when the finger slides on the first window in the second direction, the first electronic device displays the first window in a third display form. The second direction is different from the first direction, and the third display form is different from the first display form.
[0034] It should be noted that it is not limited to two directions, but may include other directions and other display forms, which this application does not limit.
[0035] In conjunction with the first aspect, in one possible implementation, the first electronic device displays the first window in a second display form, including any of the following: the first electronic device enlarges the size of the first window, the first electronic device shrinks the size of the first window, or the first electronic device runs or closes the first application corresponding to the first window in the background.
[0036] For example, you can refer to Figures 8A-8F , Figure 9 Description in the embodiments.
[0037] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a foldable screen that forms at least two displays, the at least two displays including a first display and a second display, the first display area being the display area of the first display and the second display area being the display area of the second display.
[0038] For example, the first display screen may be Figure 10A As shown in the diagram, screen A, the second display screen can be... Figure 10A Screen B is shown.
[0039] In conjunction with the first aspect, in one possible implementation, the angle between the first display screen and the second display screen is greater than a first value and less than a second value. For example, the angle between the first display screen and the second display screen could be 120 degrees, meaning the first electronic device is in a folded state. This method can be applied to non-foldable devices.
[0040] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first display screen, and both a first display area and a second display area are display areas of the first display screen. This method can also be applied to non-foldable devices.
[0041] In conjunction with the first aspect, in one possible implementation, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device. Specifically, when the sliding direction of the finger on the first window is a first direction, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device.
[0042] In one possible implementation, the method further includes: when the sliding direction of the finger on the first window is the second direction, the first electronic device sends the resource information corresponding to the first window to a third electronic device that has established a communication connection with the first electronic device. The second direction is different from the first direction, and the third electronic device is different from the second electronic device.
[0043] It should be noted that the first electronic device is not limited to two electronic devices; it can also connect to other electronic devices. The first electronic device can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction applied to the first window. Different sliding directions correspond to different electronic devices.
[0044] By implementing this method, when a first electronic device is connected to multiple electronic devices, the electronic devices can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction of the finger on the first window, saving user operations and improving the user experience of sharing data between devices.
[0045] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a laptop computer.
[0046] In a second aspect, this application provides an electronic device, namely a first electronic device, which includes: one or more processors and one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they execute an interaction method provided in any possible implementation of the first aspect above.
[0047] Thirdly, this application provides a computer-readable storage medium including instructions that, when executed by a processor, implement an interaction method provided in any possible implementation of the first aspect above.
[0048] Fourthly, this application provides a computer program product containing instructions, including a computer program that, when executed by a processor, implements an interaction method provided in any possible implementation of the first aspect above.
[0049] Fifthly, this application provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit. The processing circuit is used to run the code instructions to execute an interaction method provided in any possible implementation of the first aspect above.
[0050] For a description of the beneficial effects in aspects two through five, please refer to the description of the beneficial effects in aspect one; this application will not repeat them here. Attached Figure Description
[0051] Figures 1A-1J A schematic diagram of the display screen configuration of the first electronic device is shown;
[0052] Figure 2 A schematic diagram of the hardware structure of the first electronic device is shown;
[0053] Figure 3 A schematic diagram of the software structure of the first electronic device is shown;
[0054] Figures 4A-4E A schematic diagram is shown showing a set of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed in a second display area;
[0055] Figure 5 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed in a second display area is shown.
[0056] Figures 6A-6EA schematic diagram is shown showing a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display area of multiple display areas;
[0057] Figure 7 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed in a second display area of multiple display areas is shown.
[0058] Figures 8A-8F A schematic diagram is shown showing a set of electronic devices 100 receiving a first operation gesture on a first window and changing the display mode of the first window;
[0059] Figure 9 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture toward a first window and change the display state of the first window is shown.
[0060] Figures 10A-10E A schematic diagram is shown of a set of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display screen.
[0061] Figure 11 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed on a second display screen is shown.
[0062] Figures 12A-12C A schematic diagram is shown of a set of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed within the electronic device 200.
[0063] Figure 13 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed within the electronic device 200;
[0064] Figure 14 A flowchart of an interactive method is shown. Detailed Implementation
[0065] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0066] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0067] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.
[0068] This application provides an interaction method. In some embodiments, this method can be applied to a first electronic device. The first electronic device displays a first window. The electronic device can receive a first operation gesture on the first window, the first operation gesture including selecting the first window with a finger, sliding a finger on the first window, and removing a finger from the first window. If the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, the first electronic device can perform a preset operation on the first window, such as changing the display position of the first window, or changing the display form of the first window, or sending resource information corresponding to the first window to a second electronic device that has established a communication connection with the first electronic device. The resource information corresponding to the first window is used by the second electronic device to display a second window, or the resource information corresponding to the first window is used by the second electronic device to play first media content. The content of the second window is the same as or partially the same as the content of the first window.
[0069] In some embodiments, the first operation gesture may also be described as including a sliding operation of a finger on the first window.
[0070] In some embodiments, the sliding speed during the first time period before the finger leaves the first window can refer to the instantaneous sliding speed at which the finger leaves the first window, or it can be described as the sliding speed during the last time period before the end of the sliding operation. The first time period can refer to a short period of time before the finger leaves the first window or the last period of time before the end of the sliding operation, such as 200ms or 500ms. It is necessary to ensure that the instantaneous sliding speed when the finger leaves the first window is greater than a first preset speed or the instantaneous sliding speed at the end of the sliding operation is greater than a first preset speed.
[0071] In other embodiments, the sliding speed of the finger during the first time period before it leaves the first window can also refer to the average sliding speed of the finger on the first window.
[0072] This method allows users to swipe a short distance on a first window. If the swiping speed is greater than a preset speed during the first time interval before the finger leaves the first window, the first electronic device can determine to perform a preset operation on the first window, saving user operations and improving the user experience.
[0073] It should be noted that the first operation gesture is not limited to selecting the first window with a finger, swiping on the first window with a finger, or lifting the finger from the first window; the first operation gesture can also be an air swipe gesture. For example, the first electronic device can determine whether the swiping speed of the air swipe gesture is greater than a second preset speed. If it is greater than the second preset speed, the first electronic device can perform a preset operation on the first window, such as changing its display position, changing its display mode, or sending the resource information of the first window to a second electronic device. When the first operation gesture is an air swipe gesture, the first window can be the focused window, that is, the window most recently interacted with by the user.
[0074] In some embodiments, the sliding speed of the air swipe gesture is greater than the second preset speed, which may refer to the maximum sliding speed of the air swipe gesture being greater than the second preset speed, or the average sliding speed of the air swipe gesture being greater than the second preset speed.
[0075] Not limited to the first operation gesture, the first window can display one or more operation options, and the target position of the second display area is different for different operation options. In this way, the first electronic device can also receive the user's operation on one or more operation options and display the first window at the target position of the second display area. This application embodiment uses the operation gesture of selecting the first window with a finger, the sliding operation of the finger on the first window, and the operation of leaving the first window as examples for illustration.
[0076] It should be noted that the determination of a user's intention to perform a preset operation on the first window is not limited to the sliding speed being greater than a preset value. It can also be based on the sliding acceleration being greater than a preset value, or on both the sliding speed being greater than a preset value and the sliding acceleration being greater than a preset value. This application embodiment only uses the example of the electronic device 100 determining that the user's intention to perform a preset operation on the first window is based on the sliding speed being greater than a preset value for illustration.
[0077] This application uses the following examples to illustrate the first operation gesture: selecting a first window with a finger, sliding a finger on the first window, and leaving the first window.
[0078] First, let's introduce the form of the display screen of the first electronic device.
[0079] The display screen of the first electronic device can include flat screens and foldable screens. Foldable screens can be further divided into bi-fold screens and multi-fold screens. Bi-fold screens can be divided into inward-folding screens, outward-folding screens, etc. Multi-fold screens can be tri-fold screens, etc.
[0080] Figures 1A-1J A schematic diagram of the display screen configuration of the first electronic device is shown.
[0081] Figures 1A-1C A schematic diagram of the inward-folding screen display is shown.
[0082] The display forms of inward-folding screens can be divided into folded state, intermediate state, and unfolded state.
[0083] Figure 1A A schematic diagram of the display form when the inward-folding screen is in the unfolded state is shown.
[0084] Figure 1A (a) illustrates an exemplary front view of the inward-folding screen in its unfolded state. When the inward-folding screen is in its unfolded state, the displayable screens of the folding screen include screen A, screen B, and screen C. Screen A and screen B can be a single, continuous display or two separate displays. For example, when the inward-folding screen is in its unfolded state, the angle α between screen A and screen B is greater than or equal to a first value and less than or equal to a second value. For example, the first value can be 160 degrees, and the second value can be 180 degrees. For instance, when the inward-folding screen is in its unfolded state, the angle α between screen A and screen B can be 180 degrees.
[0085] Figure 1A (b) illustrates an example view of the back of the inward-folding screen in its folded state. When the inward-folding screen is in its folded state, the display also includes a C screen. The C screen is a display completely independent of the A and B screens.
[0086] Figure 1B A schematic diagram of the display form when the inward-folding screen is in the intermediate state is shown.
[0087] The intermediate state refers to the folding shape where the inward-folding screen can be bent at a certain angle towards the facing surfaces of screens A and B. When the inward-folding screen is in this intermediate state, the displayable screens include screens A, B, and C. In this intermediate state, the angle α between screens A and B is greater than or equal to a third value and less than or equal to a first value. For example, the first value could be 160 degrees, and the third value could be 90 degrees. Alternatively, when the inward-folding screen is in its folded state, the angle α between screens A and B could be 120 degrees.
[0088] Optional, Figure 1B Only one display mode of the inward-folding screen in the intermediate state is shown. The display mode of the inward-folding screen in the intermediate state is different when the included angle α between screen A and screen B is different.
[0089] Figure 1C A schematic diagram of the display form when the inward-folding screen is in the folded state is shown.
[0090] The inward-folding screen can continue to bend in the direction where screens A and B are facing each other, until the inward-folding screen is in a folded state.
[0091] like Figure 1C As shown, when the inward-folding screen is in the folded state, the only displayable screen includes screen C; screens A and B are hidden and invisible. The angle α between screens A and B is greater than or equal to 0 degrees and less than a third value. For example, the third value can be 90 degrees. For instance, when the inward-folding screen is in the folded state, the angle α between screens A and B can be 0 degrees.
[0092] Figures 1D-1E A schematic diagram of the outward-folding screen display form is shown.
[0093] Similar to inward-folding screens, outward-folding screens can also be divided into three display forms: unfolded, intermediate, and folded.
[0094] For a front view of the outward-folding screen in its unfolded state, please refer to [the image / reference]. Figure 1A The description in (a) is as follows. An outward-folding screen can include screen A and screen B, but the display screen of an outward-folding screen does not include screen C.
[0095] Figure 1D A schematic diagram of the display form when the outward-folding screen is in the intermediate state is shown.
[0096] The intermediate state refers to the folding shape where the outward-folding screen can bend in a direction opposite to screens A and B, forming a folded shape with a certain angle. In other words, the folding directions of the outward-folding screen and the inward-folding screen are opposite. When the outward-folding screen is in the intermediate state, the displayable screens include screens A and B, and the angle α between screens A and B is greater than or equal to a third value and less than or equal to a first value. For example, the third value could be 90 degrees, and the first value could be 160 degrees. For instance, when the outward-folding screen is in the intermediate state, the angle α between screens A and B could be 120 degrees.
[0097] Optional, Figure 1D Only one display mode is shown when the outward-folding screen is in the intermediate state. The angle α between screen A and screen B is different, and the display mode when the inward-folding screen is in the intermediate state is also different.
[0098] Figure 1E A schematic diagram of the display form when the outward-folding screen is in the folded state is shown.
[0099] like Figure 1E As shown, when the outward-folding screen is in the folded state, the displayable screens can be screen A and screen B. The angle α between screen A and screen B is greater than or equal to 0 degrees and less than or equal to a third value, for example, the third value can be 90 degrees. For example, when the outward-folding screen is in the folded state, the angle α between screen A and screen B can be 0 degrees.
[0100] Optional, Figures 1A-1E The inward and outward folding screens shown are illustrated using left-right folding as an example. In some embodiments, the inward and outward folding screens can also be folded vertically, and this application does not limit this.
[0101] Figures 1F-1G A schematic diagram of the tri-fold screen display form is shown.
[0102] Tri-fold screens can be divided into three display forms: unfolded, intermediate, and folded.
[0103] Figure 1F A schematic diagram of the display form of the tri-fold screen in its unfolded state is shown.
[0104] Figure 1F (a) exemplarily shows a front view of the tri-fold screen in its unfolded state. When unfolded, the tri-fold screen includes screens A, B, and C. The tri-fold screen also includes hinges D and E for rotating screens A, B, and C in the electronic device 100. Screens A and B can rotate along hinge D in opposite or facing directions until the back of screen A is flush with the back of screen B, or until the display surface of screen A is flush with the display surface of screen B. With screen C rotating at a constant angle, when screen B rotates along hinge D, screen B can cause screen C to rotate by the same angle along hinge D.
[0105] Screens C and B can rotate along hinge E in opposite directions or facing directions until the back of screen C is flush with the back of screen B, or until the display surface of screen C is flush with the display surface of screen B. With screen A rotating at a constant angle, when screen B rotates along hinge E, screen B can cause screen A to rotate by the same angle along hinge E.
[0106] In some embodiments, the angle between screen A and screen B can be called α, and the angle between screen B and screen C can be called β.
[0107] When the tri-fold screen is in the unfolded state, the display surfaces of screen A, screen B, and screen C of the electronic device 100 can all be on the same plane. The angle α between the display surfaces of screen A and screen B can be close to 180°, and the angle β between the display surfaces of screen B and screen C can be close to 180°.
[0108] exist Figure 1F In the front view shown in (a), the display screens of the electronic device 100 can be screen A, screen B, and screen C from left to right.
[0109] Figure 1F (b) in the example shows the rear view of the tri-fold screen in the unfolded state.
[0110] When the tri-fold screen is unfolded, the backs of screen A, screen B, and screen C of electronic device 100 can all be on the same plane. The angle between the back of screen A and the back of screen B can be close to 180°, and the angle between the back of screen B and the back of screen C can also be close to 180°.
[0111] Figure 1G A schematic diagram of the display form of the tri-fold screen in its intermediate state is shown.
[0112] Figure 1G The image shown is a front view of the tri-fold screen in its intermediate state. Figure 1G As shown, when the tri-fold screen is in its intermediate state, the electronic device 100 displays screen A, screen B, and screen C. The angle α between screen A and screen B can be between 180° and 360°. The angle β between screen B and screen C can be between 0° and 180°.
[0113] Optionally, the A, B, and C screens of the tri-fold screen can be a single, complete display screen. The A and B screens can also be a single, complete display screen, as can the B and C screens.
[0114] Figure 1H-Figure 1I A schematic diagram of the display form of the vertically folding screen is shown.
[0115] The display forms of vertically folding screens can include, but are not limited to, unfolded, intermediate, and folded states.
[0116] Figure 1H A schematic diagram is shown when the vertically folding screen is in the unfolded state.
[0117] The vertically folding screen provided in this application can be either an outward-folding or inward-folding screen device. An outward-folding screen device folds the electronic device by folding it outwards, while an inward-folding screen device folds the electronic device by folding it inwards.
[0118] This application uses an inward-folding screen device as an example for illustration.
[0119] Figure 1H The image shows a front view of the vertically folding screen in its unfolded state. Figure 1H As shown, the vertically folding screen includes screen A, screen B, and folding line 101.
[0120] Optionally, screen A and screen B can be a single, complete display.
[0121] In the unfolded state, screens A and B face the user, and the angle between them is close to 180°, meaning that the plane containing screen A and the plane containing screen B are on the same horizontal plane. In the unfolded state, the electronic device 100 can display images on both screens A and B simultaneously. This allows the user to view images from both screens at the same time.
[0122] Figure 1I A schematic diagram is shown when the vertically folded screen is in the intermediate state.
[0123] like Figure 1I As shown, in the intermediate state, there is a certain angle between the plane where screen A is located and the plane where screen B is located, and this angle is greater than 0° and less than 180°.
[0124] Figure 1J A schematic diagram of a candybar screen display is shown.
[0125] like Figure 1J As shown, a candybar screen consists of a single, non-foldable display.
[0126] It should be noted that the above Figures 1A-1J The schematic diagrams of several display screen forms are only shown as examples. The display screen of electronic device 100 may also include other display forms, and this application does not limit them.
[0127] See below. Figure 2 The structure of the first electronic device to which the method provided in the embodiments of this application is applicable will be described.
[0128] The first electronic device can be electronic device 100, and the structure of the second electronic device can refer to the structure of the first electronic device. The first electronic device can be, for example, a mobile phone, tablet computer, wearable device with wireless communication capabilities (e.g., smartwatch, smart glasses), in-vehicle terminal device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart home device (e.g., smart TV, smart speaker), smart robot, workshop equipment, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, or flying equipment (e.g., smart robot, drone, airplane), etc. Wearable devices are portable devices that users can wear directly on their bodies or integrate into their clothing or accessories. This application does not limit the type of the first electronic device.
[0129] like Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a 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 speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display screen 194, and a SIM card interface 195, etc.
[0130] The sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a touch sensor 180K, etc. The sensor module 180 may also include a temperature sensor, a pressure sensor, a proximity sensor, a fingerprint sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.
[0131] Understandable, Figure 2The electronic device 100 shown is merely an example and does not constitute a limitation on the electronic device. The electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 2 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0132] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0133] The processor 110 may also include a memory for storing instructions and data.
[0134] The execution of the display method provided in this application embodiment can be controlled by the processor 110 or by calling other components. For example, it can call the processing program of this application embodiment stored in the internal memory 121, or call the processing program of this application embodiment stored in a third-party device through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when integrating a CPU and a GPU, the CPU and GPU can cooperate to execute the display method provided in this application embodiment. For example, some algorithms in the display method can be executed by the CPU, and other algorithms can be executed by the GPU to achieve faster processing efficiency.
[0135] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. Display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 194 can display various interfaces from the embodiments of this application.
[0136] In this embodiment, the display screen 194 may include one or more display screens. The single display screen may be a flexible display screen or a rigid display screen. The multiple display screens may be multiple rigid display screens or multiple flexible display screens, or may include at least one flexible display screen and at least one rigid display screen.
[0137] The electronic device 100 may also include a camera (a front-facing camera or a rear-facing camera, or a camera that can function as both a front-facing and a rear-facing camera), which is used to capture still images or videos.
[0138] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.
[0139] The internal memory 121 may also store one or more computer programs corresponding to the algorithm of this application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.
[0140] Of course, the algorithm code of the embodiment of this application can also be stored in external memory. In this case, the processor 110 can run the algorithm code of the embodiment of this application stored in external memory through the external memory interface 120.
[0141] A touch sensor, also known as a "touch panel". The touch sensor can be set on the display screen 194, and the touch sensor and the display screen 194 together form a touch display screen, also known as a "touch screen".
[0142] For example, the display screen 194 of the electronic device 100 can display a main interface, which includes icons for multiple applications (such as a gallery application). For instance, a user can tap the gallery application icon on the main interface using a touch sensor, triggering the processor 110 to launch the gallery application, and the display screen 194 will then show the gallery application's interface.
[0143] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0144] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
[0145] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0146] In addition, the electronic device 100 can implement audio functions such as music playback and recording through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, and an application processor.
[0147] In some embodiments, the electronic device 100 may further include buttons, motors, indicators, etc. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100. The electronic device 100 can utilize a motor to generate vibration alerts (such as vibration alerts for incoming calls). The indicators in the electronic device 100 may be indicator lights, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.
[0148] The SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be inserted into or removed from the electronic device 100 to achieve contact and separation with the electronic device 100.
[0149] It should be understood that, in practical applications, electronic device 100 may include more than Figure 2 The number of more or fewer components shown is not limited in the embodiments of this application. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0150] Please refer to Figure 3 , Figure 3 An exemplary software structure block diagram of an electronic device 100 is shown.
[0151] The electronic device provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in industry, such as operating systems developed based on OpenHarmony, like HarmonyOS; or other operating systems such as Android™, iOS mobile operating systems; it can also be various open-source operating systems or their derivatives, such as Linux OS, and other embedded operating systems; or it can be a future new operating system, such as an AI operating system based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control the operation of electronic devices, utilize and run hardware and software resources, and provide public services to organize user interaction. In electronic devices, the operating system connects downwards to the physical devices at the hardware layer and provides a runtime environment for application software upwards.
[0152] An operating system typically includes a kernel layer, a middleware layer, and an application layer. The application layer includes applications, which can include system applications and third-party applications. The middleware layer includes a suite of software providing various services to application developers, or frameworks providing services such as databases, multimedia, and graphics, or capabilities such as distributed scheduling and system scaling. For example, the middleware layer may include a framework layer and / or a system service layer. The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system service layer includes the system's core capabilities, providing services to applications through the framework layer. The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports functions such as memory management and system process management.
[0153] The electronic devices we use in our daily lives come in various types and forms, and are applied in a wide range of scenarios. Therefore, based on the different forms and functions of electronic devices, different application scenarios, and different user needs, the operating systems used in these devices may also differ. The basic functions implemented by the electronic device provided in this application can be implemented using a general-purpose operating system or a dedicated operating system. To more clearly illustrate the implementation of the embodiments of this application under a specific operating system, the architecture of HarmonyOS is shown below. Those skilled in the art can deduce the implementation of the embodiments of this application under other specific operating systems, such as AAndroid™.
[0154] like Figure 3 As shown, the software architecture of an electronic device can be divided into several layers. In some embodiments, from bottom to top, these layers are: kernel layer, system service layer, framework layer, and application layer. Layers communicate with each other through software interfaces. System functions can be tailored, added, or combined at the subsystem granularity in different device deployment scenarios, and each subsystem can also be tailored, added, or combined at the functional granularity.
[0155] The Kernel Abstraction Layer (KAL) provides basic kernel capabilities to upper layers by shielding the differences between multiple kernels, including but not limited to process / thread management, memory management, file system, network management, and peripheral device management.
[0156] Kernel Subsystem: Supports the selection of a suitable OS kernel for different resource-constrained devices, including but not limited to Linux kernel, HarmonyOS kernel, LiteOS (Lite Operating System), etc.
[0157] Driver Subsystem: The driver framework is the foundation for the open system hardware ecosystem, providing unified peripheral access capabilities and a framework for driver development and management. The driver framework includes: display drivers, camera drivers, audio drivers, Bluetooth drivers, sensor drivers, etc.
[0158] The system service layer comprises the core capabilities of the system, providing services to applications through the framework layer. This layer includes, but is not limited to, the following subsystems:
[0159] The system's basic capability subsystem set provides fundamental capabilities for the operation, scheduling, and migration of distributed applications across multiple devices. This set may include distributed soft bus, distributed data management, distributed task scheduling, and Ark multi-language runtime; it may also include multi-modal input subsystem, graphics subsystem, security subsystem, and AI sub-business system.
[0160] The multi-mode input subsystem may include a swipe control module, which monitors whether a first operation gesture has ended. The first operation gesture includes selecting a first window, swiping a finger on the first window, and removing a finger from the first window. If the swipe control module determines that the first operation gesture has ended, i.e., that the finger has left the first window, it can determine whether the swiping speed during a first time period before the finger leaves the first window is greater than a first preset speed. If the swipe control module determines that the swiping speed during the first time period before the finger leaves the first window is greater than the first preset speed, it can determine the target position of the first window based on the swiping direction of the finger on the first window and / or the swiping speed during the first time period before the finger leaves the first window. The electronic device 100 can display the first window based on the target position of the first window.
[0161] The graphics subsystem may include a graphics rendering module. The electronic device 100 can display the first window based on a target location, including: the graphics rendering module rendering the first window, the GPU compositing the first window based on the rendered first window, and displaying the first window at the target location.
[0162] Optionally, the multi-modal input subsystem can also determine one or more transition positions. The graphics rendering module can render the first window, and the GPU can composite the first window based on the rendered first window, displaying the first window at one or more transition positions. Optionally, the style of the first window displayed at different transition positions can be different. The window style can include, but is not limited to, size, shape, transparency, color, etc.
[0163] Basic software service subsystem set: provides public and general software services; the basic software service subsystem set may include event notification subsystem, telephone service subsystem, multimedia subsystem, etc.
[0164] Enhanced software service subsystem suite: Provides differentiated enhanced software services for different devices; the enhanced software service subsystem suite may include smart screen proprietary business subsystem, wearable proprietary business subsystem, IoT proprietary business subsystem, etc.
[0165] Hardware service subsystem set: Provides hardware services; the hardware service subsystem set may include location service subsystem, user IAM (Identity and Access Management) subsystem, wearable proprietary hardware service subsystem, biometric identification, IoT proprietary hardware service subsystem, etc.
[0166] Distributed task scheduling enables distributed service management (discovery, synchronization, registration, and invocation), supporting remote startup, remote invocation, remote connection, and migration of applications across devices.
[0167] Distributed data management enables data synchronization, data storage, data sharing, and data access across all scenarios and devices.
[0168] The distributed soft bus provides communication-related capabilities for seamless interconnection between multiple devices, including: WLAN service capabilities, Bluetooth service capabilities, soft bus, inter-process communication (IPC), and StarFlash communication capabilities.
[0169] Ark Multilingual Runtime is a unified compilation runtime platform designed to support the joint compilation and execution of multiple programming languages and multiple chip platforms.
[0170] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes: the ArkUI framework (which provides a complete infrastructure for UI development of system applications, including UI functions such as components, layouts, animations, and interactive events, as well as a real-time interface preview tool), the user application framework, and the Ability framework (an Ability is a lightweight application; the Ability framework schedules and manages the operation and lifecycle of Abilities). Different devices may have different operating systems, and the APIs they support may also differ.
[0171] The HarmonyOS API is a series of open capabilities provided to support HarmonyOS application development. The HarmonyOS API can be set at the framework layer or independently of the framework layer. The HarmonyOS API includes the Audio API (audio service), Push API (push service), and Account API (account service), among others.
[0172] Applications can include system apps and extended / third-party apps. System apps can include the desktop, control bar, settings, contacts, phone, camera, gallery, etc., while extended / third-party apps can include, but are not limited to, social apps, travel apps, etc.
[0173] The following section provides a detailed description of an interactive method provided in this application, in conjunction with the accompanying drawings and flowchart.
[0174] Scenario 1: Single-display application scenario
[0175] In a single-display application scenario, the electronic device 100 includes a first display screen, on which a first window is displayed.
[0176] Optionally, the first display screen can be a rigid display screen or a flexible display screen. If the first display screen is a flexible display screen, then the first display screen can be... Figures 1A-1C The inward-folding screen shown can also be Figures 1D-1E The outward-folding screen shown can also be Figures 1F-1G The tri-fold screen shown can also be Figure 1H-Figure 1I The image shows a vertically folding screen. When the first display screen is a flexible screen, the first display screen can be... Figure 1J The first display screen is shown as a flat panel. It can also be other types of screens, such as extended displays, but this application does not limit the form of the first display screen.
[0177] Example 1: The first display screen is split-screen, with a first display area and a second display area. A first window is displayed in the first display area. The electronic device 100 can receive and respond to a first operation gesture targeting the first window, moving the first window to be displayed in the second display area.
[0178] Figures 4A-4E A schematic diagram is shown showing a set of electronic devices 100 receiving a first operation gesture for a first window, moving the first window to be displayed in a second display area.
[0179] like Figure 4A As shown, the electronic device 100 displays a split screen with a display area 410 and a display area 420, separated by a dividing line 430. Display area 410 displays a music playback interface provided by a music application, while display area 420 displays a note-taking interface provided by a memo application. Display area 410 also displays a window 440, which displays a chat interface provided by an instant messaging application. The initial position of window 440 within display area 410 can be... Figure 4A The display position of window 440 shown.
[0180] Optionally, display areas 410 and 420 may also display other content.
[0181] The display position of window 440 can refer to the position of the center point of window 440, the position of the center point of the top edge of window 440, the position of the center point of the bottom edge of window 440, or the position of any vertex of window 440. This application does not limit the definition of the display position of window 440. In this embodiment, the display position of window 440 refers to the position of the center point of window 440 as an example for illustration.
[0182] Optionally, window 440 can be a floating window or a free window. When window 440 is a floating window, it is always displayed on top of other application windows. When window 440 is a free window, its display hierarchy can change according to user operations. For example, when window 440 is the focused window, it can be displayed on top of the music playback interface; similarly, when the music playback interface is the focused window, it can be displayed on top of window 440.
[0183] The electronic device 100 can receive a user's first operation gesture on the window 440 and move the window 440 to be displayed in the second display area.
[0184] like Figure 4A and Figure 4B As shown, the electronic device 100 can receive a user's three-finger touch operation on the window 440. Afterwards, the electronic device 100 can receive a sliding operation of the user's three fingers on the window 440. For example, the user's three fingers can slide from... Figure 4B Slide the dashed line position to Figure 4B The solid line indicates the location of the window. Then, the user leaves window 440 with three fingers. In response to the user leaving window 440 with three fingers, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440, and the electronic device 100 can move window 440 and display window 440 in display area 420. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is less than the first preset speed, then the electronic device 100 can determine that the user does not intend to move window 440, and the electronic device 100 can continue to display window 440 in display area 410 without changing the display position of window 440.
[0185] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.
[0186] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.
[0187] Optionally, if the electronic device 100 determines that the sliding speed of the user's three fingers during a first time period before leaving the window 440 is greater than a first preset speed, the electronic device 100 can determine the target position of the window 440 in the display area 420. For example, the target position of the window 440 in the display area 420 can be... Figure 4E The display position of window 440 shown.
[0188] Optionally, the target position of window 440 in display area 420 can be fixed, or it can be determined based on the sliding speed of the user's three fingers in the first time period before leaving window 440, or it can be determined based on the sliding speed and sliding direction of the user's three fingers in the first time period before leaving window 440.
[0189] In some embodiments, the electronic device 100 can determine one or more transition positions based on the initial position of the window 440 in the display area 410 and the target position of the window 440 in the display area 420. The electronic device 100 can sequentially display the window 440 at one or more transition positions until the window 440 is displayed at the target position in the display area 420. In this way, the window 440 can transition from its initial position in the display area 410 to its target position in the display area 420, avoiding abrupt screen changes as the window 440 moves directly from its initial position in the display area 410 to its target position in the display area 420, thereby improving the user's visual experience.
[0190] Optionally, the electronic device 100 may also change the style of the window 440, such as size, shape, transparency, color, or one or more other styles, and display the style-changed window 440 at one or more transition positions.
[0191] Optionally, the styles of windows 440 displayed at one or more transition positions can be the same or different.
[0192] For example, such as Figure 4C and Figure 4D As shown, one or more transition positions can be Figure 4C The display position of window 440 shown Figure 4D The display position of window 440 shown.
[0193] Optionally, one or more transition positions may not be included, and window 440 may also move directly from its initial position in display area 410 to its target position in display area 420.
[0194] Figure 5A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture on a first window and move the first window to be displayed in a second display area is shown.
[0195] S501, the first electronic device includes a first display screen, which is divided into a first display area and a second display area, and a first window is displayed in the first display area.
[0196] The display position of the first window in the first display area can be referred to as the initial position of the first window.
[0197] The display position of the first window can refer to the position of the center point of the first window, the position of the center point of the top edge of the first window, the position of the center point of the bottom edge of the first window, or the position of any vertex of the first window. This application does not limit the definition of the display position of the first window. In this embodiment, the display position of the first window refers to the position of the center point of the first window as an example for illustration.
[0198] Optionally, the second display area can be located above or below the first display area, or to the left or right of the first display area.
[0199] For example, the first display area can be Figure 4A The second display area can be the display area 410 shown. Figure 4A The display area shown is 420. The first display area displays the music playback interface provided by the music application, and the second display area displays the note editing interface provided by the memo application. The first window can be... Figure 4A The window shown is 440.
[0200] S502, the first electronic device receives a first operation gesture for the first window, the first operation gesture including the operation of selecting the first window with a finger, the operation of sliding the finger on the first window, and the operation of leaving the first window with a finger.
[0201] Optionally, the finger can be a single finger, two fingers, three or more fingers, or a finger joint.
[0202] The electronic device 100 can receive a first operation gesture for the first window and change the display position of the first window.
[0203] S503, The first electronic device determines whether the first operation gesture has ended.
[0204] In response to a first gesture toward the first window, the first electronic device needs to determine whether the first gesture has ended. The end of the first gesture can be determined by whether the finger has left the first window.
[0205] Upon determining that the first operation gesture has ended, the first electronic device can determine whether the user intends to move the display position of the first window, i.e., execute S504.
[0206] If it is determined that the first operation gesture has not ended, the first electronic device can continue to monitor whether the first operation gesture has ended, that is, execute S503.
[0207] S504, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.
[0208] Upon determining that the first operation gesture has ended, the first electronic device can determine whether the user intends to move the display position of the first window, that is, whether the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed.
[0209] If the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, that is, if the user intends to move the display position of the first window, the first electronic device can move the first window to the target position in the second display area, and the first electronic device executes S506-S507.
[0210] If the sliding speed is less than the first preset speed during the first time period before the finger leaves the first window, that is, if the user has no intention to move the display position of the first window, the first electronic device may not change the display position of the first window and continue to display the first window at the initial position of the first display area. The first electronic device executes S505.
[0211] S505, The first electronic device continues to display the first window in the first display area.
[0212] If the sliding speed is less than the first preset speed during the first time period before the finger leaves the first window, the first electronic device may continue to display the first window at the initial position of the first display area without changing the display position of the first window.
[0213] S506, The first electronic device determines the target position of the first window in the second display area.
[0214] S507, The first electronic device displays a first window at a target position in the second display area.
[0215] If the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine the target position of the first window in the second display area.
[0216] Optionally, the target position of the first window in the second display area can be fixed, or it can be determined based on the sliding speed during a first time period before the finger leaves the first window, or it can be determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.
[0217] Optionally, the target position of the first window in the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or, if determined based on the sliding speed and direction during the first time period before the finger leaves the first window, the greater the sliding speed during the first time period before the finger leaves the first window, the greater the distance between the target position of the first window in the second display area and the initial position of the first window in the first display area; conversely, the smaller the sliding speed during the first time period before the finger leaves the first window, the smaller the distance between the target position of the first window in the second display area and the initial position of the first window in the first display area. The distance between the target position of the first window in the second display area and the initial position of the first window in the first display area can refer to the vertical distance between the center point of the first window at the target position in the second display area and the center point of the first window at the initial position in the first display area.
[0218] Optionally, if the target position of the first window in the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or based on the sliding speed and direction during the first time period before the finger leaves the first window, the target position of the first window in the second display area cannot exceed a preset position to avoid the first window exceeding the second display area and resulting in incomplete display of the first window. In other words, after the first electronic device determines the target position of the first window in the second display area, it needs to determine whether the target position of the first window in the second display area exceeds the preset position. If the target position of the first window in the second display area does not exceed the preset position, the first electronic device can display the first window at the target position in the second display area. If the target position of the first window in the second display area has exceeded the preset position, the first electronic device can display the first window at the preset position in the second display area.
[0219] Specifically, when the first window is displayed at a preset position in the second display area, the distance between the edge of the first window and the edge of the second display area is greater than or equal to the preset distance (e.g., 0).
[0220] For example, when the second display area is located below the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the bottom edge of the first window and the bottom edge of the second display area, the distance between the left edge of the first window and the left edge of the second display area, or the distance between the bottom edge of the first window and the bottom edge of the second display area, or the distance between the right edge of the first window and the right edge of the second display area.
[0221] For example, when the second display area is located above the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the top edge of the first window and the top edge of the second display area, the distance between the left edge of the first window and the left edge of the second display area, or the distance between the top edge of the first window and the top edge of the second display area, or the distance between the right edge of the first window and the right edge of the second display area.
[0222] For example, when the second display area is located to the left of the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the upper edge of the first window and the upper edge of the second display area, the distance between the left edge of the first window and the left edge of the second display area, or it can refer to the distance between the lower edge of the first window and the lower edge of the second display area, or the distance between the left edge of the first window and the left edge of the second display area.
[0223] For example, when the second display area is located to the right of the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the top edge of the first window and the top edge of the second display area, the distance between the right edge of the first window and the right edge of the second display area, or it can refer to the distance between the bottom edge of the first window and the bottom edge of the second display area, or the distance between the right edge of the first window and the right edge of the second display area.
[0224] Optionally, after determining the target position of the first window in the second display area, the first electronic device can determine one or more transition positions based on the initial position of the first window in the first display area and the target position of the first window in the second display area. The first electronic device can sequentially display the first window at one or more transition positions until the first window is displayed at the target position in the second display area. In this way, the first window can transition from its initial position in the first display area to its target position in the second display area via one or more transition positions, avoiding abrupt screen transitions and thus improving the user's visual experience.
[0225] Optionally, the first electronic device may also change the style of the first window, such as size, shape, size, transparency, or one or more styles, and display the style-changed first window at one or more transition positions.
[0226] Optionally, the styles of the first windows displayed at one or more transition positions can be the same or different.
[0227] Optionally, one or more transition positions may not be included, and the first window may move directly from its initial position in the first display area to its target position in the second display area.
[0228] Implementation Figures 4A-4E as well as Figure 5 The method shown allows a user to slide a short distance on the first window. After releasing their finger, if the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed in the second display area. The user does not need to continuously drag the first window to the target position in the second display area. On the one hand, this saves user operations. On the other hand, the user does not need to continuously drag the first window beyond the dividing line between the first and second display areas, thus avoiding the problem of the first window stopping near the dividing line and changing its shape. For example, it avoids the problem of the first window stopping near the dividing line and enlarging its size, reducing accidental touches and improving the user experience.
[0229] Example 2: A first window is displayed on a first display screen. The first electronic device can divide the first display screen into two, three, four, or more display areas. If the first window is displayed in the first display area, the first electronic device can receive and respond to a first operation gesture for the first window, moving the first window to be displayed in any other display area.
[0230] The difference between Example 2 and Example 1 is that in Example 2, the first display screen is not split-screen, while in Example 1, the first display screen is split-screen.
[0231] When the first electronic device divides the first display screen into two display areas, the description in Example 1 can be referred to, and will not be repeated here.
[0232] The following explanation will focus on Example 2, where the first electronic device divides the first display screen into four display areas.
[0233] Figures 6A-6EA schematic diagram is shown showing a set of electronic devices 100 receiving a first operation gesture for a first window, moving the first window to be displayed on a second display area of a plurality of display areas.
[0234] like Figure 6A As shown, the electronic device 100 includes a first display screen, which can divide the first display screen into four display areas, such as display area 610, display area 620, display area 630, and display area 640. A window 440 is displayed in display area 610.
[0235] Optionally, a window 440 is displayed in the display area 610, which may refer to the ratio between the size of the window 440 displayed in the display area 610 and the total size of the window 440 exceeding a preset ratio (e.g., 50%).
[0236] The electronic device 100 can receive the user's first operation gesture on the window 440 and move the window 440 to be displayed in the other three of the four display areas.
[0237] like Figure 6A and Figure 6B As shown, the electronic device 100 can receive a user's three-finger touch operation on the window 440. Afterwards, the electronic device 100 can receive a sliding operation of the user's three fingers on the window 440. For example, the user's three fingers can slide from... Figure 6B Slide the dashed line position to Figure 6B The solid line indicates the location of the window. Then, the user leaves window 440 with three fingers. In response to the user leaving window 440 with three fingers, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440, and the electronic device 100 can move window 440. The electronic device 100 can determine, based on the sliding direction of the user's three fingers on window 440, which of the multiple display areas to move and display window 440.
[0238] It should be noted that different sliding directions correspond to different target display areas.
[0239] For example, such as Figure 6B As shown, when the user's three fingers slide downwards on window 440, the target display area can be display area 630.
[0240] For example, when a user slides three fingers on window 440 in the right direction, the target display area can be display area 620.
[0241] For example, when a user slides three fingers on window 440 in the direction of downward right, the target display area can be display area 640.
[0242] Example 2 uses a target display area of display area 630 as an example for illustration.
[0243] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.
[0244] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.
[0245] After the electronic device 100 determines that the target display area is the display area 630 based on the sliding direction of the user's three fingers on the window 440, the electronic device 100 can determine the target position of the window 440 within the display area 630. For example, the target position of the window 440 within the display area 630 could be... Figure 6E The display position of window 440 shown.
[0246] In some embodiments, the target position of window 440 on display area 630 may be fixed. In other embodiments, the target position of window 440 on display area 630 may also be determined based on the sliding speed of the user's three fingers during a first time period before the user's three fingers leave window 440, or based on the sliding speed and sliding direction of the user's three fingers during the first time period before the user's three fingers leave window 440.
[0247] In some embodiments, the electronic device 100 may determine one or more transition positions based on the initial position of the window 440 in the display area 410 and the target position of the window 440 in the display area 420. These one or more transition positions may be... Figure 6C The display position of window 440 shown Figure 6D The display position of window 440 is shown. For details, please refer to the description in Example 1, which will not be repeated here.
[0248] Figure 7 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to a second display area in a plurality of display areas is shown.
[0249] S701, the first electronic device includes a first display screen, the first display screen includes multiple display areas, and a first window is displayed in the first display area of the multiple display areas.
[0250] For example, multiple display areas can be Figure 6A The display areas shown are 610, 620, 630, and 640. The first window can be... Figure 6A The window shown is 440.
[0251] S702, the first electronic device receives a first operation gesture for the first window, the first operation gesture including an operation of selecting the first window with a finger, a sliding operation of a finger on the first window, and an operation of leaving the first window with a finger.
[0252] S703, The first electronic device determines whether the first operation gesture has ended.
[0253] S704, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.
[0254] For a description of S702-S704, please refer to the descriptions in S502-S504; this application will not repeat them here.
[0255] The difference between S704 and S504 is that in S704, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to move the display position of the first window, the first electronic device can move the first window to another display area in the multiple display areas based on the sliding direction of the finger on the first window, and the first electronic device executes S706-S710. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to move the display position of the first window, the first electronic device can maintain the display position of the first window and continue to display the first window at its initial position in the first display area, and the first electronic device executes S705.
[0256] S705, The first electronic device continues to display the first window in the first display area.
[0257] For an introduction to S705, please refer to the description in S505; this application will not repeat it here.
[0258] S706, The first electronic device determines the target display area based on the sliding direction of a finger on the first window.
[0259] If the sliding speed of the finger is greater than a first preset speed during a first time period before the finger leaves the first window, the first electronic device can determine the target display area based on the sliding direction of the finger on the window 440. Different sliding directions of the finger on the window 440 result in different target display areas.
[0260] For example, the target display area may include a second display area and a third display area. When the finger slides on the window 440 in a first direction, the target display area may be the second display area. When the finger slides on the window 440 in a second direction, the target display area may be the third display area.
[0261] For example, when the first direction can be downward, then the second display area can be... Figure 6A The display area shown is 630. For example, when the first direction can be right, then the third display area can be... Figure 6A The display area shown is 620.
[0262] It should be noted that the multiple display areas are not limited to the second and third display areas; they may include other display areas as well, and this application does not limit this.
[0263] When the target display area is the second display area, the first electronic device executes S707-S708.
[0264] When the target display area is the third display area, the first electronic device executes S709-S710.
[0265] S707, The first electronic device determines the target position of the first window in the second display area.
[0266] S708, The first electronic device displays a first window at a target position in the second display area.
[0267] S709, The first electronic device determines the target position of the first window in the third display area.
[0268] S7010, The first electronic device displays the first window at the target position in the third display area.
[0269] For a description of S707 and S708, or S709 and S7010, please refer to the descriptions in S506 and S507; these will not be repeated here.
[0270] Example 3: A first window is displayed on the first screen. The first electronic device can receive and respond to a first operation gesture targeting the first window, and move the first window arbitrarily within the first screen. The target position of the first window on the first screen cannot exceed a preset position.
[0271] Example 3 is similar to Example 2, except that in Example 3, the first electronic device does not divide the first display screen into multiple display areas. The first electronic device can receive and respond to a first operation gesture for the first window. The target position of the first window in the first display screen is determined based on the sliding direction of the finger on the first window and the sliding speed in the first time period before the finger leaves the first window. For details, please refer to the descriptions in Example 1 and Example 2, which will not be repeated here.
[0272] Example 4: A first window is displayed on a first screen. A first electronic device can receive and respond to a first operation gesture on the first window. The first electronic device can change the display form of the first window based on the sliding direction of the finger on the first window. Different sliding directions of the finger on the first window result in different display forms of the first window. The display form of the first window may include, but is not limited to, any of the following: the first application corresponding to the first window is running in the background or closed; the first window is enlarged (e.g., full-screen display or maximized display); the first window is shrunk (e.g., minimized display).
[0273] For example, when the finger slides on the first window in a first direction, the first electronic device can display the first window in a first configuration. When the finger slides on the first window in a second direction, the first electronic device can display the first window in a second configuration.
[0274] It should be noted that it is not limited to two directions, but may include other directions and other display forms, which this application does not limit.
[0275] Figures 8A-8F A schematic diagram is shown of a set of electronic devices 100 receiving a first operation gesture on a first window and changing the display mode of the first window.
[0276] like Figure 8A As shown, the electronic device 100 includes a first display screen, on which a window 440 is displayed.
[0277] For example, such as Figure 8A and Figure 8B As shown, the electronic device 100 can receive a user's three-finger touch operation on the window 440. Afterwards, the electronic device 100 can receive a sliding operation of the user's three fingers on the window 440. For example, the user's three fingers can slide from... Figure 8B Slide the dashed line position to Figure 8BThe solid line in the image indicates the location of the user's three fingers. Then, the user removes three fingers from window 440. In response to the user's three fingers leaving window 440, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to change the display format of window 440. Subsequently, the electronic device 100 can determine the display format of window 440 based on the sliding direction of the finger on window 440.
[0278] It should be noted that the display appearance of window 440 will vary depending on the direction in which the finger slides on the window.
[0279] like Figure 8C As shown, when the user slides three fingers on window 440 to the left (or right), the electronic device 100 can close the process of the first application corresponding to window 440 or send the first application to the background, and the electronic device 100 will stop displaying window 440.
[0280] For example, such as Figure 8D and Figure 8E As shown, the electronic device 100 can receive a user's three-finger touch operation on the window 440. Afterwards, the electronic device 100 can receive a sliding operation of the user's three fingers on the window 440. For example, the user's three fingers can slide from... Figure 8E Slide the dashed line position to Figure 8E The solid line in the image indicates the location of the user's three fingers. Then, the user removes three fingers from window 440. In response to the user's three fingers leaving window 440, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to change the display format of window 440. Subsequently, the electronic device 100 can determine the display format of window 440 based on the sliding direction of the finger on window 440.
[0281] like Figure 8F As shown, when the user's three fingers slide downwards (or upwards) on window 440, the electronic device 100 can display window 440 in full screen.
[0282] Figure 9 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture on a first window and change the display mode of the first window is shown.
[0283] S901, the first electronic device includes a first display screen, on which a first window is displayed.
[0284] For example, the first window could be Figure 8A The window shown is 440.
[0285] S902, the first electronic device receives a first operation gesture for the first window, the first operation gesture including an operation of selecting the first window with a finger, a sliding operation of a finger on the first window, and an operation of leaving the first window with a finger.
[0286] S903, The first electronic device determines whether the first operation gesture has ended.
[0287] S904, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.
[0288] For a description of S902-S904, please refer to the description in S502-S504. This application will not repeat it here.
[0289] The difference between S904 and S504 is that in S904, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to change the display form of the first window, the first electronic device can determine the display form of the first window based on the sliding direction of the finger on the first window, and the first electronic device executes S906-S908. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to change the display form of the first window, the first electronic device may not change the display form of the first window, and the first electronic device executes S905.
[0290] S905, The first electronic device continues to display the first window in the first display area.
[0291] For an introduction to S905, please refer to the description in S505; this application will not repeat it here.
[0292] S906, The first electronic device determines the sliding direction of the finger on the first window.
[0293] If the sliding speed of the finger is greater than a first preset speed during a first time period before the finger leaves the first window, the first electronic device can determine the display form of the first window based on the sliding direction of the finger on the window 440. Different sliding directions of the finger on the window 440 result in different display forms of the first window.
[0294] For example, the display mode of the first window may include a second display mode and a third display mode. When the finger slides on the window 440 in the first direction, the display mode of the first window may be the second display mode. When the finger slides on the window 440 in the second direction, the display mode of the first window may be the third display mode.
[0295] It should be noted that the scope is not limited to the first direction and the second direction, as well as the second and third display forms, but may include other directions and other display forms, which are not limited in this application.
[0296] S907, The first electronic device displays the first window in a second display format.
[0297] When the first electronic device determines that the sliding direction of the finger on the first window is the first direction, the first electronic device can display the first window in a second display mode.
[0298] For example, when the first direction can be left or right, the second display mode can be to close the process of the first application corresponding to the first window or to run the first application in the background.
[0299] S908, The first electronic device displays the first window in a third display mode.
[0300] When the first electronic device determines that the sliding direction of the finger on the first window is the second direction, the first electronic device can display the first window in a third display mode.
[0301] For example, when the second direction can be downward or upward, the second display mode can be to display the first window in full screen.
[0302] Example 5: A first window is displayed within a first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the display position of the first window within the display area of the first electronic device.
[0303] If the target position of the first window in the display area of the first electronic device does not exceed the preset position, the first electronic device may display the first window at the target position in the display area of the first electronic device.
[0304] If the target position of the first window in the display area of the first electronic device exceeds a preset position, the first electronic device can change the display form of the first window. Optionally, if the first window includes multiple display forms, the electronic device can determine the target display form of the first window based on the sliding direction of the user's finger on the first window. Different sliding directions of the finger on the first window result in different target display forms of the first window.
[0305] For details, please refer to the descriptions in Examples 1, 2, 3 and 4, which will not be repeated here.
[0306] Optionally, the first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display. The display area of the first electronic device may include the display area of the first display and the display area of the second display.
[0307] Optionally, the first electronic device may include a non-foldable screen, such as a first display screen, and the display area of the first electronic device may include the display area of the first display screen.
[0308] Scenario 2: Multi-display application scenario
[0309] Example 1: A first electronic device includes a first display screen and a second display screen. The first display screen of the first electronic device displays a first window, and the first electronic device can receive and respond to a first operation gesture for the first window, moving the first window to be displayed on the second display screen of the second electronic device.
[0310] Optionally, the first and second displays can be a single, integrated display, and both can be folded and unfolded along a folding line. The first electronic device can be... Figures 1A-1C The inward-folding screen shown, or, Figures 1D-1E The outward-folding screen shown, or, Figures 1F-1G The tri-fold screen shown, or, Figure 1H-Figure 1I The screen shown is a vertically folding screen.
[0311] Optionally, the first and second displays can also be two separate displays.
[0312] This application uses a laptop computer as an example, with the first and second displays being vertically folding screens.
[0313] Figures 10A-10E A schematic diagram is shown of a set of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display screen.
[0314] like Figure 10A As shown, the electronic device 100 includes screen A and screen B, with a folding edge between them. Screens A and B can be folded in opposite directions along the folding edge, and they can also be unfolded in opposite directions along the folding edge. Screens A and B can both be on, or screen A can be on while screen B is off. Screen A displays icons for multiple applications (such as the This PC application icon and the Recycle Bin application icon), file icons, image icons, and window 440.
[0315] The electronic device 100 can receive the user's first operation gesture on the window 440 and move the window 440 to be displayed on the B screen.
[0316] like Figure 10A and Figure 10B As shown, the electronic device 100 can receive a user's three-finger touch operation on the window 440. Afterwards, the electronic device 100 can receive a sliding operation of the user's three fingers on the window 440. For example, the user's three fingers can slide from... Figure 10B Slide the dashed line position to Figure 10B The solid line indicates the location of the window. Then, the user leaves window 440 with three fingers. In response to the user leaving window 440 with three fingers, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440, and the electronic device 100 can move window 440 and display window 440 on screen B. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is less than the first preset speed, then the electronic device 100 can determine that the user does not intend to move window 440, and the electronic device 100 can continue to display window 440 on screen A without changing its display position.
[0317] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.
[0318] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.
[0319] Optionally, if the electronic device 100 determines that the swiping speed of the user's three fingers during a first time period before leaving the window 440 is greater than a first preset speed, the electronic device 100 can determine the target position of the window 440 on screen B. For example, the target position of the window 440 on screen B could be... Figure 10E The display position of window 440 shown.
[0320] In some embodiments, the target position of window 440 in screen B can be fixed, or it can be determined based on the sliding speed of the user's three fingers in the first time period before leaving the first window, or it can be determined based on the sliding speed and sliding direction of the user's three fingers in the first time period before leaving the first window.
[0321] In some embodiments, the electronic device 100 may determine one or more transition positions based on the initial position of the window 440 on screen A and the target position of the window 440 on screen B. These one or more transition positions may be... Figure 10C The display position of window 440 shown Figure 10D The display position of window 440 is shown. For details, please refer to the description in Example 1 of Scenario 1, which will not be repeated here.
[0322] Figure 11 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture on a first window and move the first window to be displayed on a second display screen is shown.
[0323] S1101, the first electronic device includes a first display screen and a second display screen, wherein a first window is displayed on the first display screen.
[0324] For example, the first display screen may be Figure 10A As shown in the diagram, screen A, the second display screen can be... Figure 10A Screen B is shown. The first window can be... Figure 10A The window shown is 440.
[0325] S1102, The first electronic device receives a first operation gesture for the first window, the first operation gesture including the operation of selecting the first window with a finger, the operation of sliding the finger on the first window, and the operation of leaving the first window with a finger.
[0326] S1103, The first electronic device determines whether the first operation gesture has ended.
[0327] S1104. The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.
[0328] For a description of S1102-S1104, please refer to the description in S502-S504. This application will not repeat it here.
[0329] The difference between S1104 and S504 is that in S1104, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to move the display position of the first window, the first electronic device can move the first window to the target position on the second display screen, and the first electronic device executes S1106-S1107. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to move the display position of the first window, the first electronic device can maintain the display position of the first window and continue to display the first window at the initial position on the first display screen, and the first electronic device executes S1105.
[0330] S1105, The first electronic device continues to display the first window in the first display area.
[0331] For a description of S1105, please refer to the description in S505; this application will not repeat it here.
[0332] S1106, The first electronic device determines the target position of the first window on the second display screen.
[0333] S1107, The first electronic device displays a first window at the target position on the second display screen.
[0334] S1106 and S1107 are similar to S506 and S507, except that in S1106 and S1107, the first electronic device determines the target position of the first window in the second display screen, while in S506 and S507, the first electronic device determines the target position of the first window in the second display area. The implementation is similar, and you can refer to the description in S506 and S507. This application will not repeat it here.
[0335] Implementation Figures 10A-10E as well as Figure 11The method shown allows users to slide a short distance on a first window. After releasing their finger, if the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed on the second display screen. The user does not need to continuously drag the first window to the target position on the second display screen. On the one hand, this saves user operations. On the other hand, when the first and second displays form a certain angle (e.g., 120 degrees), accidental touches can easily occur when the user drags the first window beyond the fold line between the first and second displays. For example, the user may release their finger and fail to drag the first window to the second display screen. With this method, the user does not need to continuously drag the first window beyond the fold line between the first and second displays, thus avoiding the problem of accidental touches when the user drags the first window near the fold line, improving the user experience.
[0336] Example 2: A first electronic device and a second electronic device establish a communication connection. The first electronic device includes a first display screen, and the second electronic device includes a second display screen. A first window is displayed on the first display screen of the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the first window to be displayed on the second display screen of the second electronic device.
[0337] Optionally, the first display screen can be Figures 1A-1C The inward-folding screen shown, or, Figures 1D-1E The outward-folding screen shown, or, Figures 1F-1G The tri-fold screen shown, or, Figure 1H-Figure 1I The vertically folding screen shown, or Figure 1J The screen shown is a straight panel.
[0338] Figures 12A-12C A schematic diagram is shown showing a set of electronic devices 100 receiving a first operation gesture for a first window, moving the first window to a position displayed within the electronic device 200.
[0339] like Figure 12A As shown, electronic device 100 includes screen A, electronic device 200 includes screen B, electronic device 100 and electronic device 200 establish a communication connection, and window 440 is displayed on screen A.
[0340] Electronic device 100 can receive the user's first operation gesture on window 440 and move window 440 to be displayed on screen B of electronic device 200.
[0341] like Figure 12A and Figure 12BAs shown, the electronic device 100 can receive a user's three-finger touch operation on the window 440. Afterwards, the electronic device 100 can receive a sliding operation of the user's three fingers on the window 440. For example, the user's three fingers can slide from... Figure 10B Slide the dashed line position to Figure 10B The solid line indicates the location of the window. Then, the user leaves window 440 with three fingers. In response to the user leaving window 440 with three fingers, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440, and the electronic device 100 can move window 440 and display window 440 on screen B of the electronic device 200. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is less than the first preset speed, then the electronic device 100 can determine that the user does not intend to move window 440, and the electronic device 100 can continue to display window 440 on screen A of the electronic device 100 without changing the display position of window 440.
[0342] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.
[0343] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.
[0344] If the electronic device 100 determines that the sliding speed of the user's three fingers within a first time period before leaving the window 440 is greater than a first preset speed, the electronic device 100 can determine the target position of the window 440 on the B screen of the electronic device 200. For example, the target position of the window 440 on the B screen of the electronic device 200 could be... Figure 12C The display position of window 440 shown.
[0345] In some embodiments, the target position of window 440 in the B screen of electronic device 200 may be fixed, or it may be determined based on the sliding speed of the user's three fingers in a first time period before leaving window 440, or it may be determined based on the sliding speed and sliding direction of the user's three fingers in a first time period before leaving window 440.
[0346] In some embodiments, the electronic device 100 may determine one or more transition positions based on the initial position of the window 440 on screen A of the electronic device 100 and the target position of the window 440 on screen B of the electronic device 200. Specifically, please refer to the description in Example 1 of Scenario 1, which will not be repeated here.
[0347] Figure 13 A flowchart illustrating a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed within the electronic device 200 is shown.
[0348] S1301, the first electronic device and the second electronic device establish a communication connection.
[0349] The communication connection can include, but is not limited to, wired connections (such as USB connections) and wireless connections. Wireless connections can include short-range communication connections or long-range connections. Short-range communication connections include, but are not limited to, any one or more of the following: Bluetooth, Wi-Fi, NFC, IR, UWB, ZigBee, etc. Long-range connections include, but are not limited to, server connections, etc.
[0350] S1302, The first electronic device includes a first display screen, on which a first window is displayed.
[0351] For example, the first display screen may be Figure 12A As shown in screen A, the first window can be Figure 12A The window shown is 440.
[0352] S1303, The first electronic device receives a first operation gesture for the first window, the first operation gesture including the operation of selecting the first window with a finger, the operation of sliding the finger on the first window, and the operation of leaving the first window with a finger.
[0353] S1304, The first electronic device determines whether the first operation gesture has ended.
[0354] S1305, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.
[0355] For a description of S1302-S1305, please refer to the descriptions in S501-S504; this application will not repeat them here.
[0356] The difference between S1305 and S504 is that in S1305, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to move the display position of the first window, the first electronic device can move the first window to the target position on the second display screen of the second electronic device, and the first electronic device executes S1307-S1308. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to move the display position of the first window, the first electronic device can maintain the display position of the first window and continue to display the first window at the initial position of the first display area of the first electronic device, and the first electronic device executes S1306.
[0357] S1306, The first electronic device continues to display the first window on the first display screen.
[0358] For a description of S1306, please refer to the description in S505; this application will not repeat it here.
[0359] S1307, The first electronic device sends the resource information corresponding to the first window to the second electronic device.
[0360] S1308. The second electronic device displays a second window on a second display screen based on the resource information of the first window. The content of the second window is the same as or partially the same as the content of the first window.
[0361] For example, the second display screen can be Figure 12C Screen B is shown.
[0362] If the swiping speed of the finger exceeds a preset speed within a first time interval before leaving the first window, the first electronic device can send the resource information corresponding to the first window to the second electronic device. The second electronic device can then display a second window on a second display screen based on the resource information of the first window. The content of the second window may be the same as or partially the same as the content of the first window. For example, if a video is playing in the first window, the playback progress and content of the video displayed in the second window may differ from those displayed in the first window.
[0363] In some embodiments, after receiving resource information corresponding to the first window of the first electronic device, the second electronic device may not display the second window, but instead play the first media content based on the resource information corresponding to the first window. For example, the first media content may include audio. For instance, the second electronic device may be a speaker, and the resource information corresponding to the first window may be playback resource information for the first music. After the speaker receives the playback resource information for the first music sent by the first electronic device, the second electronic device can play the first music.
[0364] In some embodiments, after receiving resource information corresponding to the first window of the first electronic device, the second electronic device may also change the style of the first window to adapt the first window to the screen resolution of the second electronic device. The style of the first window may include, but is not limited to, any of the following: size, shape, transparency, color, etc.
[0365] In some embodiments, the target position of the second window on the second display screen of the second electronic device may be fixed, or it may be determined based on the sliding speed during a first time period before the finger leaves the first window, or it may be determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window. For details, please refer to the description in S507, which will not be repeated here.
[0366] Implementation Figures 12A-12C as well as Figure 13 The method shown in the embodiment allows a user to slide a short distance on a first window. After releasing their finger, if the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to a target position in the second display area of a second electronic device that has established a communication connection with the first electronic device. Alternatively, the first electronic device can send the resource information corresponding to the first window to the second electronic device, which can then play the first media content based on the resource information corresponding to the first window. This saves user operations and improves the user experience of sharing data between devices.
[0367] Example 3: A first electronic device establishes communication connections with a second electronic device and a third electronic device. The first electronic device includes a first display screen, the second electronic device includes a second display screen, and the third electronic device includes a third display screen. A first window is displayed on the first display screen of the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the first window to be displayed on the second display screen of the second electronic device or the third display screen of the third electronic device.
[0368] For example, a first electronic device can receive and respond to a first operation gesture on a first window, determining which electronic device to send the resource information corresponding to the first window to based on the sliding direction of the finger on the first window. For instance, if the sliding direction of the finger on the first window is a first direction, the first electronic device can send the resource information corresponding to the first window to a second electronic device. If the sliding direction of the finger on the first window is a second direction, the first electronic device can send the resource information corresponding to the first window to a third electronic device. The specific implementation of how the first electronic device sends the resource information corresponding to the first window to the second or third electronic device, and... Figures 12A-12C as well as Figure 13 The method shown in the embodiment is similar and can be referred to. Figures 12A-12C as well as Figure 13 The descriptions in the embodiments are not repeated here.
[0369] It should be noted that the first electronic device is not limited to two electronic devices; it can also connect to other electronic devices. The first electronic device can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction applied to the first window. Different sliding directions correspond to different electronic devices.
[0370] Example 4: A first electronic device and a second electronic device establish a communication connection. A first window is displayed within the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the display position of the first window within the display area of the first electronic device.
[0371] If the target position of the first window in the display area of the first electronic device does not exceed the preset position, the first electronic device may display the first window at the target position in the display area of the first electronic device.
[0372] If the target position of the first window in the display area of the first electronic device exceeds a preset position, the first electronic device can send the resource information corresponding to the first window to the second electronic device. When the first electronic device is connected to multiple electronic devices, it can also determine which electronic device to send the resource information to based on the direction of the finger's swipe on the first window. Different swipe directions on the first window result in different target devices receiving the resource information.
[0373] Optionally, the first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display. The display area of the first electronic device may include the display area of the first display and the display area of the second display.
[0374] Optionally, the first electronic device may include a non-foldable screen, such as a first display screen, and the display area of the first electronic device may include the display area of the first display screen.
[0375] Example 5: A first electronic device and a second electronic device establish a communication connection. A first window is displayed within the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the display position of the first window within the display area of the first electronic device.
[0376] If the target position of the first window in the display area of the first electronic device does not exceed the preset position, the first electronic device may display the first window at the target position in the display area of the first electronic device.
[0377] If the target position of the first window in the display area of the first electronic device exceeds the preset position, the first electronic device can determine whether to send the resource information corresponding to the first window to the second electronic device or change the display form of the first window based on the sliding direction of the finger on the first window.
[0378] If the direction of the finger sliding on the first window is the first direction, the first electronic device can send the resource information corresponding to the first window to the second electronic device.
[0379] If the direction of the finger sliding on the first window is the second direction, then the first electronic device can change the display form of the first window, and the first direction and the second direction are different.
[0380] Alternatively, if the first electronic device is connected to multiple electronic devices, and the finger slides in a first direction on the first window, the first electronic device can send the resource information corresponding to the first window to the second electronic device. If the finger slides in a third direction on the first window, the first electronic device can send the resource information corresponding to the first window to the third electronic device. The first direction, second direction, and third direction are all different.
[0381] Optionally, the first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display. The display area of the first electronic device may include the display area of the first display and the display area of the second display.
[0382] Optionally, the first electronic device may include a non-foldable screen, such as a first display screen, and the display area of the first electronic device may include the display area of the first display screen.
[0383] It should be noted that one or more examples in Scenario 1 can also be applied to the multi-display application scenario in Scenario 2. Please refer to the description of one or more examples in Scenario 1, which will not be repeated here.
[0384] Figure 14 A flowchart of an interactive method is shown.
[0385] S1401, The first electronic device displays a first window; the first electronic device receives a first operation gesture, the first operation gesture including a sliding operation of a finger on the first window or a sliding operation in the air.
[0386] S1402. If the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed or the sliding speed of the air swipe operation is greater than the second preset speed, the first electronic device performs a preset operation on the first window.
[0387] The first electronic device performs a preset operation on the first window, including: the first electronic device changes the display position of the first window in the first electronic device, or the first electronic device changes the display form of the first window, or the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device, the resource information corresponding to the first window is used by the second electronic device to display the second window or the resource information corresponding to the first window is used by the second electronic device to play the first media content, and the content of the second window is the same as or partially the same as the content of the first window.
[0388] Optionally, the sliding distance of the finger on the first window is less than the first distance.
[0389] The swiping speed during the first time period before the finger leaves the first window can refer to the instantaneous swiping speed when the finger leaves the first window, or it can be described as the swiping speed during the last time period before the swiping operation ends. The first time period can refer to a short period of time before the finger leaves the first window or the last period of time before the swiping operation ends. It is necessary to ensure that the instantaneous swiping speed when the finger leaves the first window is greater than a first preset speed, or the instantaneous swiping speed when the swiping operation ends is greater than a first preset speed.
[0390] The sliding speed of the air swipe operation includes the maximum sliding speed or the average sliding speed of the air swipe operation.
[0391] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, it indicates an intention to perform a preset operation on the first window. The first electronic device can then determine that it is performing the preset operation on the first window, saving user operations and improving the user experience.
[0392] In one possible implementation, the first electronic device includes a first display area and a second display area, which are different from each other; the first electronic device displays a first window, specifically including: the first window is displayed in the first display area of the first electronic device; the first electronic device changes the display position of the first window in the first electronic device, specifically including: the first electronic device displays the first window on the second display area.
[0393] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed in the second display area. The user does not need to continuously drag the first window to the target position in the second display area. On the one hand, this saves user operations; on the other hand, the user does not need to continuously drag the first window beyond the dividing line between the first and second display areas, thus avoiding the problem of the first window stopping near the dividing line and changing its shape. For example, it avoids the problem of the first window stopping near the dividing line and enlarging its size, reducing accidental touches and improving the user experience.
[0394] In some embodiments, the first display area and the second display area may be two display areas displayed in a split-screen manner on the first display screen of the first electronic device. For example, refer to... Figures 4A-4E , Figure 5 Description in the embodiments.
[0395] In some embodiments, the first display area and the second display area may be multiple display areas divided by the first electronic device on the first display screen. For example, refer to... Figures 6A-6E , Figure 7 Description in the embodiments.
[0396] In some embodiments, the first electronic device includes a first display screen and a second display screen. The first display area may be the display area of the first display screen, and the second display area may be the display area of the second display screen. For example, refer to... Figures 10A-10E , Figure 11 Description in the embodiments.
[0397] In some embodiments, the first electronic device may receive and respond to a first operation gesture on the first window, and move the first window arbitrarily within the first display screen.
[0398] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is fixed.
[0399] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or the display position of the first window on the second display area is determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.
[0400] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area cannot exceed a preset position.
[0401] For the method of determining the display position of the first window on the second display area, please refer to... Figure 5 The description of S507 in the embodiments will not be repeated here.
[0402] In one possible implementation, if the display position of the first window on the second display area exceeds a preset position, the first electronic device can change the display form of the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.
[0403] In conjunction with the first aspect, in one possible implementation, the first electronic device is connected to a second electronic device. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can send the resource information corresponding to the first window to the second electronic device. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.
[0404] Optionally, the first electronic device can also be connected to a second electronic device and a third electronic device simultaneously. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can determine whether to send the resource information corresponding to the first window to the second or third electronic device based on the sliding direction of the finger on the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.
[0405] In one possible implementation, the sliding operation of a finger on the first window includes the sliding operation of three fingers on the first window.
[0406] In one possible implementation, the method further includes, before the first electronic device displays the first window on the second display area, the first electronic device displaying the first window at one or more transition positions.
[0407] In one possible implementation, one or more transition positions are determined based on the display position of the first window in the first display area and the display position of the first window in the second display area.
[0408] By implementing this method, the first window can be moved directly from its initial position in the first display area to its target position in the second display area, avoiding a sudden change in the screen, thereby improving the user's visual experience.
[0409] Optionally, the first electronic device may also change the style of the first window, such as size, shape, size, transparency, or one or more styles, and display the style-changed first window at one or more transition positions.
[0410] Optionally, the styles of the first windows displayed at one or more transition positions can be the same or different.
[0411] In one possible implementation, the first electronic device displays a first window, specifically including: the first electronic device displays the first window in a first display mode; the first electronic device changes the display mode of the first window, specifically including: the first electronic device displays the first window in a second display mode, the second display mode being different from the first display mode.
[0412] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to change the display mode of the first window, and the first electronic device can switch the display mode of the first window from the first display mode to the second display mode.
[0413] In one possible implementation, when the first window includes multiple different display forms, the electronic device can determine the target display form based on the sliding direction of a finger on the first window.
[0414] For example, the first electronic device changes the display form of the first window, specifically including: when the sliding direction of the finger on the first window is a first direction, the first electronic device displays the first window in a second display form.
[0415] For example, when the finger slides on the first window in the second direction, the first electronic device displays the first window in a third display form. The second direction is different from the first direction, and the third display form is different from the first display form.
[0416] It should be noted that it is not limited to two directions, but may include other directions and other display forms, which this application does not limit.
[0417] In conjunction with the first aspect, in one possible implementation, the first electronic device displays the first window in a second display form, including any of the following: the first electronic device enlarges the size of the first window, the first electronic device shrinks the size of the first window, or the first electronic device runs or closes the first application corresponding to the first window in the background.
[0418] For example, you can refer to Figures 8A-8F , Figure 9 Description in the embodiments.
[0419] In one possible implementation, the first electronic device includes a foldable screen that forms at least two displays, the at least two displays including a first display and a second display, the first display area being the display area of the first display and the second display area being the display area of the second display.
[0420] For example, the first display screen may be Figure 10A As shown in the diagram, screen A, the second display screen can be... Figure 10A Screen B is shown.
[0421] In conjunction with the first aspect, in one possible implementation, the angle between the first display screen and the second display screen is greater than a first value and less than a second value. For example, the angle between the first display screen and the second display screen could be 120 degrees, meaning the first electronic device is in a folded state. This method can be applied to non-foldable devices.
[0422] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first display screen, and both a first display area and a second display area are display areas of the first display screen. This method can also be applied to non-foldable devices.
[0423] In one possible implementation, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device. Specifically, when the sliding direction of the finger on the first window is a first direction, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device.
[0424] In one possible implementation, the method further includes: when the sliding direction of the finger on the first window is the second direction, the first electronic device sends the resource information corresponding to the first window to a third electronic device that has established a communication connection with the first electronic device. The second direction is different from the first direction, and the third electronic device is different from the second electronic device.
[0425] It should be noted that the first electronic device is not limited to two electronic devices; it can also connect to other electronic devices. The first electronic device can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction applied to the first window. Different sliding directions correspond to different electronic devices.
[0426] By implementing this method, when a first electronic device is connected to multiple electronic devices, the electronic devices can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction of the finger on the first window, saving user operations and improving the user experience of sharing data between devices.
[0427] In one possible implementation, the first electronic device includes a laptop computer.
[0428] This application provides an electronic device, a first electronic device, which includes: one or more processors and one or more memories, wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they perform the steps in the above-described method embodiments.
[0429] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.
[0430] This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps in the various method embodiments described above.
[0431] This application also provides a chip system, which includes a processing circuit interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
[0432] It should be noted that the multiple embodiments provided in this application can be combined in any two or more combinations to achieve the interaction method provided in this application.
[0433] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. An interaction method, characterized in that, The method includes: The first electronic device displays a first window; The first electronic device receives a first operation gesture, which includes a sliding operation of a finger on the first window or a sliding operation in the air. If the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, or if the sliding speed of the air swipe operation is greater than a second preset speed, the first electronic device performs a preset operation on the first window.
2. The method according to claim 1, characterized in that, The sliding speed during the first time period before the finger leaves the first window, including the instantaneous sliding speed when the finger leaves the first window; or, The sliding speed of the air-to-slide operation includes the maximum sliding speed or the average sliding speed of the air-to-slide operation.
3. The method according to claim 1 or 2, characterized in that, The first electronic device performs a preset operation on the first window, including: The first electronic device changes the display position of the first window in the first electronic device, or the first electronic device changes the display form of the first window, or the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device. The resource information corresponding to the first window is used by the second electronic device to display the second window or the resource information corresponding to the first window is used by the second electronic device to play the first media content. The content of the second window is the same as or partially the same as the content of the first window.
4. The method according to claim 3, characterized in that, The first electronic device includes a first display area and a second display area, wherein the first display area and the second display area are different; The first electronic device displays a first window, which specifically includes: The first window is displayed in the first display area of the first electronic device; The first electronic device changes the display position of the first window within the first electronic device, specifically including: The first electronic device displays the first window on the second display area.
5. The method according to claim 4, characterized in that, The display position of the first window on the second display area is fixed.
6. The method according to claim 4, characterized in that, The display position of the first window on the second display area is determined based on the sliding speed during the first time period before the finger leaves the first window, or the display position of the first window on the second display area is determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.
7. The method according to claim 6, characterized in that, The display position of the first window on the second display area cannot exceed a preset position.
8. The method according to claim 3, characterized in that, The first electronic device displays a first window, which specifically includes: The first electronic device displays the first window in the first display format; The first electronic device changes the display format of the first window, specifically including: The first electronic device displays the first window in a second display mode, which is different from the first display mode.
9. The method according to claim 8, characterized in that, The first electronic device changes the display format of the first window, specifically including: When the finger slides on the first window in the first direction, the first electronic device displays the first window in the second display mode.
10. The method according to claim 9, characterized in that, The method further includes: When the finger slides on the first window in the second direction, the first electronic device displays the first window in a third display mode. The second direction is different from the first direction, and the third display mode is different from the first display mode.
11. The method according to any one of claims 8-10, characterized in that, The first electronic device displays the first window in a second display format, including any of the following: the first electronic device enlarges the size of the first window, the first electronic device shrinks the size of the first window, or the first electronic device runs or closes the first application corresponding to the first window in the background.
12. The method according to any one of claims 4-7, characterized in that, The first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display, wherein the first display area is the display area of the first display and the second display area is the display area of the second display.
13. The method according to claim 12, characterized in that, The angle between the first display screen and the second display screen is greater than a first value and less than a second value.
14. The method according to any one of claims 4-7, characterized in that, The first electronic device includes a first display screen, and both the first display area and the second display area are display areas of the first display screen.
15. The method according to claim 2, characterized in that, The first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device, specifically including: When the finger slides on the first window in the first direction, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device.
16. The method according to claim 14, characterized in that, The method further includes: When the finger slides on the first window in the second direction, the first electronic device sends the resource information corresponding to the first window to a third electronic device that has established a communication connection with the first electronic device. The second direction is different from the first direction, and the third electronic device is different from the second electronic device.
17. The method according to any one of claims 2-15, characterized in that, A sliding operation on the first window using a finger includes a sliding operation using three fingers on the first window.
18. The method according to any one of claims 4-7 or 12-14, characterized in that, Before the first electronic device displays the first window on the second display area, the method further includes: The first electronic device displays the first window at one or more transition positions.
19. The method according to claim 18, characterized in that, The one or more transition positions are determined based on the display position of the first window in the first display area and the display position of the first window in the second display area.
20. The method according to any one of claims 1-19, characterized in that, When the first gesture includes a swipe gesture, the first window is the focus window.
21. The method according to any one of claims 1-20, characterized in that, The first electronic device includes a laptop computer.
22. An electronic device, specifically a first electronic device, characterized in that: The first electronic device includes: one or more processors and one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program, which, when the one or more processors execute the computer program, performs the interactive method as described in any one of claims 1-21.
23. A computer-readable storage medium, characterized in that, Includes instructions that, when executed by a processor, implement the interaction method as described in any one of claims 1-21.
24. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the interactive method as described in any one of claims 1-21.
25. A chip system, characterized in that, It includes a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to execute the code instructions to perform the interactive method as described in any one of claims 1-21.
