Display method and device based on interaction

By performing a throwing gesture on the sub-screen of a foldable screen PC, the window can be quickly moved from one sub-screen to another, solving the problem of inconvenient movement of windows in the folded state, improving operational convenience and extending device life.

CN120670066APending Publication Date: 2025-09-19HUAWEI TECH CO LTD

Patent Information

Application Number
CN202510047117.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

How to quickly move windows between different sub-screens when a foldable screen PC is folded to avoid physical damage to the folding axis area.

Method used

By performing a drag operation on the first sub-screen, a flinging gesture with a shorter distance and a specific speed or direction is used to move the window from the first sub-screen to the second sub-screen, avoiding crossing the folding axis area.

Benefits of technology

It enables quick movement of windows between different sub-screens, reduces physical damage to the folding axis area, and extends the service life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120670066A_ABST
    Figure CN120670066A_ABST
Patent Text Reader

Abstract

The invention discloses an interaction-based display method and device, and relates to the technical field of computers. The method is applied to the electronic equipment, the electronic equipment is provided with a foldable display screen, and when the electronic equipment is in a folded state, the foldable display screen is folded into a first sub-screen and a second sub-screen. The method comprises the following steps: displaying a first window in a display area of a first sub-screen; a first operation of a user on the first sub-screen is received, the first operation is used for dragging the first window, the dragging direction points to the second sub-screen, and the dragging ending position is located on the first sub-screen; and in response to the first operation, moving the first window from the display area of the first sub-screen to the display area of the second sub-screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an interactive display method and device. Background Art

[0002] With technological advancements, the form factors and functions of personal computers (PCs) are becoming increasingly diverse. Foldable PCs, a new type of PC, have emerged. A foldable PC includes a foldable display that allows users to change its form by folding or unfolding it. When folded, the display can be treated as two logical sub-screens.

[0003] Foldable screen PCs support window repositioning. When a foldable screen PC is folded, how to quickly move windows between different sub-screens is a problem that needs to be solved. Summary of the Invention

[0004] Embodiments of the present application provide an interactive display method and apparatus for moving windows between different sub-screens based on quick user operations on a folding screen device in a folded state.

[0005] In a first aspect, an interaction-based display method is provided, which can be applied to an electronic device, wherein the electronic device has a foldable display screen, and when the electronic device is in a folded state, the foldable display screen is folded into a first sub-screen and a second sub-screen, and the method includes: displaying a first window in a display area of ​​the first sub-screen; receiving a first operation of a user on the first sub-screen, the first operation being used to drag the first window, the direction of the dragging pointing to the second sub-screen, and the end position of the dragging being located on the first sub-screen; and moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen in response to the first operation.

[0006] In the above implementation, since the end position of the dragging operation on the first window is located on the first sub-screen, that is, the dragging operation has a shorter distance, the window can be moved more quickly and conveniently, and contact with the folding axis area can be avoided, thereby reducing physical damage to the folding axis area and extending the service life of the electronic device.

[0007] In one possible implementation, moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen includes: moving the first window from the display area of ​​the first sub-screen to the application window displayable area of ​​the second sub-screen. The display area of ​​the second sub-screen includes a Dock bar and a status bar, and the application window displayable area is the area of ​​the display area of ​​the second sub-screen excluding the Dock bar and the status bar.

[0008] In one possible implementation, after receiving the first operation of the user on the first sub-screen, it also includes: determining whether the speed and / or direction of the dragging meets a first condition; in response to the first operation, moving the first window from the display area of ​​the first sub-screen to obtain the display area of ​​the second sub-screen, including: if the speed and / or direction of the dragging meets the first condition, then in response to the first operation, moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0009] In the above implementation, the first window is moved only when the first operation satisfies the first condition, thereby avoiding erroneous operations.

[0010] In one possible implementation, the speed and / or direction of the dragging satisfies a first condition, including: the speed of the dragging is greater than or equal to a speed threshold; or, the angle between the direction of the dragging and a first reference line is less than or equal to an angle threshold, where the first reference line is a straight line on a first plane that is perpendicular to the folding axis of the foldable display screen, and the first plane is the plane where the first sub-screen is located, or the first plane is parallel to the plane where the first sub-screen is located; or, the speed of the dragging is greater than or equal to the speed threshold, and the angle between the direction of the dragging and the first reference line is less than or equal to the angle threshold.

[0011] In one possible implementation, the first window is displayed non-full screen in the display area of ​​the first sub-screen; after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed non-full screen or full screen in the display area of ​​the second sub-screen.

[0012] In one possible implementation, the first window is displayed in full screen within the display area of ​​the first sub-screen; after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen or non-full screen within the display area of ​​the second sub-screen.

[0013] In one possible implementation, the first operation includes a start event, a move event, and an end event; after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen within the display area of ​​the second sub-screen, including: in response to the start event, the first window is selected and exits the full-screen mode; in response to the move event, the first window that exits the full-screen mode is moved; in response to the end event, the first window is moved to the display area of ​​the second sub-screen, and the first window is restored to the full-screen mode.

[0014] In one possible implementation, the first operation includes a start event, a move event, and an end event; after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen within the display area of ​​the second sub-screen, including: in response to the start event, the first window is selected; in response to the move event, when the moving distance is greater than or equal to a threshold (for example, the threshold is the height of the status bar of the first window), the first window exits the full-screen mode, and the first window exiting the full-screen mode is moved according to the move event; in response to the end event, the first window is moved to the display area of ​​the second sub-screen, and the first window is restored to the full-screen mode.

[0015] In one possible implementation, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is centered in the display area of ​​the second sub-screen; or, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the relative position of the first window in the display area of ​​the second sub-screen remains unchanged from the relative position in the display area of ​​the first sub-screen.

[0016] In the above implementation, after the first window is moved to the second sub-screen, the first window is displayed in the center, which is convenient for the user to watch and operate.

[0017] In one possible implementation, moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen includes: determining the position of the first window in the display area of ​​the second sub-screen based on an association between first information and the window position; wherein the first information includes one or more of the following: the speed, pressure, and direction of the drag; and displaying the first window at the position.

[0018] In the above implementation, after the first window moves to the second sub-screen, its position is related to one or more of the speed, pressure and direction of the drag operation. That is, the user drags the first window with the corresponding drag speed, pressure and / or direction according to the desired position, thereby improving the user experience.

[0019] A possible implementation method also includes: after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, if the position of the first window changes within the display area of ​​the second sub-screen within a first time period, then updating the association relationship based on the changed position of the first window and the first information.

[0020] In the above implementation, since user behavior can be learned, the matching degree between the window dragging operation and the user expectation can be improved, thereby improving the user experience.

[0021] In one possible implementation, if the height of the first window is greater than the height of the display area of ​​the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the upper edge of the first window coincides with the upper edge of the display area of ​​the second sub-screen; and / or, if the width of the first window is greater than the width of the display area of ​​the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the left edge of the first window coincides with the left edge of the display area of ​​the second sub-screen.

[0022] A possible implementation method also includes: receiving a second operation of the user on the first sub-screen, the second operation is used to drag the second window displayed in the first sub-screen, the direction of the dragging points to the second sub-screen, and the end position of the dragging is located on the first sub-screen; in response to the second operation, the second window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, and the second window is overlapped with the first window and the positions are staggered.

[0023] In a possible implementation, the second window is located above the first window.

[0024] In a second aspect, an electronic device is provided, comprising a unit or module for executing any of the methods described in the first aspect. Specifically, the electronic device may include: a processing module and a display module. The display module is configured to display a first window in a display area of ​​the first sub-screen; the processing module is configured to receive a first operation performed by a user on the first sub-screen, wherein the first operation is to drag the first window, the dragging direction is directed toward the second sub-screen, and the dragging ends at the first sub-screen; and in response to the first operation, the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0025] In one possible implementation, the processing module is also used to: after receiving the user's first operation on the first sub-screen, determine whether the speed and / or direction of the dragging meets the first condition; the processing module is specifically used to: if the speed and / or direction of the dragging meets the first condition, then in response to the first operation, move the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0026] In one possible implementation, the speed and / or direction of the dragging satisfies a first condition, including: the speed of the dragging is greater than or equal to a speed threshold; or, the angle between the direction of the dragging and a first reference line is less than or equal to an angle threshold, where the first reference line is a straight line on a first plane that is perpendicular to the folding axis of the foldable display screen, and the first plane is the plane where the first sub-screen is located, or the first plane is parallel to the plane where the first sub-screen is located; or, the speed of the dragging is greater than or equal to the speed threshold, and the angle between the direction of the dragging and the first reference line is less than or equal to the angle threshold.

[0027] In one possible implementation, the first window is displayed non-full screen in the display area of ​​the first sub-screen; after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed non-full screen or full screen in the display area of ​​the second sub-screen.

[0028] In one possible implementation, the first window is displayed in full screen within the display area of ​​the first sub-screen; after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen or non-full screen within the display area of ​​the second sub-screen.

[0029] In one possible implementation, the first operation includes a start event, a move event, and an end event; the processing module is specifically used to: in response to the start event, the first window is selected and exits the full-screen mode; in response to the move event, the first window that exits the full-screen mode is moved; in response to the end event, the first window is moved to the display area of ​​the second sub-screen, and the first window is restored to the full-screen mode.

[0030] In one possible implementation, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is centered in the display area of ​​the second sub-screen; or, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the relative position of the first window in the display area of ​​the second sub-screen remains unchanged from the relative position in the display area of ​​the first sub-screen.

[0031] In one possible implementation, the processing module is specifically used to: determine the position of the first window in the display area of ​​the second sub-screen based on the association between the first information and the window position; wherein the first information includes one or more of the following: the speed, pressure and direction of the drag; and the display module is specifically used to: display the first window at the position.

[0032] A possible implementation method also includes: the processing module is also used to: after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, if the position of the first window changes in the display area of ​​the second sub-screen within a first time period, then updating the association relationship according to the changed position of the first window and the first information.

[0033] In one possible implementation, if the height of the first window is greater than the height of the display area of ​​the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the upper edge of the first window coincides with the upper edge of the display area of ​​the second sub-screen; and / or, if the width of the first window is greater than the width of the display area of ​​the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the left edge of the first window coincides with the left edge of the display area of ​​the second sub-screen.

[0034] In one possible implementation, the processing module is also used to: receive a second operation performed by the user on the first sub-screen, where the second operation is used to drag the second window displayed in the first sub-screen, the direction of the dragging points to the second sub-screen, and the end position of the dragging is located on the first sub-screen; in response to the second operation, the second window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, and the second window is overlapped with the first window and the positions are staggered.

[0035] In a possible implementation, the second window is located above the first window.

[0036] According to a third aspect, an electronic device is provided, comprising: one or more processors configured to execute the method as described in any one of the first aspects.

[0037] In a fourth aspect, a readable storage medium is provided, wherein the readable storage medium stores a program or instruction, and when the program or instruction is run on a device, the device executes the method as described in any one of the first aspects.

[0038] In a fifth aspect, a chip system is provided, comprising a processor for supporting a computer device to implement a method as described in any one of the first aspects.

[0039] In a sixth aspect, a computer program product is provided, comprising a program; when the computer program is run on a computer, the computer is caused to execute the method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a foldable screen PC;

[0041] Figure 2 A schematic diagram of moving a window when a foldable screen PC is in an unfolded state in the related art;

[0042] Figure 3 A schematic diagram of moving a window when a foldable screen PC is in a folded state in the related art;

[0043] Figure 4 This is a schematic diagram of the window movement process provided in Example 1 of the embodiments of the present application;

[0044] Figure 5 This is a schematic diagram of the window movement process provided in Example 2 of the embodiments of the present application;

[0045] Figure 6 This is a schematic diagram of the window movement process provided in Example 3 of the embodiments of this application;

[0046] Figure 7This is a schematic diagram of the window movement process provided in Example 4 of the embodiments of the present application;

[0047] Figure 8 This is a schematic diagram of the window movement process provided in Example 5 of the embodiments of the present application;

[0048] Figure 9 A flow chart of an interactive display method according to an embodiment of the present invention;

[0049] Figure 10 A schematic diagram of the angle between the dragging direction and the first vertical line in an embodiment of the present application;

[0050] Figure 11 Schematic diagram of dividing the display area of ​​the second sub-screen into two sub-areas along a horizontal center line in an embodiment of the present application;

[0051] Figure 12 Schematic diagram of dividing the display area of ​​the second sub-screen into two sub-areas along a vertical center line in an embodiment of the present application;

[0052] Figure 13 A schematic diagram of stacked display of multiple windows in an embodiment of the present application;

[0053] Figure 14 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application;

[0054] Figure 15 This is a schematic diagram of an interaction process based on a software system architecture in an embodiment of the present application;

[0055] Figure 16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0056] Figure 17 A schematic structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0058] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0059] A foldable screen PC is a PC device with a new form factor. The foldable screen PC uses a foldable flexible display screen as a display device. The display screen can be a liquid crystal display (LCD), which is not limited in this application.

[0060] The display screen of a foldable screen PC can be regarded as two logical sub-screens (hereinafter referred to as sub-screens) with the folding axis as the boundary. The user can fold or unfold the display screen to put the foldable screen PC in a folded state or an unfolded state. Among them, the unfolded state means that the two sub-screens are on the same plane or the angle between them is less than a preset angle (for example, 5°). At this time, the interfaces of the two sub-screens are merged into one display interface; the folded state means that the two sub-screens have a preset angle, and the angle is greater than the preset angle (for example, the angle between the two sub-screens is about 90°). At this time, the two sub-screens are independent display areas and are independently managed. Figure 1 Two states of a foldable screen PC are shown as examples.

[0061] refer to Figure 1 As shown in (a) in FIG, when the foldable screen PC is in the unfolded state, the display area 101 of the foldable screen is the entire area of ​​the display screen. When the foldable screen PC is in the unfolded state, the user can rotate the foldable screen PC, and the foldable screen PC can be displayed in a horizontal or vertical unfolded state. Figure 1 As shown in (b) in the figure, when the foldable screen PC is in the folded state, the folded display screen can be considered to include sub-screen 11 and sub-screen 12, and the foldable screen PC can be displayed in the display area 102 of sub-screen 11 and the display area 103 of sub-screen 12. In some examples, when the foldable screen PC is in the folded state, sub-screen 12 can be connected to an external physical keyboard (for example, a physical keyboard is covered on sub-screen 12), or a virtual keyboard can be displayed in the display area 103 of sub-screen 12, and the user can input content or trigger operations in the foldable screen PC through the physical keyboard or virtual keyboard.

[0062] For the convenience of describing the two sub-screens, based on their spatial positions in the folded state, the sub-screen placed on the horizontal plane is called the horizontal sub-screen, and the sub-screen that is connected and fixed by the horizontal sub-screen and stands upright in space is called the vertical sub-screen, although in most cases the sub-screen is not perpendicular to the horizontal sub-screen. For example, Figure 1 Sub-screen 11 in the figure can be referred to as a vertical sub-screen, and sub-screen 12 can be referred to as a horizontal sub-screen. It should be understood that in the embodiments of the present application, the terms vertical sub-screen and horizontal sub-screen are merely names, and do not define the positional relationship between the two sub-screens. In practice, the vertical sub-screen and the horizontal sub-screen are not necessarily perpendicular to each other and can be at other angles.

[0063] It should be understood that Figure 1 The dotted line in the figure is only used as a schematic diagram of the folding axis of the display screen. The display screen will not display the dotted line during actual display. The dotted lines in the drawings involved in the following embodiments of this application can also refer to this description, and the repeated parts will not be repeated.

[0064] Foldable screen PCs support the movement of windows within the display area. In the computer field, a window refers to an operating interface, which is the visual interface between the user and the application. A window is usually composed of elements such as a title bar, menu bar, toolbar, control menu button, maximize / minimize / close buttons, scroll bars, window borders, and a work area. Users can use these elements to change the window state, change the window position, operate applications, manage data, etc. Currently, regardless of whether the foldable screen PC is in the unfolded or folded state, the display screen is regarded as a whole display screen, and the position of the window is changed within the display area of ​​the display screen based on the user's drag operation.

[0065] Figure 2 The schematic diagram of moving a window when a foldable screen PC is in the unfolded state is shown as an example. In the unfolded state, a window 20 is displayed in the display area. Window 20 is a small window (i.e., a non-full-screen window). Optionally, other interface elements, such as application icons, service cards, etc., can also be displayed in the display area. In the title bar position of window 20, the user performs a "press" operation through an operation method such as a mouse or touch, and drags the window 20 to move while maintaining the "press" state. When it moves to the target position, the "lift" operation is performed, and the window 20 moves from its original position to the target position.

[0066] Figure 3 The schematic diagram of moving windows when the folding screen PC is in the folded state is shown as an example. In the folded state, the opened windows will be displayed in the sub-screen 31 by default, for example Figure 3In the example, a window 30 is displayed in the sub-screen 31. The window 30 may be a non-full-screen window (i.e., the size of the window 30 is smaller than the size of the display area of ​​the sub-screen 31). Optionally, other interface elements may be displayed in the display area, such as application icons, service cards, etc. In the title bar of the window 30, the user performs a "press" operation by using a mouse or touch operation, and drags the window 30 while maintaining the "press" state. After moving to the display area of ​​the sub-screen 32, the user performs a "lift" operation, and the window 30 moves from the display area of ​​the sub-screen 31 to the current position in the display area of ​​the sub-screen 32. In other examples, the window may also be a full-screen window, and the full-screen window movement process is the same as Figure 3 The process shown is similar.

[0067] based on Figure 2 and Figure 3 As can be seen, when moving a window, the user needs to use a mouse or touch to drag the window from the source location to the target location. This long movement distance makes user operation inconvenient. This is especially true when the foldable screen PC is folded. Because the two sub-screens are at an angle at the folding axis, this angle affects the user's touch-based dragging operation when moving the window across the folding axis. In addition, the folding axis area of ​​the display is generally fragile, and frequent touch operations can cause physical and irreversible damage to the folding axis area.

[0068] To this end, an embodiment of the present application provides an interactive display method, which can be executed by an electronic device, the electronic device including a foldable display screen, such as the electronic device can be Figure 1 The foldable screen PC shown. Using the method provided in the embodiment of the present application, windows can be quickly moved on the electronic device, and physical damage to the folding axis area caused by the touch operation of moving the window can be reduced.

[0069] In an embodiment of the present application, an electronic device with a foldable display screen is folded into a first sub-screen and a second sub-screen along a folding axis when the electronic device is in a folded state. Figure 3 The dragging operation shown is a faster human-computer interaction operation (or user operation), which moves the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0070] In the embodiments of the present application, the size of the first window is the actual size of the window. If the first window has window decorations, such as a title bar and a window border, the window size refers to the window size excluding the window decorations. The position of the first window is the actual position of the window. If the first window has window decorations, such as a title bar and a window border, the window position refers to the actual position of the window excluding the window decorations. Of course, the window size and window position can also include window decorations, and this application does not limit this.

[0071] The human-computer interaction operation provided by the embodiment of the present application is compared with the above Figure 3 The dragging operation shown can shorten the distance of the user's dragging operation, so that the window can be moved more quickly and conveniently, and can avoid contact with the folding axis area, thereby reducing physical damage to the folding axis area and extending the service life of the electronic device.

[0072] The embodiments of the present application support human-computer interaction operations, which may include one or more of the following: mouse operations and touch operations.

[0073] Touch operations refer to interactions with devices achieved through touch or gestures performed by the user on the screen. A touch is an event in which a finger touches the screen. A touch event can include touch start, touch move, touch end, and touch cancel. A gesture is a series of events that occur from the moment a finger touches the screen to the moment it leaves the screen, such as a double-click, long press, and drag.

[0074] The touch operations supported by the embodiments of the present application may include contact touch operations and non-contact touch operations.

[0075] Contact touch operation refers to a touch operation that is in contact with the screen, which may include resistive touch, capacitive touch, surface acoustic wave touch, etc., and is not limited in this application. Among them, the screen with resistive touch function includes two layers of isolated metal electrodes. By pressing the finger on the screen to make the two electrodes contact to form a loop, the touch position can be detected. The screen with capacitive touch function has a transparent conductive film coated between the two glass plates. When the finger approaches or touches, the electric field distribution will change, thereby sensing the position of the touch point. The screen with surface acoustic wave touch function transmits ultrasonic waves to the screen surface through ultrasonic transmitters and receivers. When the finger touches, the reflected wave will change, thereby determining the position of the touch point.

[0076] Non-contact touch operations refer to touch operations that do not make contact with the screen. For example, screens with optical touch capabilities can support non-contact touch operations. Specifically, sensors can be used to place infrared and visible light-emitting diodes (LEDs) on the screen surface, and coordinates can be calculated based on whether a finger or object blocks the light source. For another example, the sensors and cameras of an electronic device can be used to recognize user gestures and perform corresponding operations. For another example, some styluses can also support non-contact touch operations.

[0077] Taking a contact touch operation as an example, an example of a user operation for moving a window in an embodiment of the present application is a drag operation based on a single finger. This drag operation acts on the first window in the display area of ​​the first sub-screen and is performed only within the display area of ​​the first sub-screen without crossing the folding axis area. The direction of movement of the drag operation is toward the second sub-screen and meets certain speed requirements, so that the first window can be moved from the first sub-screen to the second sub-screen. It is understood that this single-finger operation can also be replaced by a drag operation using a contact stylus.

[0078] Taking a mouse operation as an example, an example of a user operation for moving a window in an embodiment of the present application is a mouse-based drag operation. Similar to a single-finger drag operation, this drag operation acts on the first window within the display area of ​​the first sub-screen and is performed only within the display area of ​​the first sub-screen, without crossing the fold axis area. The direction of the drag operation is toward the second sub-screen and meets certain speed requirements, thereby moving the first window from the first sub-screen to the second sub-screen.

[0079] Taking non-contact touch operation as an example, an example of a user operation for moving a window in an embodiment of the present application is a non-contact sliding operation based on a stylus, and the principle of achieving window movement is similar to the above-mentioned drag operation based on a single finger or a mouse or a contact stylus.

[0080] Another example of a contactless touch operation is a contactless user gesture operation. Window movement between different sub-screens can be achieved based on user-defined gestures or system-provided gestures. Similar to single-finger or mouse operations, gesture operations can also include stages such as start, move, and end. The electronic device can perform corresponding processing based on events such as start, move, and end to complete the method provided in the embodiments of the present application.

[0081] It can be seen that the embodiment of the present application can conveniently move windows between different sub-screens through a drag operation or gesture operation with a short distance and a fast speed. In some embodiments of the present application, the above user operation is called a fling operation or a fling gesture.

[0082] In order to better understand the embodiments of the present application, the embodiments of the present application are described below with reference to several specific scenario examples.

[0083] Example 1

[0084] refer to Figure 4 (a) is a schematic diagram of the window movement process provided in Example 1 of the embodiment of the present application. Figure 4 As shown in (a), the foldable screen PC is in the folded state, and a window 40 is displayed in the display area of ​​the sub-screen 41. The size of the window 40 is smaller than the size of the display area of ​​the sub-screen 41, that is, the window 40 is a non-full screen window. Optionally, the window 40 is a free window, that is, the user is allowed to drag, scale, and freely arrange it. Of course, other interface elements can also be displayed in the display area of ​​the sub-screen 41, such as Figure 4 The user presses down on the title bar of window 40 and drags window 40 toward sub-screen 42, causing window 40 to move from position 1 to position 2. At position 2, the user lifts their finger, ending the drag operation. This drag operation is fast and has a short drag path, effectively "throwing" window 40 toward sub-screen 42.

[0085] In response to the above-mentioned “fling” operation, the foldable screen PC moves the window 40 from the display area of ​​the sub-screen 41 to the display area of ​​the sub-screen 42 .

[0086] In one possible implementation, the size of window 40 displayed in the display area of ​​sub-screen 42 remains unchanged and is the same as the size in sub-screen 41, thereby avoiding the user from resizing window 40. In another possible implementation, the size of window 40 displayed in the display area of ​​sub-screen 42 can be adjusted based on the size of the display area of ​​the second sub-screen, for example, by adjusting the window height to two-thirds of the height of the display area of ​​the second sub-screen and adjusting the window width to two-thirds of the width of the display area of ​​the second sub-screen.

[0087] In one possible implementation, after window 40 is moved to the display area of ​​sub-screen 42, it is centered in the display area of ​​sub-screen 42, that is, the center point of window 40 coincides with the center point of the display area of ​​sub-screen 42, so that the user can easily operate window 40 in the display area of ​​sub-screen 42.

[0088] Alternatively, if the display area of ​​the second sub-screen includes a dock bar and a status bar, the window 40 may be displayed centered within the display area of ​​the second sub-screen excluding the dock bar and the status bar. The display area of ​​the second sub-screen excluding the dock bar and the status bar is the application window displayable area. In other words, the window 40 may be displayed centered within the application window displayable area of ​​the second sub-screen.

[0089] The Dock bar can be located at the bottom or left or right edge of the screen. The Dock bar can include application icons (including icons of running applications). Users can use the application icons in the Dock bar to quickly launch new applications, switch running applications, etc. The status bar can be located at the bottom or left or right edge of the screen. The status bar can display system information, system time, network connection status, volume control buttons, etc.

[0090] In one possible implementation, the relative position of window 40 within the display area of ​​the sub-screen remains unchanged before and after the movement. For example, before being moved, the ratio of the distance between the center point of window 40 and the left border of the display area of ​​sub-screen 41 to the length of the display area is 1:3, and the ratio of the distance between the center point of window 40 and the upper border of the display area of ​​sub-screen 41 to the length of the display area is 2:1. After moving to sub-screen 42, the ratio of the distance between the center point of window 40 and the left border of the display area of ​​sub-screen 42 to the length of the display area remains 1:3, and the ratio of the distance between the center point of window 40 and the upper border of the display area of ​​sub-screen 42 to the length of the display area remains 2:1.

[0091] In one possible implementation, an animation effect can be used to present the process of window 40 moving from position 2 of sub-screen 41 to sub-screen 42. For example, the animation effect can be to sequentially display the window at different positions along the window movement path, that is, to play the window movement process. For another example, when playing the window movement process, a display effect can be used that first fades out of sub-screen 41 and then fades in to sub-screen 42. This application is not limited to this.

[0092] The embodiment of the present application supports two-way movable windows on the two sub-screens of a foldable screen PC.

[0093] refer to Figure 4In (b), the foldable screen PC is in the folded state, and a window 40 is displayed in the display area of ​​the sub-screen 42. Window 40 is a free window. Of course, other interface elements can also be displayed in the display area of ​​the sub-screen 42. The user's finger "presses" on the title bar of window 40 and drags window 40 toward sub-screen 41, so that window 40 moves from position 3 to position 4. At position 4, the user's finger "lifts" to end the drag operation. The drag operation is fast and the dragging trajectory is short, which is equivalent to "throwing" window 40 toward sub-screen 41.

[0094] In response to the above-mentioned “fling” operation, the foldable screen PC moves the window 40 from the display area of ​​the sub-screen 42 to the display area of ​​the sub-screen 41 .

[0095] In a possible implementation, the size of the window 40 displayed in the display area of ​​the sub-screen 41 remains unchanged and is the same as the size in the sub-screen 42 .

[0096] In a possible implementation, after the window 40 is moved to the sub-screen 41 , it is displayed centered within the display area of ​​the sub-screen 41 by default.

[0097] In a possible implementation, the relative position of the window 40 in the display area of ​​the sub-screen remains unchanged before and after the movement.

[0098] In a possible implementation, an animation effect may be used to present the process of window 40 moving from position 2 of sub-screen 42 to sub-screen 41 .

[0099] Example 2

[0100] refer to Figure 5 , similar to Figure 4 In the method shown, a "fling" operation is performed on window 50 to move window 50 from the display area of ​​sub-screen 51 to the display area of ​​sub-screen 52. The position of window 50 within the display area of ​​sub-screen 52 is related to the speed of the "fling" operation. The speed of the "fling" operation can be calculated based on the length of the trajectory of the "fling" operation and the operation time.

[0101] Specifically, such as Figure 5 As shown in (a) of FIG. 5 , the speed of the “throwing” operation performed on the window 50 is represented as speed 1. Figure 5As shown in (b) of FIG. , the speed of the "fling" operation performed on window 50 is represented as speed 2, which is greater than speed 1. Therefore, when window 50 is "flinged" at speed 2, the window is further away from the upper edge of the display area of ​​sub-screen 52 than when window 50 is "flinged" at speed 1. In other words, the faster the "flinging" speed, the further the window's position within the display area of ​​the target sub-screen is from the upper edge of the target sub-screen. This allows the user to perceive that the faster the flinging speed, the further the window is flung, thereby improving the user experience.

[0102] Similarly, a substantially identical method may be used to move a window in the display area of ​​the sub-screen 52 to the display area of ​​the sub-screen 51 .

[0103] Example 3

[0104] refer to Figure 6 , similar to Figure 4 In the method shown, a "fling" operation is performed on window 60 to move window 60 from the display area of ​​sub-screen 61 to the display area of ​​sub-screen 62. The position of window 60 within the display area of ​​sub-screen 62 is related to the direction of the "fling" operation. The direction of the "fling" operation can be determined based on the trajectory of the "fling" operation.

[0105] Specifically, such as Figure 6 As shown in (a) of FIG. 1 , the direction of the “throwing” operation on the window 60 is represented as direction 1. Figure 6 As shown in (b) of FIG. 1 , the direction of the "fling" operation on window 60 is represented as Direction 2, with Direction 1 being to the left and Direction 2 being to the right. Therefore, when window 60 is "flinged" in Direction 1, it is positioned closer to the left edge of sub-screen 62's display area; when window 60 is "flinged" in Direction 2, it is positioned closer to the right edge of sub-screen 62's display area. In other words, the position of a window within the target sub-screen's display area is correlated with the direction of the window's "fling," thereby enhancing the user experience.

[0106] Similarly, a substantially identical method may be used to move a window in the display area of ​​the sub-screen 62 to the display area of ​​the sub-screen 61 .

[0107] Example 4

[0108] When using similar Figure 4 or Figure 5 or Figure 6 In the method shown, when multiple windows are moved from a source sub-screen to a target sub-screen in sequence, the multiple windows can be avoided in the display area of ​​the target sub-screen, for example, they can be displayed in a stacked manner.

[0109] like Figure 7 As shown in (a), after the window moves from the display area of ​​the sub-screen 71 to the display area of ​​the sub-screen 72, the window is displayed in the center as an example, using the above Figure 4 After the window 701 is moved from the sub-screen 71 to the sub-screen 72 in the manner shown, the window 701 is displayed in the center of the display area of ​​the sub-screen 72. Figure 4 In the manner shown, window 702 is moved from sub-screen 71 to sub-screen 72, and window 702 is stacked on window 701. That is, the window moved later can be stacked on the window moved earlier in the order of precedence.

[0110] Optionally, the position of window 702 is offset downward and rightward by a certain distance relative to window 701 . For example, the distance may be the height of the window title bar.

[0111] Optionally, within the display area of ​​the sub-screen 72, the size of the window 702 may be equal to the size of the window 701. Of course, the size of the window 702 may also remain unchanged. This application is not limited thereto.

[0112] The embodiment of the present application does not limit the stacking method, but the multiple windows stacked together do not completely overlap, for example, part of each window is not blocked by other windows, so that the user can easily select a window for operation. An example of a stacking method is as follows: Figure 7 As shown in (a) in FIG, all or part of the status bar of each window is not blocked by other windows.

[0113] like Figure 7 As shown in (b), after the window moves from the display area of ​​sub-screen 71 to the display area of ​​sub-screen 72, the position of the window in the display area of ​​the target sub-screen is related to the direction of the "throwing" operation. Figure 6 In the manner shown, after the window 701 near the right edge of the display area of ​​the sub-screen 71 is moved from the sub-screen 71 to the sub-screen 72, the window 701 is displayed in the middle position of the display area of ​​the sub-screen 72. Figure 6 In the manner shown, window 702 near the left edge of sub-screen 71 is moved from sub-screen 71 to sub-screen 72. According to the direction of the "throwing" operation, window 702 should originally be displayed in the middle position within the display area of ​​sub-screen 72 (i.e., overlapping with the position of the current window 701). However, in order to avoid window 701 in sub-screen 72, window 702 is stacked on top of window 701.

[0114] Similarly, in the case where the position of a window in the display area of ​​the target sub-screen is related to the speed of the "throwing" operation, avoidance of multiple windows in the display area of ​​the target sub-screen can also be achieved.

[0115] Example 5

[0116] refer to Figure 8 (a) is a schematic diagram of the window movement process provided in Example 5 of the embodiment of the present application. Figure 8 As shown in (a) of FIG, the foldable screen PC is in the folded state, and window 80 is displayed in the display area of ​​sub-screen 81. Window 80 is a full-screen window, that is, the size of window 80 is the same as the display area of ​​sub-screen 41. The user "presses" their finger on the title bar of window 80 and drags window 80 toward sub-screen 82, causing window 80 to move from position 1 to position 2. At position 2, the user "lifts" their finger, ending the drag operation. This drag operation is fast and has a short dragging trajectory, which is equivalent to "throwing" window 80 toward sub-screen 82.

[0117] In response to the above-mentioned “fling” operation, the foldable screen PC moves window 80 from the display area of ​​sub-screen 81 to the display area of ​​sub-screen 82 .

[0118] In a possible implementation, after the window 80 is moved to the display area of ​​the sub-screen 82 , it is displayed in the display area of ​​the sub-screen 82 in full-screen mode by default.

[0119] In one possible implementation, an animation effect can be used to present the process of window 80 moving from position 2 of sub-screen 81 to sub-screen 82. For example, the animation effect can be to sequentially display windows at different positions along the window movement path, that is, to play the window movement process. For another example, when playing the window movement process, a display effect can be used that first fades out of sub-screen 81 and then fades in to sub-screen 82. This application is not limited to this.

[0120] In one possible implementation, if the window being moved is a full-screen window, when the user starts to drag the window, the window is displayed in a reduced size, and when the window is moved to the target sub-screen, the window is restored to full-screen display. A possible example is Figure 8 As shown in (b) in .

[0121] refer to Figure 8In (b), when the user "presses" their finger on the title bar of window 80, or begins dragging, for example, when the dragging distance reaches the height of the title bar of window 80, window 80 exits full-screen mode. After exiting full-screen mode, window 80 is reduced in size, transforming from a full-screen window to a free window. When the user "tosses" window 80, window 80 moves from sub-screen 81 to sub-screen 82. During the window movement process, window 80 remains in the free window state within the display area of ​​sub-screen 81. When window 80 moves to sub-screen 82, it transforms into the full-screen window state, i.e., it is displayed as a full-screen window within the display area of ​​sub-screen 82.

[0122] Optionally, after the window 80 is dragged out of the full screen mode, the window 80 can be scaled down proportionally with the drop point on the title bar of the window 80 being the reference point. That is, the relative position of the drop point in the window 80 remains unchanged before and after the reduction.

[0123] Optionally, when the dragging ends, the window 80 returns to full screen mode; or, when the reduced window 80 moves to the display area of ​​the second sub-screen (for example, the title bar of the window 80 enters the display area of ​​the second sub-screen), the window 80 returns to full screen mode. This application is not limited to this.

[0124] Similarly, a substantially identical method may be used to move a window in the display area of ​​the sub-screen 82 to the display area of ​​the sub-screen 81 .

[0125] It should be understood that although Examples 1 to 5 above are described using a foldable screen PC as an example, the methods provided in the embodiments of the present application can be applied to any electronic device with a foldable display screen, such as a foldable screen mobile phone, tablet computer, wearable device, etc.

[0126] It should be understood that the operating systems that can be installed on the electronic devices involved in the embodiments of the present application include but are not limited to Harmony Or other operating systems.

[0127] The following combination Figure 9 , the general process of the interactive display method provided in the embodiment of the present application is described.

[0128] refer to Figure 9 , is a flow chart of an interactive display method provided in an embodiment of the present application, which can be executed by an electronic device with a foldable display screen. An example of the electronic device is Figure 1The foldable screen PC shown. When the electronic device is in the folded state, the foldable display is folded into a first sub-screen and a second sub-screen. The first sub-screen is a vertical sub-screen and the second sub-screen is a horizontal sub-screen, or the first sub-screen is a horizontal sub-screen and the second sub-screen is a vertical sub-screen. This process describes the process of moving the first window in the display area of ​​the first sub-screen to the display area of ​​the second sub-screen when the electronic device is in the folded state.

[0129] like Figure 9 As shown, when the electronic device is in the folded state, the process may include the following steps:

[0130] Step 901: The electronic device displays a first window in a display area of ​​a first sub-screen.

[0131] In some possible scenarios, the user can click the icon of the first application in the display area of ​​the first sub-screen with a finger or mouse to open the first application. At this time, the user interface of the first application (i.e., the first window) is displayed in the display area of ​​the first sub-screen.

[0132] In some other possible scenarios, the user may start the first application program by voice, and the user interface of the first application program (ie, the first window) is displayed in the display area of ​​the first sub-screen.

[0133] In some other possible scenarios, when a first application is already opened and a second window of the application is already displayed in the first sub-screen, when the user triggers a function key (such as a button or link or other control) in the second window, in response, the electronic device opens the corresponding first window, and the first window is displayed in the display area of ​​the first sub-screen.

[0134] It should be understood that the above merely exemplifies some implementations of displaying the first window in the display area of ​​the first sub-screen, and the present application does not impose any limitation thereto.

[0135] Step 902: The electronic device receives a first operation of the user on the first sub-screen.

[0136] The first operation is to drag the first window, the dragging direction is toward the second sub-screen, and the dragging ends on the first sub-screen. In other words, the first operation can be a drag operation, and the dragging distance of the drag operation is short, it is performed only within the first sub-screen, and the direction of the dragging operation is toward the second sub-screen. For example, if the first operation is a user's finger dragging operation, the user's finger remains in contact with the screen during the first operation until the first operation ends.

[0137] Taking the drag operation of a single finger or mouse as an example, the drag operation usually includes the following three events: press (down), move (move) and lift (up). Among them, the press (down) event is the start event of the drag operation, and the information corresponding to the event includes a timestamp and position. The timestamp is the time when the down event occurs, and the position is the screen coordinate corresponding to the down event. Lift (up) is the end event of the drag operation. The information corresponding to the event includes a timestamp and position. The timestamp is the time when the up event occurs, and the position is the screen coordinate corresponding to the up event. The information corresponding to the move (move) event includes the timestamps and screen coordinates of multiple points. The multiple points form the trajectory of the drag operation on the screen. After the down event occurs, the electronic device can collect the position of the user's finger or mouse on the screen in the down state according to the set frequency to obtain relevant information of the move event.

[0138] In some scenarios, the user's purpose of dragging a window is to move the window within the display area of ​​the first sub-screen where it is currently located, rather than to move the window to the second sub-screen. Therefore, to avoid misoperation, in some embodiments of the present application, when the electronic device detects a drag operation on the first window, it can also determine whether the drag operation meets the conditions for moving the first window from the first sub-screen to the second sub-screen. If it is determined that the conditions are met, the first window is moved from the first sub-screen to the second sub-screen. Otherwise, the first window is moved to the corresponding position according to the screen coordinates corresponding to the up event of the drag operation.

[0139] Specifically, after the electronic device receives the first operation for dragging the first window, it can determine whether the speed and / or direction of the dragging meets the first condition. If the speed and / or direction of the dragging meets the first condition, then in response to the first operation, the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0140] Exemplary cases include the following three situations:

[0141] Case 1: The first condition is that the dragging speed is greater than or equal to the speed threshold, that is, if the dragging speed is greater than or equal to the speed threshold, the electronic device determines that the first window needs to be moved from the first sub-screen to the second sub-screen.

[0142] The dragging speed can be determined based on the dragging trajectory length and dragging duration. The dragging trajectory length can be determined based on the screen coordinates corresponding to the down event, the move event, and the up event. The motion trajectory of the dragging operation can be obtained based on the screen coordinates, and the length of the motion trajectory can be determined. The dragging duration can be determined based on the timestamp corresponding to the down event and the timestamp corresponding to the up event. The dragging duration is the time interval between the timestamp corresponding to the up event and the timestamp corresponding to the down event.

[0143] Optionally, the speed threshold may be 25.4 mm / s, which is not limited in this application.

[0144] Optionally, the speed threshold may be set by the system. The speed threshold may also be set by the user. For example, the user may enter a speed threshold value on a settings interface, or select from candidate speed thresholds or speed threshold levels provided by the system, or select a value from a range of possible speed threshold values ​​using a slider or other control provided by the system.

[0145] Case 2: The first condition is that the angle between the dragging direction and the first reference line is less than or equal to the angle threshold, the first reference line is a straight line on the first plane that is perpendicular to the folding axis of the foldable display, and the first plane is the plane where the first sub-screen is located, or the first plane is parallel to the plane where the first sub-screen is located.

[0146] For example, Figure 10 The angle between the dragging direction and the first vertical line is shown. Figure 10 As shown, the first reference line is a straight line perpendicular to the folding axis in the plane where the first sub-screen is located, and the angle between the straight line and the dragging direction is θ. If θ is less than or equal to the angle threshold, it is considered that the first condition is met.

[0147] Optionally, the angle threshold may be a value less than 45°, for example, 25°, which is not limited in this application.

[0148] Optionally, the angle threshold may be set by the system. Alternatively, the angle threshold may be set by the user. For example, the user may enter a value for the angle threshold on a settings interface, or select from candidate angle thresholds provided by the system, or select a value from a range of possible angle threshold values ​​using a slider or other controls provided by the system.

[0149] It should be understood that the above-mentioned first condition can also be expressed as: the angle between the dragging direction and the second reference line is greater than or equal to the angle threshold, the second reference line is a straight line on the first plane parallel to the folding axis of the foldable display, the first plane is the plane where the first sub-screen is located, or the first plane is parallel to the plane where the first sub-screen is located.

[0150] For example, the direction of the drag can be determined based on the drag trajectory and the screen coordinates corresponding to the up event. For example, if the drag trajectory is a straight line, the drag direction is the direction indicated by the straight line; if the drag trajectory is a curve, the point where the screen coordinates corresponding to the up event are located is the tangent point (i.e., the intersection of the curve and the tangent), and the direction of the tangent of the curve is the drag direction.

[0151] Case 3: The first condition is that the dragging speed is greater than or equal to the speed threshold, and the angle between the dragging direction and the first reference line is less than or equal to the angle threshold.

[0152] That is to say, the dragging operation that meets the first condition can be a dragging operation with a shorter distance and faster speed, similar to "swinging" the first window. Therefore, in the embodiment of the present application, the dragging operation that meets the first condition can be called a "swinging" operation.

[0153] Step 903: In response to the first operation, the electronic device moves the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0154] In the embodiment of the present application, the states of the first window in the first sub-screen and the second sub-screen may include the following situations:

[0155] Case 1: The first window is not displayed full screen in the display area of ​​the first sub-screen. After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is not displayed full screen in the display area of ​​the second sub-screen. In other words, the first window is a free window in the first sub-screen and remains a free window after moving to the second sub-screen.

[0156] Case 2: The first window is not displayed full screen in the display area of ​​the first sub-screen. After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed full screen in the display area of ​​the second sub-screen. In other words, the first window is a free window in the first sub-screen and becomes a full screen window after moving to the second sub-screen.

[0157] Case 3: The first window is displayed full screen in the display area of ​​the first sub-screen. After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed full screen in the display area of ​​the second sub-screen. In other words, the first window is a full screen window in the first sub-screen and remains a full screen window after moving to the second sub-screen.

[0158] Case 4: The first window is displayed full screen in the display area of ​​the first sub-screen. After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed non-full screen in the display area of ​​the second sub-screen. In other words, the first window is a full screen window in the first sub-screen, but becomes a free window after moving to the second sub-screen.

[0159] In a possible implementation, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is a free window and is centered in the display area of ​​the second sub-screen, or is centered in the display area of ​​the application window in the display area of ​​the second sub-screen, or is centered in the display area of ​​the application window in the display area of ​​the second sub-screen. A possible example can refer to the relevant content in the above example 1 and Figure 4 .

[0160] In one possible implementation, if the first window is a free window in both the first sub-screen and the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the relative position of the first window in the display area of ​​the second sub-screen remains unchanged from the relative position in the display area of ​​the first sub-screen. For a possible example, refer to the relevant content of Example 1 above.

[0161] In one possible implementation, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is a free window, and its position in the display area of ​​the second sub-screen is related to the speed of the dragging operation. Specifically, the position of the first window in the display area of ​​the second sub-screen can be determined based on the correlation between the dragging speed and the window position, and the first window can be displayed at that position. A possible example can refer to the relevant content in the above example 2 and Figure 5 .

[0162] For example, the display area of ​​the second sub-screen can be divided into two areas along the horizontal direction, such as Figure 11The display area of ​​the second sub-screen is divided into a first sub-area and a second sub-area by a horizontal center line; and three different speed intervals are set, which are in ascending order: a first speed interval, a second speed interval and a third speed interval. Accordingly, an example of the association between the dragging speed and the window position is: if the dragging speed is in the first speed interval, then in the display area of ​​the second sub-screen, the center point of the first window is located in the first sub-area of ​​the display area of ​​the second sub-screen, that is, the first window is close to the upper edge of the display area of ​​the second sub-screen; if the dragging speed is in the second speed interval, then in the display area of ​​the second sub-screen, the center point of the first window coincides with the horizontal center point of the display area of ​​the second sub-screen; if the dragging speed is in the third speed interval, then in the display area of ​​the second sub-screen, the center point of the first window is located in the second sub-area of ​​the display area of ​​the second sub-screen, that is, the first window is close to the lower edge of the display area of ​​the second sub-screen.

[0163] Optionally, the initial data of the association between the dragging speed and the window position can be set by the system, and can be subsequently learned or updated based on user operations so that the association can match the user's operating habits. Specifically, after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, if the position of the first window changes in the vertical direction within the display area of ​​the second sub-screen within a first time period, then the above association is updated based on the changed vertical position of the first window and the dragging speed (the dragging speed refers to the speed of the dragging operation to move the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen). That is to say, after moving the first window from the first sub-screen to the second sub-screen based on the first operation, if the user adjusts the position of the first window in the display area of ​​the second sub-screen within a shorter period of time (within the first time period), it indicates that the adjusted position is the display position of the first window that the user wants at the speed of the first operation.

[0164] Optionally, the first duration may be, for example, 5 seconds or 10 seconds, which is not limited in this application.

[0165] Optionally, the first duration may be set by the system or by the user.

[0166] Optionally, learning the relationship between drag speed and window position can be enabled or disabled by the system by default. In some embodiments, the user can be allowed to choose to enable or disable this function. This application is not limited thereto.

[0167] In one possible implementation, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is a free window, and its position in the display area of ​​the second sub-screen is related to the direction of the drag operation. Specifically, the position of the first window in the display area of ​​the second sub-screen can be determined based on the correlation between the drag direction and the window position, and the first window can be displayed at that position. A possible example can refer to the relevant content in the above example three and Figure 6 .

[0168] For example, the display area of ​​the second sub-screen can be divided into two areas along the vertical direction, such as Figure 12 The display area of ​​the second sub-screen is divided into a first sub-area and a second sub-area by a vertical center line; and three different angle intervals are set, where the angle refers to the angle between the drag direction and the first reference line, such as Figure 12 As shown, the three angle intervals are: the first angle interval, the second angle interval, and the third angle interval. Accordingly, an example of the association between the dragging direction and the window position is: if the angle corresponding to the dragging direction is in the first angle interval, then within the display area of ​​the second sub-screen, the center point of the first window is in the first sub-area of ​​the display area of ​​the second sub-screen, that is, the first window is close to the left edge of the display area of ​​the second sub-screen; if the angle corresponding to the dragging direction is in the second angle interval, then within the display area of ​​the second sub-screen, the center point of the first window coincides with the vertical center line of the display area of ​​the second sub-screen; if the angle corresponding to the dragging direction is in the third angle interval, then within the display area of ​​the second sub-screen, the center point of the first window is in the second sub-area of ​​the display area of ​​the second sub-screen, that is, the first window is close to the right edge of the display area of ​​the second sub-screen.

[0169] Optionally, the initial data of the association between the dragging direction and the window position can be set by the system, and can be subsequently learned or updated based on user operations so that the association can match the user's operating habits. Specifically, after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, if the position of the first window changes horizontally within the display area of ​​the second sub-screen within a first time period, then the above association is updated based on the angle corresponding to the horizontal position of the first window after the change and the direction of dragging (the direction of dragging refers to the direction of the dragging operation to move the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen). That is, after moving the first window from the first sub-screen to the second sub-screen based on the first operation, if the user adjusts the position of the first window in the display area of ​​the second sub-screen within a shorter period of time (within the first time period), it indicates that the adjusted position is the display position of the first window that the user wants at the speed of the first operation.

[0170] Optionally, the first duration may be, for example, 5 seconds or 10 seconds, which is not limited in this application.

[0171] Optionally, the first duration may be set by the system or by the user.

[0172] Optionally, the function of learning or updating the relationship between the drag direction and the window position can be enabled or disabled by the system by default. In some embodiments, the user can be allowed to choose to enable or disable this function. This application is not limited thereto.

[0173] In one possible implementation, if the first window is a free window, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the position of the first window within the display area of ​​the second sub-screen is related to the speed and direction of the drag operation. Specifically, the position of the first window within the display area of ​​the second sub-screen can be determined based on the correlation between the drag speed and direction and the window position, and the first window can be displayed at that position.

[0174] In one possible implementation, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the position of the first window in the display area of ​​the second sub-screen is related to the pressure of the dragging operation. The touch screen or pressure sensor of the electronic device can detect the pressure of the user's operation. When the electronic device detects that the pressure of the user's finger is greater when performing the dragging operation, it indicates that the user "forced" the window to be swung, and accordingly, the window will move a longer distance, that is, the position of the window in the second sub-screen will be away from the folding axis; when the electronic device detects that the pressure of the user's finger is less when performing the dragging operation, it indicates that the user "did not force" the window to be swung, and accordingly, the window will move a shorter distance, that is, the position of the window in the second sub-screen will be closer to the folding axis.

[0175] For example, the position of the first window in the display area of ​​the second sub-screen may be determined based on the correlation between the dragging pressure and the window position, and the first window may be displayed at the position.

[0176] Optionally, the initial data of the association between the dragging pressure and the window position can be set by the system, and can be subsequently learned or updated based on user operations so that the association can match the user's operating habits. Specifically, after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, if the position of the first window changes in the vertical direction within the display area of ​​the second sub-screen within a first time period, then the above association is updated based on the vertical position of the first window after the change and the pressure (the pressure refers to the pressure of the drag operation to move the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen). That is to say, after moving the first window from the first sub-screen to the second sub-screen based on the first operation, if the user adjusts the position of the first window in the display area of ​​the second sub-screen within a short period of time (within the first time period), it indicates that the adjusted position is the display position of the first window that the user wants under the pressure of the first operation.

[0177] In one possible implementation, the first window is displayed in full screen in the first sub-window before being moved. After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen in the display area of ​​the second sub-screen. A possible example can refer to the relevant content in the above example 5 and Figure 8 .

[0178] Optionally, when the first window in full-screen mode is moved to the display area of ​​the second sub-screen, when the first window starts to be dragged, the first window can be exited from full-screen mode, that is, transformed into a free window. After being moved to the display area of ​​the second sub-screen, it is restored to full-screen mode, thereby displaying the first window in full screen in the display area of ​​the second sub-screen.

[0179] Specifically, in one possible implementation, the above process may include: in response to a start event of a drag operation (such as a down event), the first window is selected and the first window exits full-screen mode; in response to a move event of the drag operation, the first window that exits full-screen mode is moved; in response to an end event of the drag operation, the first window is moved to the display area of ​​the second sub-screen, and the first window is restored to full-screen mode. In another possible implementation, the above process may include: in response to a start event of a drag operation (such as a down event), the first window is selected; in response to a move event of the drag operation, the first window exits full-screen mode (for example, when the drag distance is equal to the height of the status bar of the first window), the first window that exits full-screen mode is moved; in response to an end event of the drag operation, the first window is moved to the display area of ​​the second sub-screen, and the first window is restored to full-screen mode.

[0180] In one possible implementation, for a window of a larger size, such as a window whose height and / or width exceeds the display area of ​​the second sub-screen, the embodiment of the present application may further define display rules for this situation.

[0181] Specifically, if the height of the first window is greater than the height of the display area of ​​the second sub-screen, then after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the upper edge of the first window coincides with the upper edge of the display area of ​​the second sub-screen. If the width of the first window is greater than the width of the display area of ​​the second sub-screen, then after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the left edge of the first window coincides with the left edge of the display area of ​​the second sub-screen.

[0182] Optionally, when the display area of ​​the second sub-screen includes the Dock bar and the status bar, if the height of the first window is greater than the height of the displayable area of ​​the application window of the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the upper edge of the first window coincides with the upper edge of the displayable area of ​​the application window of the second sub-screen; if the width of the first window is greater than the width of the displayable area of ​​the application window of the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the left edge of the first window coincides with the left edge of the displayable area of ​​the application window of the second sub-screen.

[0183] It should be understood that if the display area of ​​the second sub-screen includes the Dock bar and the status bar, the above-mentioned "display area of ​​the second sub-screen" can be replaced with "the application window displayable area of ​​the second sub-screen", and the application window displayable area of ​​the second sub-screen is the display area after removing the Dock bar and the status bar in the display area of ​​the second sub-screen.

[0184] In one possible implementation, before the first window is moved, the following situation may exist: a part of the first window (such as the upper half) is displayed in the display area of ​​the first sub-screen, and the other part (such as the lower half) is displayed in the display area of ​​the second sub-screen, that is, the first window is displayed across the folding axis. This state can be called a hovering state. In the hovering state, since the title bar of the first window is displayed in the display area of ​​the first sub-screen, it can be regarded as the first window currently displayed in the display area of ​​the first sub-screen. In this case, the method provided in the above embodiment of the present application can be used to move the first window to the display area of ​​the second sub-screen.

[0185] In a possible implementation, when multiple free windows are moved from the first sub-screen to the second sub-screen in sequence, the multiple windows can be avoided in the display area of ​​the second sub-screen, for example, they can be displayed in a stacked manner. A possible example can refer to the relevant content in the above example 4 and Figure 7 .

[0186] Exemplarily, after moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen in the above manner, the electronic device receives a second operation, and the second operation is used to drag the second window displayed in the first sub-screen, the direction of dragging points to the second sub-screen, and the end position of the dragging is located on the first sub-screen, that is, the user performs a "tossing" operation on the second window in the display area of ​​the first sub-screen. In response to the second operation, the electronic device moves the second window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, and the second window is overlapped with the first window and the positions are staggered. Optionally, the second window is displayed on the upper layer of the first window.

[0187] Optionally, if other user operations are inserted in the process of continuously throwing multiple windows to the second sub-screen, when the window throwing operation is performed after the other user operation, the target position of the window in the second sub-screen can be recalculated based on the window position in the second sub-screen after the other user operation.

[0188] Exemplarily, the user successively throws the first window and the second window to the second sub-screen, and the first window and the second window are displayed in a stacked manner in the second sub-screen, and the stacking order is the first window at the bottom and the second window at the top. Then, the user adjusts the position of the second window in the second sub-screen. Next, the user successively throws the third window and the fourth window to the second sub-screen, and the position of the third window on the second sub-screen can be calculated based on the position of the second window, so that the third window is stacked on top of the second window, and the position of the fourth window is determined based on the position of the third window, that is, the fourth window is stacked on top of the third window. An example can be as follows Figure 13 That is, if there are one or more free windows in the second sub-screen, when a new free window is thrown into the second sub-screen, the position of the new free window in the second sub-screen can be determined according to the position of the free window that was last operated on (e.g., window adding operation, window deleting / closing / minimizing operation, window moving operation, window resizing operation, etc.) among the one or more free windows.

[0189] above Figure 9 The description mainly takes the drag operation of a single finger or a mouse as an example. It should be understood that other operations, such as the drag operation using a stylus or the non-contact user gesture operation, are implemented in the same way. Figure 9 Similar, no further details.

[0190] above Figure 9 In the process shown, the window is moved from one sub-screen to another sub-screen by the first operation. Figure 3 The dragging operation shown can shorten the distance of the user's dragging operation, so that the window can be moved more quickly and conveniently, and can avoid contact with the folding axis area, thereby reducing physical damage to the folding axis area and extending the service life of the electronic device.

[0191] In some embodiments of the present application, the software architecture of the electronic device is enhanced to enable the electronic device to achieve the above Figure 9 The process shown.

[0192] The following combination Figure 14 The software architecture of the electronic device in the embodiment of the present application is described.

[0193] refer to Figure 14 , is the software architecture of the electronic device in the embodiment of this application. Figure 14 As shown, the software system architecture of the electronic device can be a layered architecture. For example, the software can be divided into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers: from top to bottom, the application layer, the application framework layer (framework, FWK), the runtime and system library layer, the kernel layer, and the hardware layer.

[0194] The application layer can include a series of application packages. Figure 14 As shown, the application layer may include document editing, memo, camera, sticky notes, video, and music, etc.

[0195] In one possible implementation, applications can be developed using Java by calling the application programming interface (API) provided by the application framework layer. Developers can use the application framework layer to interact with the underlying operating system layers (e.g., the hardware layer, kernel layer, etc.) to develop their own applications. The application framework layer primarily provides a series of services and management systems for the operating system.

[0196] The application framework layer provides application programming interfaces and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. Figure 14 As shown, the application framework layer may include an activity manager, a window manager, a screen manager, an event processing module, a resource manager, a notification manager, a view system, and the like.

[0197] The activity manager is used to manage the life cycle of each application and provide common navigation back functions, providing an interactive interface for all program windows.

[0198] The window manager manages windowed applications. It can determine the display size, determine whether a status bar is present, lock the screen, take screenshots, and more. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book.

[0199] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0200] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, etc.

[0201] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0202] The runtime consists of a core library and a virtual machine. The runtime is responsible for operating system scheduling and management. The core library consists of two parts: one for the Java language's callable functions and the other for the operating system's core libraries. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine performs functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0203] The system library may include multiple functional modules. For example: surface manager, media framework, three-dimensional graphics processing library (for example: OpenGL ES), two-dimensional graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provides the fusion of two-dimensional and three-dimensional layers for multiple applications. The media framework supports a variety of commonly used audio and video format playback and recording, as well as static image files, etc. The media framework can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc. The two-dimensional graphics engine is a drawing engine for two-dimensional drawing. In some embodiments, the three-dimensional graphics processing library can be used to draw three-dimensional motion trajectory images, and the two-dimensional graphics engine can be used to draw two-dimensional motion trajectory images.

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

[0205] The hardware layer can include various sensors, such as accelerometers, gravity sensors, touch sensors, etc.

[0206] Based on the above system architecture, in an embodiment of the present application, the window manager can move windows across screens based on user operations; the screen manager can manage the status of the electronic device, and when the electronic device is in a folded state, manage the position distribution of windows in the sub-screen, and can provide the window manager with status information of the electronic device and position distribution information of windows in the sub-screen; the event management module can obtain event information of user operations.

[0207] It should be understood that the software programs and / or modules corresponding to the software system architecture in the electronic device can be stored in the internal memory, and the processor can run the software programs and applications stored in the internal memory to execute the process of the display method provided in the embodiment of the present application.

[0208] Based on the above Figure 14 The system architecture shown, Figure 15 A flow chart showing a method for implementing the display method provided in an embodiment of the present application through interaction between functional modules such as a window manager and a screen manager is shown.

[0209] like Figure 15 As shown, at 1500, the window manager may query the screen manager about the current state of the electronic device, such as whether the electronic device is currently in a folded state or an unfolded state. Optionally, the window manager may initiate a query to the screen manager at a set period, or may initiate a query to the screen manager when a change in the folding axis angle of the electronic device is detected, which is not limited in this application.

[0210] When the user performs the fling operation described in the embodiment of the present application on the first window in the display area of ​​the first sub-screen, the interaction process between the window manager and the screen manager is shown as 1510, 1520 and 1530 respectively according to the three stages included in the fling operation.

[0211] When the user presses the title bar of the first window in the display area of ​​the first sub-screen with a finger or a mouse, the interactive process shown in 1510 is triggered. Specifically, after the user presses the title bar of the first window in the display area of ​​the first sub-screen with a finger or a mouse, the event management module can obtain a start event (down event), that is, obtain relevant information about the down event, such as the timestamp and location information of the down event, and the location information can indicate the position of the first window in the display area of ​​the first sub-screen when the down event occurs. The event management module passes the down event to the window manager, that is, passes the relevant information about the down event to the window manager. The window manager determines whether the first window is a full-screen window. If it is a full-screen window, the first window exits the full-screen mode. If it is not a full-screen window, the current mode remains unchanged (for example, the first window is kept in free window mode). The window manager also determines the current state of the electronic device. If the electronic device is currently in a folded state, the first window is marked to exit the full-screen mode in the folded state.

[0212] Optionally, after the window manager exits the full-screen mode of the first window, it may reduce the size of the first window and adaptively adjust the position of the cursor on the title bar of the first window.

[0213] Functional modules such as the view system can refresh the display area of ​​the first sub-screen according to the relevant parameters of the first window provided by the window manager, so that the reduced first window can be displayed in the display area of ​​the first sub-screen. This process is not shown in the figure.

[0214] When the user moves the first window with a finger or mouse while keeping it pressed, the interactive process shown in 1520 is triggered. Specifically, when the user moves the first window with a finger or mouse while keeping it pressed, the event management module can obtain a move event (move event), that is, obtain relevant information of the move event, such as the timestamp and position information of the move event, and the position information can indicate the position of the first window in the display area of ​​the first sub-screen at the time of the timestamp. The event management module passes the move event to the window manager, that is, passes the relevant information of the move event to the window manager. The window manager determines the current state of the electronic device. If the electronic device is currently in a folded state, the position of the first window is determined based on the received event information.

[0215] It can be understood that when the user moves the first window with his finger or mouse while keeping it pressed, the interaction process shown in 1520 is executed multiple times, that is, the interaction process shown in 1520 is executed once at each sampling moment, thereby obtaining relevant information (such as time and position) of the sampling point corresponding to the current sampling moment on the trajectory of the throwing operation.

[0216] While the user is moving the first window with their finger or mouse while holding it down, the view system and other functional modules can refresh the display area of ​​the first sub-screen based on the first window's related parameters provided by the window manager, thereby displaying the movement of the first window within the display area of ​​the first sub-screen. This process is not shown in the figure.

[0217] When the user lifts his finger or mouse, the interactive process shown in 1530 is triggered. Specifically, when the user lifts his finger or mouse, the event management module can obtain the end event (up event), that is, obtain relevant information of the up event, such as the timestamp and position information of the up event, and the position information can indicate the position of the first window in the display area of ​​the first sub-screen when the up event occurs. In an embodiment of the present application, the position of the up event is within the display area of ​​the first sub-screen. The event management module passes the up event to the window manager, that is, passes the relevant information of the up event to the window manager. The window manager determines the speed and / or direction of the throwing operation based on the received event information. If the speed and / or direction of the throwing operation meets the first condition, the subsequent steps of this process are executed; otherwise, the process is exited and can be processed in an existing conventional manner, such as according to the following. Figure 3 The process is processed in the manner shown. This process is described by taking the case where the speed and / or direction of the fling operation satisfies the first condition as an example. When the window manager determines that the speed and / or direction of the fling operation satisfies the first condition, it queries the screen manager for the sub-screen where the first window is currently located, thereby determining the target sub-screen for the first window. The window manager also determines whether the first window is marked to exit full-screen mode in the folded state. If so, the first window is restored to full-screen mode in the target sub-screen.

[0218] In one possible implementation, after determining that the speed and / or direction of the fling operation satisfies the first condition, the window manager may further determine the position of the first window within the display area of ​​the target sub-screen (the second sub-screen in this process). The position of the first window within the display area of ​​the target sub-screen may be one of the following: centered, full screen, stacked with other windows, or the position of the first window within the display area of ​​the target sub-screen may be related to the speed and / or direction of the fling operation, etc. For details, please refer to the relevant content of the aforementioned embodiment.

[0219] In one possible implementation, when the window manager determines that the speed and / or direction of the throwing operation meets the first condition, it can also determine the window parameters (for example, including position, size, transparency, etc.) at multiple points on the path of the first window in the process of moving from the position corresponding to the up event to the target position according to a preset motion effect strategy.

[0220] Functional modules such as the view system can refresh the display area of ​​the first sub-screen based on the relevant parameters of the first window provided by the window manager, thereby displaying an animation of the first window moving from the position corresponding to the up event to the target position within the display area of ​​the target sub-screen, and ultimately displaying the first window at the target position within the display area of ​​the target sub-screen. This process is not shown in the figure.

[0221] Understandably, the above Figure 15 The interactive process shown only shows the functional modules related to the method provided in the embodiment of the present application. Those skilled in the art will understand that the window movement process may also involve other functional modules, such as drawing-related modules, display drivers, etc., which are not limited by the present application.

[0222] Understandably, the above Figure 15 The interaction process shown is only a possible example and is not limited in this application.

[0223] It is understandable that in order to implement the electronic device functions in the above embodiments, the electronic device includes a hardware structure and / or software structure corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0224] Figure 16 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, with reference to Figure 16 The electronic device may include a processing module 1601 and a display module 1602. The electronic device may be used to implement the method performed by the electronic device in the above embodiment. The electronic device may be the electronic device itself, or a chip or chipset in the electronic device, or a part of the chip used to perform the functions of the related method.

[0225] When the electronic device 1600 is used to implement the functions of the electronic device in the embodiment of the present application: the processing module 1601 is used to control the display module 1602 to display the first window in the display area of ​​the first sub-screen; receive the user's first operation on the first sub-screen, the first operation is used to drag the first window, the direction of the dragging points to the second sub-screen, and the end position of the dragging is located on the first sub-screen; in response to the first operation, move the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen.

[0226] For more detailed description of the processing module 1601 and the display module 1602, please refer to Figure 9 or Figure 15 The relevant description in the method embodiment shown is directly obtained and will not be repeated here.

[0227] It should be noted that the processing module can be implemented by software or hardware. By way of example, the following describes possible implementations of the processing module.

[0228] As an example of a software functional unit, a processing module may include code running on a computing instance. A computing instance may include at least one of a physical host (computing device), a virtual machine, or a container. Furthermore, the computing instance may be one or more. For example, a processing module may include code running on multiple hosts, virtual machines, or containers.

[0229] As an example of a hardware functional unit, a processing module may include at least one computing device, such as a server. Alternatively, the processing module may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0230] It should be noted that in other embodiments, the electronic device may also include more or fewer modules, any module is used to execute any step in the backup disaster recovery method, and the steps that any module in the electronic device is responsible for implementing can be specified as needed, and the embodiments of the present application do not limit this.

[0231] The present application also provides an electronic device. Figure 17 As shown, electronic device 1700 includes: bus 1702, processor 1704, memory 1706, display 1707, and communication interface 1708. Processor 1704, memory 1706, display 1707, and communication interface 1708 communicate with each other via bus 1702. Electronic device 1700 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in electronic device 1700.

[0232] The bus 1702 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 17 The bus 1702 may include a path for transmitting information between various components of the electronic device 1700 (eg, the memory 1706, the processor 1704, and the communication interface 1708).

[0233] The processor 1704 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0234] The memory 1706 may include volatile memory, such as random access memory (RAM). The processor 1704 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0235] The memory 1706 stores executable program code, and the processor 1704 executes the executable program code to respectively implement the functions of the aforementioned processing module 1601, thereby implementing the method provided in the embodiment of the present application. In other words, the memory 1706 stores instructions for executing the method provided in the embodiment of the present application.

[0236] The display screen 1707 can be used to receive control from the processor 1704 to move the window, implement the functions of the aforementioned display module 1602, and thereby implement the method provided in the embodiment of the present application.

[0237] The communication interface 1703 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement the aforementioned communication module functions, or to implement communication between the electronic device 1700 and other devices or communication networks.

[0238] Based on the above embodiments, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods described in the embodiments of the present application.

[0239] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.

[0240] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.

[0241] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the various methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.

[0242] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0243] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0244] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0245] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0246] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. An interactive display method, characterized in that: Applied to an electronic device, the electronic device having a foldable display screen, wherein when the electronic device is in a folded state, the foldable display screen is folded into a first sub-screen and a second sub-screen, the method comprising: Displaying a first window in the display area of ​​the first sub-screen; receiving a first operation performed by a user on the first sub-screen, where the first operation is to drag the first window, the dragging direction is toward the second sub-screen, and the dragging ends at the first sub-screen; In response to the first operation, the first window is moved from a display area of ​​the first sub-screen to a display area of ​​the second sub-screen.

2. The method according to claim 1, wherein After receiving the first operation of the user on the first sub-screen, the method further includes: determining whether the speed and / or direction of the dragging satisfies a first condition; The step of moving the first window from the display area of ​​the first sub-screen to obtain the display area of ​​the second sub-screen in response to the first operation includes: If the speed and / or direction of the dragging satisfies the first condition, the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen in response to the first operation.

3. The method according to claim 2, wherein The speed and / or direction of the dragging satisfies a first condition, including: The dragging speed is greater than or equal to a speed threshold; or, The angle between the dragging direction and a first reference line is less than or equal to an angle threshold, where the first reference line is a straight line on a first plane that is perpendicular to the folding axis of the foldable display screen, and the first plane is the plane where the first sub-screen is located, or the first plane is parallel to the plane where the first sub-screen is located; or The dragging speed is greater than or equal to the speed threshold, and the angle between the dragging direction and the first reference line is less than or equal to the angle threshold.

4. The method according to any one of claims 1 to 3, wherein The first window is displayed in a non-full screen manner within the display area of ​​the first sub-screen; After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in a non-full screen or full screen manner in the display area of ​​the second sub-screen.

5. The method according to any one of claims 1 to 3, wherein The first window is displayed in full screen in the display area of ​​the first sub-screen; After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen or non-full screen in the display area of ​​the second sub-screen.

6. The method according to claim 5, wherein The first operation includes a start event, a move event and an end event; After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is displayed in full screen in the display area of ​​the second sub-screen, comprising: In response to the start event, the first window is selected and exits the full screen mode; In response to the move event, move the first window exiting the full screen mode; In response to the end event, the first window is moved to a display area of ​​the second sub-screen, and the first window is restored to a full-screen mode.

7. The method according to any one of claims 1 to 6, wherein: After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the first window is centered in the display area of ​​the second sub-screen; or, After the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the relative position of the first window in the display area of ​​the second sub-screen remains unchanged from the relative position in the display area of ​​the first sub-screen.

8. The method according to any one of claims 1 to 6, wherein: The moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen includes: Determining the position of the first window in the display area of ​​the second sub-screen according to an association between the first information and the window position; wherein the first information includes one or more of the following: the speed, pressure, and direction of the drag; The first window is displayed at the position.

9. The method according to claim 8, wherein Also includes: After moving the first window from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, if the position of the first window changes within the display area of ​​the second sub-screen within a first time period, the association relationship is updated based on the changed position of the first window and the first information.

10. The method according to any one of claims 1 to 9, wherein If the height of the first window is greater than the height of the display area of ​​the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the upper edge of the first window coincides with the upper edge of the display area of ​​the second sub-screen; and / or, If the width of the first window is greater than the width of the display area of ​​the second sub-screen, after the first window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, the left edge of the first window coincides with the left edge of the display area of ​​the second sub-screen.

11. The method according to any one of claims 1 to 10, wherein: Also includes: receiving a second operation performed by the user on the first sub-screen, where the second operation is for dragging a second window displayed on the first sub-screen, with the dragging direction pointing to the second sub-screen and the dragging ending position being located on the first sub-screen; In response to the second operation, the second window is moved from the display area of ​​the first sub-screen to the display area of ​​the second sub-screen, and the second window is overlapped with the first window and is staggered in position.

12. The method according to claim 11, wherein The second window is located above the first window.

13. An electronic device, characterized in that: The method comprises a unit or module for executing the method according to any one of claims 1 to 12.

14. An electronic device, characterized in that: include: The one or more processors are configured to execute the method according to any one of claims 1-12.

15. A readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed on a device, the device is caused to perform the method according to any one of claims 1 to 12.

16. A chip system, characterized in that: The device comprises a processor for supporting a computer device to implement the method according to any one of claims 1 to 12.

17. A computer program product, characterized in that The computer program product includes a program; when the computer program is run on a computer, the computer is enabled to perform the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Terminal, flexible display screen-based split-screen display method thereof and storage device

    CN107765983A

  • An icon moving method and a mobile terminal

    CN109669747A

  • Content display method and content display device

    CN115407833A

  • Full-screen window dragging method and related device

    WO2025001347A1

Cited By

  • Interaction-based display method, and apparatus

    WO2026149498A1