Desktop management method, computing device and electronic equipment

By splitting the desktop into two sub-desks and displaying them in independent areas when the display of a foldable PC switches from an unfolded state to a folded state, the layout chaos problem of foldable PCs during form changes is solved, thus improving the user experience.

CN121596964APending Publication Date: 2026-03-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411179967.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

When foldable PCs change form, the layout of content such as the system desktop and application windows on the display becomes chaotic, affecting user interaction and leading to a decline in user experience.

Method used

By splitting the desktop into two sub-desks when the display of a foldable PC switches from an unfolded state to a folded state, and displaying them in two independent areas, the system ensures that all elements are displayed in an orderly manner and provides a desktop management window for easy management and switching of sub-desks.

Benefits of technology

It effectively prevents desktop element layout chaos and improves the smoothness of operation and user experience when switching between different modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121596964A_ABST
    Figure CN121596964A_ABST
Patent Text Reader

Abstract

The invention provides a desktop management method, a computing device and electronic equipment. In the method, the electronic equipment comprises a foldable display screen, and when the display screen of the electronic equipment is in an unfolded state, a first desktop is displayed. In response to a first operation of a user, the electronic device displays a first sub-desktop in a first area of the folded display screen and displays a second sub-desktop in a second area of the folded display screen, the first sub-desktop comprises at least one element in the first desktop, and the second sub-desktop comprises at least one element in the second desktop. The second sub-desktop comprises other elements in the first desktop except the elements in the first sub-desktop. According to the scheme, after the folding screen of the electronic equipment is switched from the unfolded state to the folded state, the electronic equipment can split the first desktop displayed in the unfolded state into the two sub-desktops, and the two sub-desktops are displayed in the two areas in the folded state respectively; therefore, each element in the desktop can be orderly displayed when the electronic equipment is switched between the unfolded state and the folded state, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a desktop management method, computing device, and electronic device. Background Technology

[0002] With the development of technology, the form and function of personal computers (PCs) are becoming increasingly diversified. Foldable PCs are a new type of PC device. A foldable PC includes a foldable display screen. Users can change the form of the foldable PC by folding and unfolding it. Different forms of foldable PCs can provide users with different display effects.

[0003] When the form factor of a foldable PC changes, the content on the display screen, such as the system desktop and application windows, will change accordingly. For example, when a foldable PC switches from a flat state to a folded state, the content displayed in the original flat state needs to be displayed on the folded screen. This may cause the content displayed on the display screen to have a messy layout, interrupting the user's interactive operation and affecting the user experience. Summary of the Invention

[0004] This application provides a desktop management method, a computing device, and an electronic device, which provide an orderly display scheme for the desktop when a foldable screen device switches between an unfolded state and a folded state.

[0005] In a first aspect, this application provides a desktop management method, which can be executed by an electronic device including a foldable display screen. In this method, when the display screen is in an unfolded state, the electronic device displays a first desktop on the display screen. In response to a first operation by a user, the electronic device displays a first sub-desktop in a first area of ​​the folded display screen and a second sub-desktop in a second area of ​​the folded display screen. The first operation is the user's operation of folding the display screen. The first sub-desktop includes at least one element from the first desktop, and the second sub-desktop includes other elements from the first desktop besides those in the first sub-desktop.

[0006] In the above method, after the user folds the electronic device's screen from the unfolded state to the folded state, the electronic device can split the first desktop displayed in the unfolded state into two sub-desks, and display the two sub-desks in two areas in the folded state respectively. This prevents the problem of multiple elements in the desktop being disordered after the electronic device switches from the unfolded state to the folded state, and ensures that the electronic device can display the elements in the desktop in an orderly manner when switching between the unfolded and folded states, thereby improving the user experience.

[0007] In one possible design, the electronic device runs multiple desktops, including a first desktop and a second desktop. The method further includes: in response to a first user operation, splitting the second desktop into a third sub-desktop and a fourth sub-desktop, wherein the third sub-desktop includes at least one element from the second desktop, and the fourth sub-desktop includes all elements from the first desktop except for those in the third sub-desktop. With this design, when multiple desktops are running on the electronic device, as the folding screen switches from an unfolded state to a folded state, the electronic device can split each of the multiple desktops into two sub-desktops. This allows the user to quickly display two sub-desktops in two separate areas in the folded state when switching between desktops, ensuring optimal display quality.

[0008] In one possible design, the method further includes: displaying a plurality of navigation controls on the display screen, each navigation control corresponding to a plurality of desktops; and, in response to a second operation by the user on any of the navigation controls, displaying a desktop management window, the desktop management window including a plurality of desktop cards, each desktop card corresponding to a plurality of desktops. With this design, the electronic device can display a plurality of navigation controls corresponding to multiple currently running desktops. The user can trigger an operation on any navigation control to bring up the desktop management window, and the user can trigger an operation on at least one desktop card within the desktop management window to manage the desktop corresponding to each desktop card, thus providing an intuitive and convenient desktop management solution.

[0009] In one possible design, the plurality of desktop cards includes a first desktop card and a second desktop card. The first desktop card corresponds to the first desktop and includes a first sub-card and a second sub-card, where the first sub-card corresponds to the first sub-desktop and the second sub-card corresponds to the second sub-desktop. The second desktop card corresponds to the second desktop and includes a third sub-card and a fourth sub-card, where the third sub-card corresponds to the third sub-desktop and the fourth sub-card corresponds to the fourth sub-desktop. With this design, the desktop management window displayed on the electronic device can include multiple desktop cards corresponding to multiple desktops. When the electronic device's screen is in a folded state, each desktop card in the desktop management window can include two sub-cards, each sub-card corresponding to a sub-desktop. This allows the user to intuitively see the elements included in each sub-desktop and facilitates direct management of the sub-desks.

[0010] In one possible design, the method further includes: in response to a third operation by the user on the second desktop card, displaying the third sub-desktop in the first area and the fourth sub-desktop in the second area. This design allows users to trigger a switch of the currently displayed desktop on the electronic device within a desktop management window, providing a convenient way to switch desktops.

[0011] In one possible design, the method further includes: in response to a fourth operation by the user on the first desktop card, swapping the positions of the first sub-card and the second sub-card, wherein the fourth operation is used to drag the first sub-card to the position of the second sub-card; displaying the second sub-desktop in the first area and displaying the first sub-desktop in the second area. With this design, users can trigger the swapping of the vertical positions of the two sub-cards within the desktop management window, thereby swapping the areas of the two sub-desks displayed on the electronic device. This allows users to switch the display areas of the two sub-desks at any time as needed, improving the user experience.

[0012] In one possible design, the method further includes: in response to a fifth operation by the user on the fourth sub-card, swapping the positions of the fourth sub-card and the first sub-card, wherein the fifth operation is used to drag the fourth sub-card to the position of the first sub-card; and displaying the fourth sub-desktop in the first area. With this design, users can adjust the positions of sub-cards in the desktop management window to recombine the two sub-desks corresponding to the two sub-cards. The electronic device can display the sub-desktop corresponding to the sub-card triggered by the user's operation. In this way, when the application interface or other elements that the user wants to view are located on other desktops, the user does not need to restart the application on the currently displayed desktop, but can recombine the sub-desks in different desktops, thus providing a convenient and flexible desktop management solution.

[0013] In one possible design, the method further includes: displaying a virtual keyboard in the second area in response to a sixth operation by the user; or detecting an external keyboard connected to the electronic device and the keyboard obscuring the second area; and hiding the second sub-desktop. With this design, when a virtual keyboard is displayed in the second area of ​​the electronic device's screen, or when an external keyboard covers the second area, the second sub-desktop displayed in the second area can be hidden, ensuring a smooth user experience when using a keyboard for input.

[0014] In one possible design, the method further includes: in response to a seventh operation triggered by the user in the desktop management window, acting on the second sub-card, displaying the second sub-desktop in the first area and hiding the first sub-desktop; setting the second sub-card to a selected state and setting the first sub-card to an unselected state. With this design, since the second area of ​​the electronic device's display screen is covered by the keyboard, and the first area is used to display the sub-desktops, the user can trigger a switch between the sub-desks displayed in the first area within the desktop management window, thus meeting the user's needs for operating or viewing content in different sub-desks.

[0015] In one possible design, the method further includes: in response to an eighth operation performed by the user on the first sub-card, swapping the positions of the first sub-card and the fourth sub-card, the eighth operation being used to drag the first sub-card to the position of the fourth sub-card; displaying the first sub-desktop in the first area, setting the third sub-card to an unselected state, and setting the fourth sub-card to a selectable state.

[0016] In one possible design, the method further includes: in response to a ninth operation performed by the user on the second sub-card, swapping the positions of the second sub-card and the third sub-card, the ninth operation being used to drag the second sub-card to the position of the third sub-card; displaying the second sub-desktop in the first area, setting the second sub-desktop to a selected state, setting the third sub-card to an unselected state, and setting the first sub-card to a selectable state.

[0017] With the above design, when the electronic device is in the folded keyboard state, the user can adjust the position of the sub-cards in the desktop management window to trigger the recombination of sub-desks in different desktops. At this time, the electronic device displays the sub-desk corresponding to the sub-card that the user triggered the operation in the first area. In this way, multiple sub-desks obtained by splitting multiple desktops can be flexibly managed.

[0018] In one possible design, the method further includes: in response to a tenth user operation, displaying a task management interface, the task management interface including a desktop management window, identifiers of at least one application window displayed in the first sub-desktop and the second sub-desktop, the identifiers of at least one application window displayed in the first sub-desktop and the second sub-desktop including a first application window identifier, the desktop management window including multiple desktop cards, the multiple desktop cards corresponding one-to-one with the multiple desktops, the multiple desktop cards including a second desktop card, the second desktop card including a third sub-card; in response to an eleventh user operation on the first application window identifier, displaying a third sub-desktop corresponding to the third sub-card in the first area, displaying a first application window corresponding to the first application window identifier in the third sub-desktop, the eleventh operation being used to drag the first application window identifier to the third sub-card in the desktop management window. Through this design, the electronic device can also respond to user operations and display a task management interface. This task management interface can include a desktop management window and the identifier of at least one application window from the first and second sub-desks currently displayed by the electronic device. The user can drag and drop the identifier of any application window to any sub-card in the desktop management window to trigger the electronic device to display the application window in the sub-desk corresponding to that sub-card, thereby providing a convenient way to switch the application window displayed in a sub-desk to another sub-desk.

[0019] In one possible design, the method further includes: displaying a dock in the first sub-desktop, the dock including identifiers of at least one application window in the second sub-desktop, the identifiers of the at least one application window including a first application window identifier; and, in response to a twelfth operation by the user on the first application window identifier, displaying a first application window corresponding to the first application window identifier in the first sub-desktop. With this design, when the second sub-desktop of the electronic device is obscured by the keyboard, the electronic device can display the identifiers of the application windows in the second sub-desktop in the dock of the first sub-desktop, thereby providing a quick way to display application windows in the second sub-desktop from the first sub-desktop, meeting the user's need to view application windows in the obscured sub-desktop, and improving the user experience.

[0020] Secondly, this application provides a computing device comprising a plurality of functional modules; the plurality of functional modules interact to implement the methods executed by the electronic device in any of the above aspects and their respective embodiments. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementations.

[0021] Thirdly, this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes any of the above aspects and the methods executed by the electronic device in its various embodiments.

[0022] Fourthly, this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.

[0023] Fifthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.

[0024] Sixthly, this application also provides a chip for reading a computer program stored in a memory and executing the method executed by the electronic device in any of the above aspects and embodiments.

[0025] Seventhly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by electronic devices in any of the above aspects and their embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description

[0026] Figure 1 A schematic diagram of a foldable screen PC provided in an embodiment of this application;

[0027] Figure 2 A desktop illustration of an electronic device in a different form provided for embodiments of this application;

[0028] Figure 3 This application provides a schematic diagram of the desktop display of an electronic device.

[0029] Figure 4 This application provides a schematic diagram of the desktop display of an electronic device.

[0030] Figure 5 A schematic diagram of a desktop management window provided in an embodiment of this application;

[0031] Figure 6 A schematic diagram of a task management interface displayed on an electronic device according to an embodiment of this application;

[0032] Figure 7 A schematic diagram of a desktop management window provided in an embodiment of this application;

[0033] Figure 8 A schematic diagram of a display of an electronic device provided in an embodiment of this application;

[0034] Figure 9 A schematic diagram of a display of another electronic device provided in an embodiment of this application;

[0035] Figure 10 A schematic diagram of a display of another electronic device provided in an embodiment of this application;

[0036] Figure 11 A schematic diagram of a task management interface displayed on an electronic device according to an embodiment of this application;

[0037] Figure 12 This is a schematic diagram of an electronic device in a folded state, provided as an embodiment of this application.

[0038] Figure 13 A schematic diagram of a display of an electronic device provided in an embodiment of this application;

[0039] Figure 14 A schematic diagram of a display of an electronic device provided in an embodiment of this application;

[0040] Figure 15 A schematic diagram of a display of an electronic device provided in an embodiment of this application;

[0041] Figure 16 A schematic diagram of a display of an electronic device provided in an embodiment of this application;

[0042] Figure 17 A schematic diagram of a display of an electronic device provided in an embodiment of this application;

[0043] Figure 18 A flowchart illustrating a desktop management method provided in an embodiment of this application;

[0044] Figure 19 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application;

[0045] Figure 20 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further understood below in conjunction with the accompanying drawings, indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0047] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer 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, and c can be single or multiple.

[0048] A foldable PC is a new type of PC device that includes a foldable display screen, such as... Figure 1 This is a schematic diagram of a foldable screen PC provided as an embodiment of this application. (Reference) Figure 1 Foldable PCs include a folding hinge in their display screen, allowing users to fold or unfold the screen. Electronic devices can display on screens of different shapes, providing users with diverse display effects.

[0049] refer to Figure 1 In this embodiment, the foldable screen PC supports two states: unfolded and folded. For example... Figure 1 As shown in (a), when the foldable PC is in the unfolded state, it can be displayed in display area 101, at which time the display area of ​​the foldable screen is the entire area of ​​the display screen. When the foldable PC is in the unfolded state, the user can rotate the foldable PC, and the foldable PC can be displayed in either a landscape or portrait unfolded state. Figure 1As shown in (b), when the foldable PC is in a folded state, the folded display screen can be considered to include two logical sub-screens, and the foldable PC can display in display area 102 and display area 103. In this embodiment, the sub-screen corresponding to display area 102 can also be called a vertical sub-screen, and the sub-screen corresponding to display area 103 can also be called a horizontal sub-screen. It is understood that in this embodiment, vertical sub-screen and horizontal sub-screen are only names and not limitations on 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 may have other angles. In some examples, when the foldable PC is in a folded state, a physical keyboard can be connected to display area 103, or a virtual keyboard can be displayed in display area 103. Users can input content or trigger operations on the foldable PC through the physical keyboard or the virtual keyboard.

[0050] It should be noted that, Figure 1 The dashed lines in the diagram are only intended to illustrate the folding axis of the display screen. The display screen will not actually display the dashed lines. The dashed lines in the accompanying drawings of the embodiments of this application can also be referred to in this description. Repeated descriptions will not be repeated.

[0051] In some implementations, when the form factor of the foldable PC changes, the content on the display screen, such as the system desktop and application windows, will change accordingly. For example, when the foldable PC switches from an unfolded state to a folded state, the content displayed in the unfolded state needs to be displayed on the folded screen. This may cause layout problems, interrupting user interaction and affecting user experience. For instance, when the foldable PC switches from an unfolded state to a folded state, and... Figure 1 When the display area 103 shown in (b) displays a virtual keyboard or an external physical keyboard, the content displayed in the original display area 103 will be covered by the keyboard, and the user will not be able to view or operate it. Alternatively, the content displayed in the original display area 103 will be moved to the display area 102 for display. At this time, the application icons, application windows, display components and other elements on the screen may have a layout disorder problem.

[0052] To address the aforementioned problems, this application provides a desktop management method that can be executed by an electronic device, which includes a foldable display screen. Figure 1 The foldable screen PC shown is illustrated below. The method provided in the embodiments of this application is described below.

[0053] In the desktop management method provided in this application embodiment, the electronic device can determine whether the display screen is in a folded or flattened state based on the angle between the two sub-screens. For example, when the angle between the two sub-screens is less than or equal to a preset threshold, the electronic device can determine that the display screen is in a flattened state. That is, in this application embodiment, when the display screen of the electronic device is in a flattened state, the two sub-screens are on the same plane or there is an angle between the two sub-screens that is less than or equal to the preset threshold. When the angle between the two sub-screens is greater than the preset threshold, the electronic device can determine that the display screen is in a folded state. In this application embodiment, when the electronic device is in a flattened state, the electronic device can display a desktop on the display screen, which may include at least one of the elements such as application icons, application windows, and display components. When the electronic device is in a folded state, the electronic device can treat the two sub-screens as two independent display areas and perform display and desktop management in each display area respectively.

[0054] In some embodiments of this application, when the display screen of the electronic device is in an unfolded state, the electronic device displays a first desktop on the display screen. The first desktop includes at least one element, such as an application icon, an application window, display controls, etc. When a user triggers a first operation, which is a user folding the display screen, in response to the user's first operation, the electronic device displays a first sub-desktop in a first area of ​​the folded display screen. The first sub-desktop includes at least one element from the first desktop. The electronic device also displays a second sub-desktop in a second area of ​​the folded display screen. The second sub-desktop includes all other elements from the first desktop besides those in the first sub-desktop.

[0055] Optionally, the electronic device can determine whether to display an element in a first or second sub-desktop based on the position of each element among at least one element in the first desktop. For example, taking an application window in the first desktop as an example, when the user triggers the first operation of folding the electronic device's display screen, the electronic device can determine, based on the position of the application window, that the proportion of the display area occupied by the application window in the first area of ​​the first desktop is greater than the proportion of the display area occupied by the application window in the second area of ​​the first desktop. Then, the electronic device can determine to display the application window in the first area of ​​the folded display screen. The electronic device can also display elements in the first desktop in the first or second area of ​​the folded display screen according to the user's usage habits or user-defined settings. For example, the first area can be... Figure 1 The second area can be the display area 102 shown in (b) of the diagram. Figure 1 As shown in (b) above, in the first sub-desktop, since the user's gaze often falls on the first sub-desktop when the device is in the folded state, the electronic device can display the application icons of the applications that the user uses most frequently in the first sub-desktop, and display the application icons of the applications that the user uses less frequently in the second sub-desktop.

[0056] For example, Figure 2 This is a desktop illustration of an electronic device in a different configuration, provided as an embodiment of this application. (Reference) Figure 2 In (a), the electronic device's display screen shows a first desktop 201 in a flattened state. The first desktop 201 may include application icons 211, 212, and 213, an application window 214 of the running application, display controls 215 and 216, wherein... Figure 2 The example shown uses display controls 215 and 216 as service cards; however, in practice, the display controls can be other controls. In response to a first user-triggered operation, the electronic device switches from a flattened state to a folded state, splitting the first desktop into a first sub-desktop and a second sub-desktop. (See reference...) Figure 2 In (b), the electronic device displays a first sub-desktop 202 in a first area of ​​the folded display screen, for example, the first sub-desktop 202 includes application icon 211, application icon 212, application window 214 and display control 215, and the electronic device displays a second sub-desktop 203 in a second area of ​​the folded display screen, for example, the second sub-desktop 203 includes application icon 213 and display control 216.

[0057] Optionally, after splitting a desktop into two sub-desks, the electronic device can divide the operating system into two display data streams to control the display of the two sub-screens. Alternatively, the electronic device can determine the display data streams of the two sub-screens, then merge the two display data streams into one display data stream and send the merged data stream to the display screen. This allows the electronic device to respond to user interactions triggered in each sub-desktop displayed on each sub-screen. For example, when the electronic device displays the first sub-desktop in the first area and the second sub-desktop in the second area, content triggered by the user in the first sub-desktop is displayed in the first area, and content triggered by the user in the second sub-desktop is displayed in the second area. For instance, when the user triggers full-screen display of application window 214 in the first sub-desktop, the electronic device displays application window 214 in full-screen mode in the first area without occupying the second area.

[0058] It should be noted that, Figure 2 This is merely an example of the desktop management method provided in this application and is not a limitation. In practice, electronic devices can determine whether to display elements in the first desktop or the second sub-desktop based on the position and usage frequency of each element in the first desktop.

[0059] In some embodiments, when the display screen of the electronic device is in a folded state, the electronic device displays a first sub-desktop in a first area and a second sub-desktop in a second area. In response to a user unfolding the display screen, the electronic device can combine the first and second sub-desktops to form a first desktop, which is then displayed on the unfolded display screen. In this way, the way the electronic device displays the desktop is related to the form factor of the electronic device's display screen, thereby providing users with a display solution that is more adapted to the form factor of the electronic device's display screen.

[0060] In some optional embodiments of this application, the operating system of the electronic device supports the simultaneous operation of multiple virtual desktops, allowing users to perform different tasks through these virtual desktops. When multiple desktops are running on the electronic device, if the user folds the screen of the electronic device from an unfolded state to a folded state, the electronic device can split each of the multiple desktops into two sub-desks. For example, if the multiple desktops include the first desktop and the second desktop mentioned above, the electronic device can split the first desktop into a first sub-desktop and a second sub-desktop, and display the first sub-desktop and the second sub-desktop in a first area and the second area respectively. Furthermore, the second desktop can be split into a third sub-desktop and a fourth sub-desktop. When the user triggers a switch to display the second desktop, the electronic device can display the third sub-desktop in the first area and the fourth sub-desktop in the second area.

[0061] In some embodiments, when multiple desktops are running on the electronic device, the electronic device can display multiple navigation controls on the screen, with each navigation control corresponding to one of the multiple desktops. The user can switch between the desktops currently displayed on the electronic device's screen using the navigation controls. Optionally, when the electronic device is running only one desktop, it can also display one navigation control.

[0062] For example, Figure 3 This is a schematic diagram of a desktop display on an electronic device provided in an embodiment of this application. (Reference) Figure 3 Taking an electronic device with its display screen in an unfolded state as an example, when the electronic device is running three desktops, it displays three navigation controls on the screen: navigation control 301, navigation control 302, and navigation control 303. These three navigation controls correspond one-to-one with the three desktops running on the electronic device. When the electronic device is displaying the first desktop, the style of the navigation control corresponding to the first desktop can be different from the styles of the other navigation controls. For example, refer to... Figure 3 Taking navigation control 301 as an example, the length of navigation control 301 can be greater than the lengths of navigation controls 302 and 303, and the shape or fill color of navigation control 301 can be different from that of navigation controls 302 and 303. It should be noted that... Figure 3The style of the navigation control is only an example and not a limitation. In specific implementations, the navigation control may have other styles, and this application embodiment does not limit this.

[0063] For example, Figure 4 This is a schematic diagram of a desktop display on an electronic device provided in an embodiment of this application. (Reference) Figure 4 When the electronic device's display is folded, it can display multiple navigation controls in a first area. These navigation controls correspond one-to-one with multiple desktops on the electronic device. Specifically, when the electronic device is in a flattened state, the navigation controls correspond to two sub-desks. For example, Figure 4 Taking the example of an electronic device running three desktops, the electronic device displays three navigation controls in the first area: navigation control 401, navigation control 402 and navigation control 403. Navigation control 401 corresponds to the first and second sub-desktops obtained by splitting the first desktop, navigation control 402 corresponds to the third and fourth sub-desktops obtained by splitting the second desktop, and navigation control 403 corresponds to the fifth and sixth sub-desktops obtained by splitting the third desktop.

[0064] Optionally, such as Figure 4 As shown, when the electronic device displays a dock in the first area, the electronic device can display multiple navigation controls above and below the dock. Of course, the electronic device can also display multiple navigation controls above the dock or at the top of the first area. The electronic device can also display multiple navigation controls in the second area. The specific implementation can be set according to user habits or business scenarios, and this application embodiment does not limit this.

[0065] In one optional implementation, when the electronic device is in an unfolded state and displays a first desktop on the screen, the device can switch to displaying the second desktop in response to an operation triggered by the user on the navigation control corresponding to the second desktop. For example, the user clicks the navigation control corresponding to the second desktop, and the electronic device switches to displaying the second desktop. When the electronic device is in a folded state, it displays a first sub-desktop in a first area of ​​the folded screen and a second sub-desktop in a second area of ​​the folded screen. In response to an operation triggered by the user on the navigation control corresponding to the second desktop, the electronic device can switch to displaying a third sub-desktop derived from the splitting of the second desktop in the first area and a fourth sub-desktop derived from the splitting of the second desktop in the second area. This method provides a convenient way to switch desktops displayed on the screen, allowing users to quickly switch between multiple desktops running on the electronic device and the desktop they want to view, thus improving the user experience.

[0066] Optionally, when the electronic device displays the application window in full screen, the electronic device can hide the navigation controls to avoid obstructing the application window. When the electronic device hides the navigation controls, the user can trigger a preset action to bring up the navigation controls, such as a swipe down from the top edge of the display or a swipe up from the bottom edge of the display.

[0067] In some embodiments of this application, when the electronic device displays navigation controls, in response to a second operation performed by the user on any of the navigation controls, the electronic device can display a desktop management window. The second operation is used to invoke the desktop management window; for example, the second operation could be the user controlling the cursor to hover over any of the navigation controls for a duration longer than a preset duration. The desktop management window includes at least one desktop card, and each desktop card corresponds one-to-one with at least one desktop running on the electronic device. The user can trigger operations on at least one desktop card in the desktop management window to manage the desktop corresponding to each desktop card. Optionally, each desktop card can be an abstract image of the desktop or a thumbnail of a desktop screenshot.

[0068] For example, when the display screen of an electronic device is in an unfolded state, after the user triggers a second operation in any navigation control, the electronic device displays a desktop management window. The desktop management window includes multiple desktop cards, each of which corresponds to a desktop running on the electronic device. The style of each desktop card is related to the landscape or portrait state of the electronic device's display screen. Figure 5 This is a schematic diagram of a desktop management window provided in an embodiment of this application. (Reference) Figure 5 In (a), when the electronic device's display is in portrait orientation, the desktop management window includes three desktop cards corresponding to the three desktops currently running on the electronic device: desktop card 501, desktop card 502, and desktop card 503. The style of each desktop card corresponds to the display size in portrait orientation. Desktop card 501 corresponds to the first desktop, which is the desktop currently being displayed by the electronic device. (See reference...) Figure 5 In (b) of the diagram, when the electronic device's display is in landscape orientation, the desktop management window includes three desktop cards corresponding to the three desktops currently running on the electronic device: desktop card 504, desktop card 505, and desktop card 506. The style of each desktop card corresponds to the display size in landscape mode. Desktop card 504 corresponds to the first desktop currently displayed by the electronic device. When the user rotates the electronic device, causing a change in the display's orientation (e.g., switching from landscape to portrait orientation or vice versa), the electronic device adjusts the style of the desktop cards in the desktop management window accordingly.

[0069] Optionally, in the desktop management window displayed on the electronic device, the desktop card corresponding to the desktop currently displayed by the electronic device can be shown as selected, such as... Figure 5 In (a) of the diagram, when the electronic device displays the first desktop, the desktop card 501 corresponding to the first desktop can be displayed as selected. This selection can be indicated by adding a focus box to the desktop card 501, thus showing that the electronic device is displaying the first desktop corresponding to the desktop card 501. The user can move the cursor to select any desktop card in the desktop management window. When the user hovers the cursor over any desktop card, the electronic device can highlight that desktop card, such as by adding a background shading, hovering the desktop card, or highlighting the border of the desktop card. After the user confirms the selection of any desktop card, the electronic device can switch the desktop displayed on the screen to show the desktop corresponding to the selected desktop card. For example, when the electronic device is displaying the first desktop, if the user clicks on the desktop card 502 corresponding to the second desktop, the electronic device will switch the display to show the second desktop.

[0070] In some examples, the desktop management window displayed on the electronic device may also include a control for creating new desktops, such as... Figure 5 Control 507 shown in (a) or is Figure 5 As shown in (b) above, control 508 allows users to trigger actions on the control to create a new virtual desktop. For example, when a user clicks the control, the electronic device can create a new virtual desktop.

[0071] In some embodiments of this application, when the display screen of the electronic device is in an expanded state, the user can trigger the electronic device to enter a task management interface. This task management interface may include a desktop management window and identifiers of at least one application window currently displayed on the desktop of the electronic device. The user can also manage the desktop running on the electronic device and the application windows displayed on the desktop within this task management node. Optionally, when the electronic device displays the task management interface, in response to a drag operation triggered by the user on the identifier of the first application window, the electronic device displays the first application window on the second desktop corresponding to the second desktop card. The drag operation is used to drag the identifier of the first application window to the position of the second desktop card in the desktop management window.

[0072] For example, Figure 6 This is a schematic diagram of a task management interface displayed on an electronic device, provided as an embodiment of this application. (Reference) Figure 6 When the electronic device displays its first desktop in an expanded state, in response to a tenth user-triggered action, such as a long press on any location on the desktop or a multi-finger swipe down, the electronic device can display a task management interface. When the electronic device's first desktop includes a first application window and a second application window, such as... Figure 6The task management interface includes a desktop management window, a first application window identifier 601, and a second application window identifier 602, such as... Figure 6 The application window identifiers in the task management interface shown can be thumbnails of the application windows. Users can trigger a drag-and-drop operation on the identifier 601 of the first application window and drag it to the second card 603 in the desktop management window. The electronic device can then switch to displaying the second desktop and show the first application window on the second desktop.

[0073] In some embodiments of this application, when the display screen of the electronic device is in a folded state, as described above, each of the multiple desktops running in the electronic device is split into two sub-desktops. At this time, each of the multiple desktop cards displayed in the desktop management window includes two sub-cards, and each sub-card corresponds to one sub-desktop.

[0074] For example, Figure 7 This is a schematic diagram of a desktop management window provided in an embodiment of this application. (Reference) Figure 7 The electronic device's display is in a folded state. The device runs three desktops, each divided into two sub-desks. For example, when the device displays the first desktop, it could specifically display the first sub-desktop in the first area and the second sub-desktop in the second area. (Reference) Figure 7 The desktop management window includes three desktop cards: desktop card 710, desktop card 720, and desktop card 730. Desktop card 710 includes sub-cards 711 and 712, where sub-card 711 corresponds to the first sub-desktop, and sub-card 712 corresponds to the second sub-desktop. Desktop card 720 includes sub-cards 721 and 722, where sub-card 721 corresponds to the third sub-desktop obtained by splitting the second desktop, and sub-card 722 corresponds to the fourth sub-desktop obtained by splitting the second desktop. Desktop card 730 includes sub-cards 731 and 732, where sub-card 731 corresponds to the fifth sub-desktop obtained by splitting the third desktop, and sub-card 732 corresponds to the sixth sub-desktop obtained by splitting the third desktop. For example... Figure 7 As shown, when the electronic device displays the first sub-desktop and the second sub-desktop obtained by splitting the first desktop, the desktop card 710 can be displayed in a selected state. This selected state can be indicated by adding a focus box to the desktop card 710, thereby indicating that the electronic device is displaying the first sub-desktop and the second sub-desktop corresponding to the desktop card 710.

[0075] The management functions supported by the desktop management window in this embodiment are described below. In this description, the first desktop card and the second desktop card among multiple desktop cards in the desktop management window are used as examples. The first desktop card is the card corresponding to the first desktop. The first desktop card includes a first sub-card and a second sub-card. The first sub-card corresponds to the first sub-desktop, and the second sub-card corresponds to the second sub-desktop. The second desktop card corresponds to the second desktop. When the display is in a folded state, the second desktop is split into a third sub-desktop and a fourth sub-desktop. The second desktop card includes a third sub-card and a fourth sub-card. The third sub-card corresponds to the third sub-desktop, and the fourth sub-card corresponds to the fourth sub-desktop.

[0076] In some examples, users can switch the currently displayed desktop on an electronic device within a desktop management window. The electronic device displays a first sub-desktop in a first area of ​​the display, and a second sub-desktop in a second area. In response to a third action performed by the user on a second desktop card, the electronic device displays a third sub-desktop in the first area and a fourth sub-desktop in the second area. The third action could be, for example, a click action triggered by the user on a second desktop card.

[0077] For example, Figure 8 This is a schematic diagram of a display of an electronic device provided in an embodiment of this application, with reference to... Figure 8 The electronic device's screen is in a folded state, displaying a first sub-desktop in the first area and a second sub-desktop in the second area. When the user clicks on the second desktop card 801 in the desktop management window, the electronic device switches to displaying a third sub-desktop in the first area and a fourth sub-desktop in the second area. In the desktop management window, the first desktop card 802 becomes selectable, and the second desktop card 801 becomes selected. Figure 8 Add a focus box to the second desktop card 801.

[0078] In other examples, users can swap the areas of two sub-desks currently displayed on the electronic device within the desktop management window. When the electronic device displays the first sub-desktop in a first area of ​​the display and the second sub-desktop in a second area, in response to a fourth operation performed by the user on the first sub-card, the electronic device can swap the positions of the first and second sub-cards in the desktop management window. The electronic device will then display the second sub-desktop in the first area and the first sub-desktop in the second area, where the fourth operation involves dragging the first sub-card to the position of the second sub-card.

[0079] For example, Figure 9 This is a schematic diagram of a display of another electronic device provided in an embodiment of this application, with reference to... Figure 9The electronic device's screen is in a folded state. The electronic device displays a first sub-desktop in the first area and a second sub-desktop in the second area. When the user triggers an operation in the desktop management window to drag the first sub-card 901 to the position of the second sub-card 902, the electronic device swaps the positions of the first sub-card 901 and the second sub-card 902 in the desktop management window, and the electronic device switches between displaying the second sub-desktop in the first area and the first sub-desktop in the second area.

[0080] In other examples, users can recombine sub-desks by swapping the positions of sub-cards in the desktop management window. When the electronic device displays a first sub-desktop in the first area of ​​the screen and a second sub-desktop in the second area, in response to a fifth operation performed by the user on a fourth desktop card, the electronic device swaps the positions of the fourth and first sub-cards. The electronic device then displays the fourth sub-desktop in the first area and the second sub-desktop in the second area. The fifth operation involves dragging the fourth sub-card to the position of the first sub-card. In this example, if the sub-desktop corresponding to the sub-card affected by the fifth operation is not currently displayed on the electronic device, the electronic device will switch to displaying the sub-desktop corresponding to the sub-card affected by the fifth operation after the fifth operation ends. This method allows users to quickly switch between the currently displayed desktops or sub-desks on the electronic device and recombine any two sub-desks, providing a more flexible desktop management solution and improving the user experience.

[0081] In this embodiment of the application, when the electronic device switches from a flattened state to a folded state, the electronic device splits a desktop into two sub-desktops, and the two sub-desktops are displayed on two sub-screens of the display screen respectively. Since the electronic device can control the display of different sub-screens separately through different display data streams, the electronic device can also support the recombination of sub-desktops obtained by splitting different desktops.

[0082] For example, Figure 10 This is a schematic diagram of a display of another electronic device provided in an embodiment of this application, with reference to... Figure 10 The electronic device's display is in a folded state. The electronic device displays a first sub-desktop in the first area and a second sub-desktop in the second area. When the user triggers an operation in the desktop management window to drag the fourth sub-card 1001 to the position of the first sub-card 1002, the electronic device swaps the positions of the fourth sub-card 1001 and the first sub-card 1002 in the desktop management window. The electronic device switches the display of the fourth sub-desktop in the first area and continues to display the second sub-desktop in the second area. In this example, based on the user's operation, the electronic device recombines the fourth and second sub-desktops, as well as the first and third sub-desktops.

[0083] In some embodiments, when the display of the electronic device is in a folded state, the user can trigger the electronic device to enter a task management interface. This task management interface may include a desktop management window and identifiers of at least one application window from one of the two sub-desks currently displayed on the electronic device. The user can also manage the desktops, sub-desks, and application windows displayed on the sub-desks running on the electronic device within this task management node. Optionally, when the electronic device displays the task management interface, in response to an eleventh operation triggered by the user on the identifier of the first application window, the electronic device displays the first application window in the third sub-desktop corresponding to the third sub-card. The eleventh operation involves dragging the identifier of the first application window to the position of the third sub-card in the desktop management window.

[0084] For example, Figure 11 This is a schematic diagram of a task management interface displayed on an electronic device, provided as an embodiment of this application. (Reference) Figure 11 When the electronic device's display is folded, and the device displays a first sub-desktop in the first area and a second sub-desktop in the second area, in response to a tenth user-triggered action (such as long-pressing any position on any sub-desktop or multi-finger swiping), the electronic device can display a task management interface. When the first desktop includes a first application window and the second desktop includes a second application window, such as... Figure 11 The task management interface includes a desktop management window, a first application window (identified by identifier 1101), and a second application window (identified by identifier 1102), as shown below. Figure 11 The identifier 1101 of the first application window and the identifier 1102 of the second application window can be application window thumbnails. The user can trigger a drag-and-drop operation on the identifier 1101 of the first application window, dragging it to the third sub-card 1103 in the desktop management window. The electronic device can then switch to displaying the third sub-desktop corresponding to the third sub-card 1103 in the first area, and display the first application window in the third sub-desktop. Simultaneously, the electronic device can display the fourth sub-desktop corresponding to the fourth sub-card 1104 in the second area. In some examples, after the user drags the identifier of an application window to the third sub-card position corresponding to the third sub-desktop in the task management interface, the electronic device can also move the application window to the third sub-desktop without switching the currently displayed sub-desktop; that is, the electronic device can continue to display the first sub-desktop in the first area and the second sub-desktop in the second area.

[0085] In some embodiments of this application, when the display screen of the electronic device is in a folded state, a physical keyboard can be connected to the second area of ​​the display screen. The physical keyboard can be connected to the display screen via magnetic attraction or other means, and the physical keyboard will obscure the second area of ​​the display screen. When the electronic device detects that a physical keyboard is connected to the display screen, the electronic device stops displaying content in the second area. Alternatively, the electronic device can display a virtual keyboard in the second area. For example, the user can activate the virtual keyboard of the electronic device through a preset operation. When the electronic device displays the virtual keyboard in the second area, the electronic device can hide the sub-desktop displayed in the second area. For ease of description, in the following description, the state in which the electronic device displays a virtual keyboard in the second area, or the state in which the physical keyboard connected to the electronic device obscures the second area, is referred to as the folded embedded keyboard state.

[0086] When the electronic device is in the folded keyboard state, the sub-cards corresponding to the sub-desks that can be displayed in the second area of ​​the desktop management window are unselected, indicating that these sub-desks are hidden and cannot be displayed in the second area.

[0087] For example, Figure 12 This is a schematic diagram illustrating the display screen of an electronic device in a folded state, as provided in an embodiment of this application. (Reference) Figure 12 When the electronic device is in a folded keyboard state, it displays the first sub-desktop in the first area. The first sub-card 1201 in the desktop management window is selected, while the second, fourth, and sixth sub-cards 1202, 1203, and 1204 are unselected. The electronic device can add overlays to the second, fourth, and sixth sub-cards 1202 and 1203 to indicate their unselected state. In this example, when the user clicks the second desktop card 1205, the electronic device displays the third sub-desktop corresponding to the third sub-card 1206 within the second desktop card 1205 in the first area, while the fourth sub-desktop corresponding to the fourth sub-card 1203 is not displayed in the second area.

[0088] In some implementations, when the electronic device is in a folded, keyboard-embedded state, it displays a first sub-desktop in a first area. This first sub-desktop may include a dock, and the electronic device can display identifiers for application windows in a second sub-desktop within the dock. When a user clicks on the identifier of the first application window in the dock, the electronic device can display that first application window in the first sub-desktop. In this way, even when the second sub-desktop is obscured by the keyboard, the electronic device can still display the identifiers for application windows in the second sub-desktop within the dock of the first sub-desktop. This provides a quick way to display application windows from the second sub-desktop within the first sub-desktop, satisfying the user's need to view application windows in obscured sub-desks and improving the user experience.

[0089] For example, Figure 13 This is a schematic diagram of a display of an electronic device provided in an embodiment of this application. (Reference) Figure 13 When the electronic device's screen is folded, it can display a first sub-desktop in a first area and a second sub-desktop in a second area. When an external keyboard covers the second area, or when a virtual keyboard is displayed in the second area, the electronic device can display the first sub-desktop in the first area. The first sub-desktop includes a docking station 1301, and the docking station 1301 includes an area 1302 corresponding to the second sub-desktop. When the user hovers the cursor over area 1302, the electronic device can display the identifier of at least one application window in the second sub-desktop, such as... Figure 13 The electronic device displays the first application window identifier 1303 and the second application window identifier 1304. Figure 13 The example illustrates how the first application window identifier 1303 and the second application window identifier 1304 can be thumbnails of application windows. When the user clicks the first application window identifier 1303, the electronic device can display the first application window on the first desktop.

[0090] In some examples, when the electronic device is in a folded keyboard state, the user can switch between the sub-desks displayed in the first area of ​​the screen within the desktop management window. When the electronic device is in this folded keyboard state, it displays the first sub-desktop in the first area of ​​the screen. In response to a seventh operation performed by the user on a second sub-card, the electronic device displays the second sub-desktop in the first area and sets the first sub-card to an unselected state and the second sub-card to a selected state in the desktop management window. The seventh operation could be, for example, a click operation triggered by the user on the second sub-desktop card. Optionally, when the electronic device switches to displaying the second sub-desktop in the first area in response to the seventh operation, it can display a dynamic effect of the second sub-desktop moving from the second area to the first area, thereby providing the user with a smoother switching experience.

[0091] For example, Figure 14 This is a schematic diagram of a display of an electronic device provided in an embodiment of this application, with reference to... Figure 14 The electronic device's display is in a folded, keyboard-embedded state, and the device displays the first sub-desktop in the first area. When the user clicks on the second sub-card 1401 in the desktop management window, the electronic device switches to displaying the second sub-desktop in the first area. The first sub-card in the desktop management window then becomes unselected, while the second sub-card 1402 becomes selected.

[0092] Optionally, the seventh operation in the above example can also be an operation of dragging the second sub-card to the position of the first sub-card. In response to the seventh operation, the electronic device can also swap the positions of the first sub-card and the second sub-card in the desktop management window.

[0093] For example, Figure 15 This is a schematic diagram of a display of an electronic device provided in an embodiment of this application, with reference to... Figure 15 The electronic device's display screen is in a folded, keyboard-embedded state, and the electronic device displays the first sub-desktop in the first area. When the user triggers an operation in the desktop management window to drag the second sub-card 1501 to the position of the first sub-card 1502, the electronic device swaps the positions of the first sub-card 1502 and the second sub-card 1501 in the desktop management window, and the first sub-card 1502 switches to an unselected state, while the second sub-card 1501 switches to a selected state. The electronic device then switches to display the second sub-desktop in the first area.

[0094] In other examples, when the electronic device is in a collapsed keyboard state, the user can recombine sub-desks by swapping the positions of sub-cards in the desktop management window. The electronic device displays the first sub-desktop in the first area of ​​the display. In response to an eighth operation performed by the user on the first sub-card, the electronic device swaps the positions of the first and fourth sub-cards in the desktop management window, sets the third sub-card to an unselected state, and sets the fourth sub-card to a selectable state. The electronic device then displays the first sub-desktop in the first area. The eighth operation involves dragging the first sub-card to the position of the fourth sub-card. In this example, because the user triggered the swapping of the first and fourth sub-cards, the electronic device recombines the first and third sub-desks. Since the electronic device can only display one sub-desktop when in a collapsed keyboard state, it continues to display the first sub-desktop in the first area and sets the third sub-card corresponding to the third sub-desktop to an unselected state. After the fourth sub-desktop is recombinated with the second sub-desktop, the second sub-card remains unselected, while the fourth sub-card can be set to a selectable state.

[0095] For example, Figure 16 This is a schematic diagram of a display of an electronic device provided in an embodiment of this application, with reference to... Figure 16The electronic device's display is in a folded, keyboard-embedded state, and the device displays the first sub-desktop in the first area. When the user drags the first sub-card 1601 to the position of the fourth sub-card 1602 in the desktop management window, the electronic device swaps the positions of the first and fourth sub-cards 1601 and 1602 in the window. The third sub-card 1603 is switched to an unselected state, and the fourth sub-card 1602 is switched to a selectable state. The electronic device then switches the display of the first sub-desktop in the first area. In this example, the electronic device recombines the first and third sub-desktops, and also recombines the fourth and second sub-desktops based on user actions.

[0096] In other examples, when the electronic device is in a collapsed keyboard state, the user can recombine sub-desks by swapping the positions of sub-cards in the desktop management window. The electronic device displays the first sub-desktop in the first area of ​​the display. Responding to the user's ninth operation on the second sub-card, the electronic device swaps the positions of the second and third sub-cards in the desktop management window, setting the third sub-card to an unselected state, setting the second sub-card to a selected state, and setting the first sub-card to a selectable state. The electronic device then displays the second sub-desktop in the first area. The ninth operation involves dragging the second sub-card to the position of the third sub-card. In this example, because the user triggered the swapping of the second and third sub-cards, the electronic device recombines the second and fourth sub-desks. Since the second sub-desktop corresponding to the second sub-card for which the user triggered the ninth operation is a sub-desktop not currently displayed by the electronic device, the electronic device responds to the user's ninth operation by displaying the second sub-desktop in the first area. At this time, the second sub-card is selected, while the fourth sub-card remains unselected. When the first and third sub-cards are recombined, the electronic device no longer displays the first sub-desktop corresponding to the first sub-card in the first area. The first sub-card is then set to the selectable state, while the third sub-card is set to the unselected state.

[0097] For example, Figure 17 This is a schematic diagram of a display of an electronic device provided in an embodiment of this application, with reference to... Figure 17 The electronic device's display is in a folded, keyboard-embedded state, and the device displays a first sub-desktop in the first area. When the user drags a second sub-card 1701 to the position of a third sub-card 1702 in the desktop management window, the electronic device swaps the positions of the second and third sub-cards 1701 and 1702. The second sub-card 1701 is now selected, the third sub-card 1702 is now unselected, and the first sub-card is now selectable. The electronic device then switches the display of the second sub-desktop in the first area. In this example, the electronic device recombines the first and third sub-desks, as well as the second and fourth sub-desks, based on user actions.

[0098] In some examples, when the electronic device is in a folded keyboard state, the user can trigger the electronic device to enter a task management interface. This task management interface may include a desktop management window and identifiers of at least one application window from the currently displayed sub-desktops and hidden sub-desks of the electronic device. The user can also manage the desktops, sub-desks, and application windows displayed on the sub-desks running on the electronic device within this task management node. Optionally, when the electronic device displays the task management interface, in response to a tenth operation triggered by the user on the identifier of the first application window, the electronic device displays the first application window in the third sub-desktop corresponding to the third sub-card. The tenth operation is used to drag the identifier of the first application window to the position of the third sub-card in the desktop management window. For specific implementation details, please refer to the description of the task management interface in the above embodiments; repeated details will not be elaborated upon.

[0099] It should be noted that the above example illustrates the user triggering a drag-and-drop operation on the first or second sub-card. In practice, the user can trigger the operation on any sub-card in the desktop management window. Specific implementations can be found in the above embodiments, and repeated details will not be elaborated upon. Furthermore, the specific implementation methods of the first to tenth operations in the above embodiments are merely examples and not limitations. In practice, the above operations can also be other user interaction operations supported by the electronic device, and this application embodiment does not limit them.

[0100] In some implementations, users can also trigger the electronic device to switch between displayed desktops or sub-desks using shortcut gestures. For example, when the electronic device is in a folded keyboard state, the user can swipe left or right on the touchpad within the keyboard to switch between displayed sub-desks. If the electronic device displays a first sub-desktop in the first area, and the user swipes left on the touchpad, the electronic device will switch to displaying a third sub-desktop in the first area. This third sub-desktop is the sub-desktop corresponding to the third sub-card to the right of the first sub-card in the desktop management window, which corresponds to the first sub-desktop. As another example, if the electronic device displays a first sub-desktop in the first area, and the user swipes down on the touchpad, the electronic device will switch to displaying a second sub-desktop in the first area. In this implementation, to distinguish the shortcut gestures used to switch desktops from other ordinary operation gestures, the swipe gesture in the shortcut gesture can be a multi-touch swipe gesture, such as a four-finger swipe or a three-finger swipe.

[0101] In other implementations, users can perform preset mouse operations or touch gestures in the first area of ​​the display screen to switch between sub-desks displayed in the first area. For example, if the electronic device displays the first sub-desktop in the first area and the user triggers a two-finger swipe left in the first area, the electronic device will switch to displaying a third sub-desktop in the first area. The third sub-desktop is the sub-desktop corresponding to the third sub-card to the right of the first sub-card corresponding to the first sub-desktop in the desktop management window. Alternatively, users can perform preset mouse operations or touch gestures in the second area of ​​the display screen to switch between sub-desks displayed in the second area. For example, if the electronic device displays the second sub-desktop in the second area and the user triggers a two-finger swipe left in the second area, the electronic device will switch to displaying a fourth sub-desktop in the second area. The fourth sub-desktop is the sub-desktop corresponding to the fourth sub-card to the right of the second sub-card corresponding to the second sub-desktop in the desktop management window. In this method, after a user performs a preset mouse operation or touch gesture within the first area, the electronic device can simultaneously switch between the sub-desks displayed in the first and second areas, thereby enabling the user to switch the displayed desktop on the electronic device through preset mouse operations or touch gestures. Alternatively, after a user performs a preset mouse operation or touch gesture within the first area, the electronic device can switch between the sub-desks displayed in the first area, while the sub-desks displayed in the second area remain unchanged, thus enabling the user to switch between the sub-desks displayed in a portion of the display area through preset mouse operations or touch gestures. In specific implementations, the preset mouse operations or touch gestures triggered by the user in a portion of the area for switching desktops or sub-desks can be configured according to actual business scenarios or user needs, and this application embodiment does not limit this. For example, when the electronic device is in a folded keyboard-embedded state, if the user triggers a preset mouse operation or touch gesture in the first area, the electronic device can switch the sub-desks displayed in the first area, while since the sub-desks displayed in the second area are obscured by the keyboard, the electronic device does not need to switch the content displayed in the second area.

[0102] Based on the same concept, embodiments of this application also provide a desktop management method, which can be executed by an electronic device having a foldable display screen, such as an electronic device that can be... Figure 1 The foldable screen PC shown. Figure 18 A flowchart of a desktop management method provided in an embodiment of this application is shown below. Figure 18 The method includes the following steps:

[0103] S1801: The display screen of the electronic device is in the unfolded state, and the electronic device displays the first desktop on the display screen.

[0104] In this embodiment of the application, when the display screen of the electronic device is in the unfolded state, the electronic device displays a first desktop on the entire area of ​​the display screen. For example, the electronic device can display the first desktop as follows: Figure 2 As shown in (a), the first desktop may include at least one of an application icon, an application window, and a display control.

[0105] S1802: In response to the user's first operation, the electronic device displays a first sub-desktop in a first area of ​​the folded display screen and a second sub-desktop in a second area of ​​the folded display screen.

[0106] The first operation is the user's operation of folding the display screen, the first sub-desktop includes at least one element in the first desktop, and the second sub-desktop includes other elements in the first desktop besides the elements in the first sub-desktop.

[0107] In this embodiment, the electronic device can determine whether to map each element in the first desktop to a split first sub-desktop or second sub-desktop based on the position of each element in the first desktop and / or the frequency of user use of each element. For example... Figure 2 As shown in (b), the electronic device can display a first sub-desktop 202 in a first area of ​​the folded display screen and a second sub-desktop 203 in a second area.

[0108] In some alternative implementations, the electronic device runs multiple desktops, including a first desktop and a second desktop. In response to a user's first operation, the electronic device splits the second desktop into a third sub-desktop and a fourth sub-desktop. The third sub-desktop includes at least one element from the second desktop, and the fourth sub-desktop includes all elements from the first desktop except those in the third sub-desktop. In this embodiment, when a user triggers an operation to fold the electronic device's display from a flat state to a folded state, the electronic device can split the multiple desktops running on it into two sub-desks respectively, thereby providing a display method suitable for the folded state of the display.

[0109] In some alternative implementations, the electronic device displays multiple navigation controls on its screen, with each navigation control corresponding to a specific desktop. In response to a second user action on any of the navigation controls, a desktop management window is displayed. This window includes multiple desktop cards, each corresponding to a specific desktop. The desktop cards include a first desktop card and a second desktop card. The first desktop card corresponds to a first desktop and includes a first sub-card and a second sub-card, where the first sub-card corresponds to a first sub-desktop and the second sub-card corresponds to a second sub-desktop. The second desktop card corresponds to a second desktop and includes a third sub-card and a fourth sub-card, where the third sub-card corresponds to a third sub-desktop and the fourth sub-card corresponds to a fourth sub-desktop. For example, when the electronic device's screen is in a folded state, the electronic device can display... Figure 4The navigation controls 401, 402, and 403 shown correspond to a virtual desktop, or in other words, each navigation control corresponds to two sub-desks derived from a virtual desktop. For example, navigation control 401 corresponds to the first sub-desktop and the second sub-desktop. After the user triggers a second operation with any of the navigation controls, the electronic device can display a desktop management window as shown in Figure 7. In this desktop management window, each desktop card includes two sub-cards. For example, desktop card 710 includes a first sub-card 711 and a second sub-card 712. The first sub-card 711 corresponds to the first sub-desktop, and the second sub-card 712 corresponds to the second desktop.

[0110] In some alternative implementations, in response to a third user action on a second desktop card, a third sub-desktop is displayed in the first area, and a fourth sub-desktop is displayed in the second area. In this approach, the electronic device can switch the currently displayed desktop based on actions triggered by the user in the desktop management window, as shown in the reference... Figure 8 When the electronic device displays the first and second sub-desktops corresponding to desktop card 802, the user clicks desktop card 801, and the electronic device switches to displaying the third sub-desktop corresponding to desktop card 801 in the first area and the fourth sub-desktop corresponding to desktop card 801 in the second area.

[0111] In some alternative implementations, in response to a fourth operation by the user on the first desktop card, the electronic device swaps the positions of the first sub-card and the second sub-card, wherein the fourth operation involves dragging the first sub-card to the position of the second sub-card; the electronic device displays the second sub-desktop in the first area and the first sub-desktop in the second area. In this method, the user can swap the display areas of two sub-desks of the same desktop within a desktop management window, as shown in the reference... Figure 9 When the electronic device displays the first sub-desktop corresponding to the first sub-card 901 in the first area and the second sub-desktop corresponding to the second sub-card 902 in the second area, the user drags the first sub-card to the position of the second sub-card. The electronic device swaps the positions of the first sub-card 901 and the second sub-card 902 in the desktop management window. The electronic device displays the second sub-desktop corresponding to the second sub-card 902 in the first area and the first sub-desktop corresponding to the first sub-card 901 in the second area.

[0112] In some alternative implementations, in response to a fifth operation by the user on the fourth sub-card, the electronic device swaps the positions of the fourth sub-card and the first sub-card, wherein the fifth operation is used to drag the fourth sub-card to the position of the first sub-card; the fourth sub-desktop is then displayed in the first area. In this way, the user can manipulate the sub-cards in the desktop management window to recombine any two sub-desks. For example, see reference... Figure 10When the electronic device displays the first sub-desktop in the first area and the second sub-desktop in the second area, the user drags the fourth sub-card 1001 to the position of the first sub-card 1002. The electronic device swaps the positions of the fourth sub-card 1001 and the first sub-card 1002 in the desktop management window. The electronic device then displays the fourth sub-desktop corresponding to the fourth sub-card 1001 in the first area and the second sub-desktop in the second area, thereby recombinating the fourth and second sub-desktops, as well as recombinating the third and first sub-desktops.

[0113] In some alternative implementations, in response to a sixth user action, a virtual keyboard is displayed in the second area; or an external keyboard connected to the electronic device is detected, and the keyboard obscures the second area; the second sub-desktop is hidden. For example, see reference... Figure 10 The second area of ​​the electronic device can be covered by a physical keyboard, or the second area can display a virtual keyboard. In this case, the second area stops displaying the sub-desktop, such as... Figure 10 In the desktop management window, the sub-cards corresponding to the sub-desks that can be displayed in the second area are adjusted to be unselected.

[0114] In some optional implementations, in response to a seventh operation triggered by the user in the desktop management window and acting on the second sub-card, the second sub-desktop is displayed in the first area, and the first sub-desktop is hidden; the electronic device sets the second sub-card to a selected state and the first sub-card to a deselected state. Optionally, the seventh operation can be a click operation triggered by the user on the second sub-card, or the seventh operation can be an operation where the user drags the second sub-card to the position of the first sub-card. In this way, the user can trigger switching between different sub-desks of the same desktop displayed in the first area, for example, referring to... Figure 14 When the electronic device displays the first sub-desktop corresponding to the first sub-card 1402 in the first area, the user clicks the second sub-card 1401, the electronic device displays the second sub-desktop corresponding to the second sub-card 1401 in the first area, and sets the first sub-card 1402 in the desktop management window to an unselected state.

[0115] In some optional implementations, in response to an eighth operation performed by the user on the first sub-card, the positions of the first and fourth sub-cards are swapped. This eighth operation involves dragging the first sub-card to the position of the fourth sub-card. The first sub-desktop is displayed in the first area, the third sub-card is set to an unselected state, and the fourth sub-card is set to a selectable state. In this way, the user can manipulate the sub-cards in the desktop management window to recombine any two sub-desks. Since an external keyboard is connected to the second area of ​​the electronic device or a virtual keyboard is displayed in the second area, after recombinating the two sub-desks, the electronic device still displays one sub-desktop in the first area, while the other sub-desktop on the same desktop remains hidden. For example, see reference... Figure 16 When the electronic device displays the first sub-desktop corresponding to the first sub-card 1601 in the first area, the user drags the first sub-card 1601 to the position of the fourth sub-card 1602. The electronic device can swap the positions of the first and fourth sub-cards in the desktop management window, and the electronic device continues to display the first sub-desktop corresponding to the first sub-card 1601 in the first area. Since the first and third sub-desktops are now recombined, and the electronic device can only display one sub-desktop, the third sub-card is set to an unselected state. The fourth sub-desktop is then recombined with the second sub-desktop, and the fourth sub-desktop is now set to a selectable state.

[0116] In some optional implementations, in response to an eleventh operation performed by the user on the second sub-card, the positions of the second and third sub-cards are swapped. The eleventh operation involves dragging the second sub-card to the position of the third sub-card; displaying the second sub-desktop in the first area; setting the second sub-desktop to a selected state; setting the third sub-card to an unselected state; and setting the first sub-card to a selectable state. In this way, the user can manipulate the sub-cards in the desktop management window to recombine any two sub-desks. If the sub-desktop corresponding to the card to which the user triggers the drag operation is not the sub-desktop currently displayed by the electronic device, the electronic device can still switch the display of the sub-desktop corresponding to the card to which the drag operation is performed after the user triggers the drag operation. For example, see reference... Figure 17 When the electronic device displays the first sub-desktop corresponding to the first sub-card, the user drags the second sub-card 1701 to the position of the third sub-card 1702. The electronic device can swap the positions of the second sub-card 1701 and the third sub-card 1702 in the desktop management window. The electronic device displays the second sub-desktop corresponding to the second sub-card 1701 in the first area. At this time, the second and fourth sub-desks are recombined, and the fourth sub-card is still set to an unselected state. The first and third sub-desks are recombined, and the first sub-card is set to a selectable state, while the third sub-card is set to an unselected state.

[0117] In some optional implementations, in response to a tenth user operation, the electronic device displays a task management interface. The task management interface includes a desktop management window, identifiers of at least one application window displayed on a first sub-desktop and a second sub-desktop, and the identifiers of the at least one application window displayed on the first and second sub-desktops include a first application window identifier. The desktop management window includes multiple desktop cards, each corresponding to a specific desktop. Each desktop card includes a second desktop card, and each second desktop card includes a third sub-card. In response to an eleventh user operation on the first application window identifier, a third sub-desktop corresponding to the third sub-card is displayed in a first area, and the first application window corresponding to the first application window identifier is displayed in the third sub-desktop. The eleventh operation is used to drag the first application window identifier to the third sub-card in the desktop management window. For example, see reference... Figure 11 Users can trigger the electronic device to display a task management interface, which includes a first application window identifier 1101 corresponding to the first application window displayed in the first sub-desktop and a second application window 1102 corresponding to the second application window displayed in the second sub-desktop. After the user drags the first application window identifier 1101 to the third sub-card 1103 of the desktop management window, the electronic device can display the third sub-desktop in the first area and display the first application window in the third sub-desktop.

[0118] In some alternative implementations, a dock is displayed in a first sub-desktop, the dock including identifiers of at least one application window in a second sub-desktop, the identifiers of the at least one application window including a first application window identifier; in response to a twelfth operation by the user on the first application window identifier, a first application window corresponding to the first application window identifier is displayed in the first sub-desktop. For example, refer to... Figure 13 When the electronic device switches to the folded keyboard state, the electronic device can display the first application window identifier 1303 and the second application window 1304 corresponding to the first application window in the second sub-desk in the program dock. When the user clicks the first application window identifier 1303, the electronic device can display the first application window in the first sub-desk.

[0119] It should be noted that this application Figure 18 The desktop management method shown can be referred to in the above embodiments of this application for specific implementation, and repeated parts will not be described again.

[0120] It is understood that, in order to implement the functions of the electronic device in the above embodiments, the electronic device includes hardware and / or software structures corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and method steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0121] Figure 19 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application, with reference to... Figure 19 The computing device may include a processing module 1901 and a display module 1902. This computing device can be used to implement the methods executed by the electronic device in the above embodiments. The computing device may be the electronic device itself, or a chip or chipset within the electronic device, or a part of a chip that performs the relevant method functions.

[0122] In one implementation, Figure 19 The computing device shown can be used to implement the method executed by the electronic device in the embodiments of this application. The display module 1902 is used to display a first desktop in an unfolded state; the processing module 1901 is used to split the first desktop into a first sub-desktop and a second sub-desktop in response to a first user operation; wherein the first operation is the user folding the display screen, the first sub-desktop includes at least one element of the first desktop, and the second sub-desktop includes other elements of the first desktop besides the elements in the first sub-desktop. The display module 1902 is used to display the first sub-desktop in a first area in a folded state and the second sub-desktop in a second area in a folded state.

[0123] In some implementations, the electronic device operates multiple desktops, including a first desktop and a second desktop; the processing module 1901 is further configured to, in response to a first operation by the user, split the second desktop into a third sub-desktop and a fourth sub-desktop, the third sub-desktop including at least one element of the second desktop, and the fourth sub-desktop including other elements of the first desktop besides the elements in the third sub-desktop.

[0124] In some embodiments, the display module 1902 is also used to display a plurality of navigation controls on the display screen, the plurality of navigation controls corresponding one-to-one with a plurality of desktops; in response to a second operation by the user on any of the plurality of navigation controls, a desktop management window is displayed, the desktop management window including a plurality of desktop cards, the plurality of desktop cards corresponding one-to-one with a plurality of desktops.

[0125] In some implementations, the multiple desktop cards include a first desktop card and a second desktop card. The first desktop card is the card corresponding to a first desktop. The first desktop card includes a first sub-card and a second sub-card. The first sub-card is the card corresponding to a first sub-desktop, and the second sub-card is the card corresponding to a second sub-desktop. The second desktop card is the card corresponding to a second desktop. The second desktop card includes a third sub-card and a fourth sub-card. The third sub-card is the card corresponding to a third sub-desktop, and the fourth sub-card is the card corresponding to a fourth sub-desktop.

[0126] In some embodiments, the display module 1902 is also configured to display a third sub-desktop in a first area and a fourth sub-desktop in a second area in response to a third operation performed by the user on the second desktop card.

[0127] In some embodiments, the display module 1902 is further configured to, in response to a fourth operation performed by the user on the first desktop card, swap the positions of the first sub-card and the second sub-card, wherein the fourth operation is configured to drag the first sub-card to the position of the second sub-card; display the second sub-desktop in the first area, and display the first sub-desktop in the second area.

[0128] In some embodiments, the display module 1902 is further configured to, in response to a fifth operation performed by the user on the fourth sub-card, swap the positions of the fourth sub-card and the first sub-card, wherein the fifth operation is configured to drag the fourth sub-card to the position of the first sub-card; and display the fourth sub-desktop in the first area.

[0129] In some implementations, the display module 1902 is further configured to display a virtual keyboard in the second area and hide the second sub-desktop in response to a sixth operation by the user; or the processing module 1901 is further configured to detect an external keyboard connected to the electronic device and the keyboard obscures the second area, in which case the display module 1902 is further configured to hide the second sub-desktop.

[0130] In some implementations, the display module 1902 is also configured to respond to a seventh operation triggered by the user in the desktop management window and acting on the second sub-card, display the second sub-desktop in the first area, hide the first sub-desktop, set the second sub-card to a selected state, and set the first sub-card to an unselected state.

[0131] In some implementations, the display module 1902 is also configured to, in response to an eighth operation performed by the user on the first sub-card, swap the positions of the first sub-card and the fourth sub-card, the eighth operation being used to drag the first sub-card to the position of the fourth sub-card; display the first sub-desktop in the first area; set the third sub-card to an unselected state; and set the fourth sub-card to a selectable state.

[0132] In some embodiments, the display module 1902 is also configured to, in response to a ninth operation performed by the user on the second sub-card, swap the positions of the second sub-card and the third sub-card, the ninth operation being used to drag the second sub-card to the position of the third sub-card; display the second sub-desktop in the first area, set the second sub-desktop to a selected state, set the third sub-card to an unselected state, and set the first sub-card to a selectable state.

[0133] In some embodiments, the display module 1902 is further configured to display a task management interface in response to a tenth user operation. The task management interface includes a desktop management window, identifiers of at least one application window displayed in a first sub-desktop and a second sub-desktop, the identifiers of at least one application window displayed in the first and second sub-desktops including a first application window identifier, the desktop management window including multiple desktop cards, the multiple desktop cards corresponding one-to-one with multiple desktops, the multiple desktop cards including a second desktop card, and the second desktop card including a third sub-card; in response to an eleventh user operation on the first application window identifier, a third sub-desktop corresponding to the third sub-card is displayed in a first area, and a first application window corresponding to the first application window identifier is displayed in the third sub-desktop, the eleventh operation being used to drag the first application window identifier to the third sub-card in the desktop management window.

[0134] In some embodiments, the display module 1902 is further configured to display a dock in a first sub-desktop, the dock including an identifier of at least one application window in a second sub-desktop, the identifier of the at least one application window including a first application window identifier; in response to a twelfth operation performed by the user on the first application window identifier, displaying a first application window corresponding to the first application window identifier in the first sub-desktop.

[0135] It should be noted that the processing module can be implemented in software or hardware. For example, the following describes possible implementation methods for the processing module.

[0136] 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 aforementioned computing instance may be one or more. For example, a processing module may include code running on multiple hosts / virtual machines / containers.

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

[0138] It should be noted that in other embodiments, the computing device may include more or fewer modules, any module being used to perform any step in the backup and disaster recovery method. The steps implemented by any module in the computing device can be specified as needed, and this application embodiment does not limit this.

[0139] This application also provides an electronic device. For example... Figure 20 As shown, the electronic device 2000 includes: a bus 2002, a processor 2004, a memory 2006, a display screen 2007, and a communication interface 2008. The processor 2004, memory 2006, display screen 2007, and communication interface 2008 communicate with each other via the bus 2002. The electronic device 2000 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 the electronic device 2000.

[0140] The bus 2002 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be divided into address buses, data buses, control buses, etc. For ease of representation, Figure 20 The bus 2002 may be represented by a single line, but this does not mean that there is only one bus or one type of bus. The bus 2002 may include a path for transmitting information between various components of the electronic device 2000 (e.g., memory 2006, processor 2004, communication interface 2008).

[0141] Processor 2004 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).

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

[0143] The memory 2006 stores executable program code, which the processor 2004 executes to implement the functions of the aforementioned processing module 1901, thereby realizing the desktop management method. That is, the memory 2006 stores instructions for executing the desktop management method.

[0144] The display screen 2007 can be used to receive control from the processor 2004 to display desktop, sub-desktop, and other content, thereby realizing the functions of the aforementioned display module 1902 and implementing the desktop management method.

[0145] The communication interface 2003 uses transceiver modules, such as, but not limited to, network interface cards and transceivers, to implement the aforementioned communication module functions, or to enable communication between the electronic device 2000 and other devices or communication networks.

[0146] Based on the above embodiments, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.

[0147] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.

[0148] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.

[0149] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices.

[0150] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0151] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0152] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0153] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0154] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A desktop management method, characterized in that, Applied to electronic devices, the electronic devices including foldable displays; When the display screen is in the unfolded state, a first desktop is displayed on the display screen; In response to a user's first operation, a first sub-desktop is displayed in a first area of ​​the folded display screen, and a second sub-desktop is displayed in a second area of ​​the folded display screen, wherein the first operation is the user's operation of folding the display screen, the first sub-desktop includes at least one element of the first sub-desktop, and the second sub-desktop includes other elements of the first sub-desktop besides the elements of the first sub-desktop.

2. The method as described in claim 1, characterized in that, The electronic device runs multiple desktops, including the first desktop and the second desktop; the method further includes: In response to a user's first action, the second desktop is split into a third sub-desktop and a fourth sub-desktop, the third sub-desktop including at least one element from the second desktop, and the fourth sub-desktop including all other elements from the first desktop except for the elements from the third sub-desktop.

3. The method as described in claim 2, characterized in that, The method further includes: The display screen shows multiple navigation controls, and each of the multiple navigation controls corresponds to one of the multiple desktops; In response to a second operation by the user on any of the plurality of navigation controls, a desktop management window is displayed, the desktop management window including a plurality of desktop cards, the plurality of desktop cards corresponding one-to-one with the plurality of desktops.

4. The method as described in claim 3, characterized in that, The plurality of desktop cards includes a first desktop card and a second desktop card. The first desktop card is the card corresponding to the first desktop. The first desktop card includes a first sub-card and a second sub-card. The first sub-card is the card corresponding to the first sub-desktop, and the second sub-card is the card corresponding to the second sub-desktop. The second desktop card is the card corresponding to the second desktop. The second desktop card includes a third sub-card and a fourth sub-card. The third sub-card is the card corresponding to the third sub-desktop, and the fourth sub-card is the card corresponding to the fourth sub-desktop.

5. The method as described in claim 4, characterized in that, The method further includes: In response to a third operation performed by the user on the second desktop card, the third sub-desktop is displayed in the first area, and the fourth sub-desktop is displayed in the second area.

6. The method as described in claim 4, characterized in that, The method further includes: In response to a fourth operation performed by the user on the first desktop card, the positions of the first sub-card and the second sub-card are swapped, wherein the fourth operation is used to drag the first sub-card to the position of the second sub-card; The second sub-desktop is displayed in the first area, and the first sub-desktop is displayed in the second area.

7. The method as described in claim 4, characterized in that, The method further includes: In response to a fifth operation performed by the user on the fourth sub-card, the positions of the fourth sub-card and the first sub-card are swapped, wherein the fifth operation is used to drag the fourth sub-card to the position of the first sub-card; The fourth sub-desktop is displayed in the first area.

8. The method as described in claim 3 or 4, characterized in that, The method further includes: In response to the user's sixth action, a virtual keyboard is displayed in the second area; or An external keyboard was detected connected to the electronic device, and the keyboard was obstructing the second area; Hide the second child desktop.

9. The method as described in claim 8, characterized in that, The method further includes: In response to the seventh operation triggered by the user in the desktop management window and applied to the second sub-card, the second sub-desktop is displayed in the first area, and the first sub-desktop is hidden; Set the second sub-card to the selected state and set the first sub-card to the unselected state.

10. The method as described in claim 8, characterized in that, The method further includes: In response to an eighth operation performed by the user on the first sub-card, the positions of the first sub-card and the fourth sub-card are swapped, the eighth operation being used to drag the first sub-card to the position of the fourth sub-card; The first sub-desktop is displayed in the first area, the third sub-card is set to an unselected state, and the fourth sub-card is set to an selectable state.

11. The method as described in claim 8, characterized in that, The method further includes: In response to the user's ninth operation on the second sub-card, the positions of the second sub-card and the third sub-card are swapped, the ninth operation being used to drag the second sub-card to the position of the third sub-card; The second sub-desktop is displayed in the first area, the second sub-desktop is set to the selected state, the third sub-card is set to the unselected state, and the first sub-card is set to the selectable state.

12. The method as described in claim 1 or 2, characterized in that, The method further includes: In response to the user's tenth operation, a task management interface is displayed. The task management interface includes a desktop management window, an identifier of at least one application window displayed in the first sub-desktop and the second sub-desktop, and the identifier of at least one application window displayed in the first sub-desktop and the second sub-desktop includes a first application window identifier. The desktop management window includes multiple desktop cards, and the multiple desktop cards correspond one-to-one with the multiple desktops. The multiple desktop cards include a second desktop card, and the second desktop card includes a third sub-card. In response to the eleventh operation performed by the user on the first application window identifier, a third sub-desktop corresponding to the third sub-card is displayed in the first area, and a first application window corresponding to the first application window identifier is displayed in the third sub-desktop. The eleventh operation is used to drag the first application window identifier to the third sub-card in the desktop management window.

13. The method as described in claim 8, characterized in that, The method further includes: Display a dock in the first sub-desktop, the dock including an identifier of at least one application window in the second sub-desktop, the identifier of the at least one application window including a first application window identifier; In response to the twelfth operation performed by the user on the first application window identifier, the first application window corresponding to the first application window identifier is displayed in the first sub-desktop.

14. A computing device, characterized in that, The computing device includes a processing module and a display module; The display module is used to display the first desktop in the expanded state; The processing module is configured to split the first desktop into a first sub-desktop and a second sub-desktop in response to a first operation by the user, wherein the first operation is the user's operation of folding the display screen, the first sub-desktop includes at least one element of the first desktop, and the second sub-desktop includes other elements of the first desktop besides the elements of the first sub-desktop. The display module is used to display a first sub-desktop in a first area when in a folded state, and to display a second sub-desktop in a second area when in a folded state.

15. The apparatus as claimed in claim 14, characterized in that, The computing device runs multiple desktops, including the first desktop and the second desktop; the processing module is further configured to: In response to a user's first action, the second desktop is split into a third sub-desktop and a fourth sub-desktop, the third sub-desktop including at least one element from the second desktop, and the fourth sub-desktop including all other elements from the first desktop except for the elements from the third sub-desktop.

16. The apparatus as claimed in claim 15, characterized in that, The display module is also used for: Display multiple navigation controls, each of which corresponds to one of the multiple desktops; In response to a second operation by the user on any of the plurality of navigation controls, a desktop management window is displayed, the desktop management window including a plurality of desktop cards, the plurality of desktop cards corresponding one-to-one with the plurality of desktops.

17. The apparatus as claimed in claim 16, characterized in that, The plurality of desktop cards includes a first desktop card and a second desktop card. The first desktop card is the card corresponding to the first desktop. The first desktop card includes a first sub-card and a second sub-card. The first sub-card is the card corresponding to the first sub-desktop, and the second sub-card is the card corresponding to the second sub-desktop. The second desktop card is the card corresponding to the second desktop. The second desktop card includes a third sub-card and a fourth sub-card. The third sub-card is the card corresponding to the third sub-desktop, and the fourth sub-card is the card corresponding to the fourth sub-desktop.

18. The apparatus as claimed in claim 17, characterized in that, The display module is also used for: In response to a third operation performed by the user on the second desktop card, the third sub-desktop is displayed in the first area, and the fourth sub-desktop is displayed in the second area.

19. The apparatus as claimed in claim 17, characterized in that, The display module is also used for: In response to a fourth operation performed by the user on the first desktop card, the positions of the first sub-card and the second sub-card are swapped, wherein the fourth operation is used to drag the first sub-card to the position of the second sub-card; The second sub-desktop is displayed in the first area, and the first sub-desktop is displayed in the second area.

20. The apparatus as claimed in claim 17, characterized in that, The display module is also used for: In response to a fifth operation performed by the user on the fourth sub-card, the positions of the fourth sub-card and the first sub-card are swapped, wherein the fifth operation is used to drag the fourth sub-card to the position of the first sub-card; The fourth sub-desktop is displayed in the first area.

21. The apparatus as claimed in claim 16 or 17, characterized in that, The display module is further configured to: in response to the user's sixth operation, display a virtual keyboard in the second area and hide the second sub-desktop; or The processing module is further configured to: detect an external keyboard connected to the electronic device, and the keyboard obstructs the second area; the display module is further configured to: hide the second sub-desktop.

22. The apparatus as claimed in claim 21, characterized in that, The display module is also used for: In response to the seventh operation triggered by the user in the desktop management window and applied to the second sub-card, the second sub-desktop is displayed in the first area, and the first sub-desktop is hidden; Set the second sub-card to the selected state and set the first sub-card to the unselected state.

23. The apparatus as claimed in claim 21, characterized in that, The display module is also used for: In response to an eighth operation performed by the user on the first sub-card, the positions of the first sub-card and the fourth sub-card are swapped, the eighth operation being used to drag the first sub-card to the position of the fourth sub-card; The first sub-desktop is displayed in the first area, the third sub-card is set to an unselected state, and the fourth sub-card is set to an selectable state.

24. The apparatus as claimed in claim 21, characterized in that, The display module is also used for: In response to the user's ninth operation on the second sub-card, the positions of the second sub-card and the third sub-card are swapped, the ninth operation being used to drag the second sub-card to the position of the third sub-card; The second sub-desktop is displayed in the first area, the second sub-desktop is set to the selected state, the third sub-card is set to the unselected state, and the first sub-card is set to the selectable state.

25. The apparatus as claimed in claim 14 or 15, characterized in that, The display module is also used for: In response to the user's tenth operation, a task management interface is displayed. The task management interface includes a desktop management window, an identifier of at least one application window displayed in the first sub-desktop and the second sub-desktop, and the identifier of at least one application window displayed in the first sub-desktop and the second sub-desktop includes a first application window identifier. The desktop management window includes multiple desktop cards, and the multiple desktop cards correspond one-to-one with the multiple desktops. The multiple desktop cards include a second desktop card, and the second desktop card includes a third sub-card. In response to the eleventh operation performed by the user on the first application window identifier, a third sub-desktop corresponding to the third sub-card is displayed in the first area, and a first application window corresponding to the first application window identifier is displayed in the third sub-desktop. The eleventh operation is used to drag the first application window identifier to the third sub-card in the desktop management window.

26. The apparatus as claimed in claim 21, characterized in that, The display module is also used for: Display a dock in the first sub-desktop, the dock including an identifier of at least one application window in the second sub-desktop, the identifier of the at least one application window including a first application window identifier; In response to the twelfth operation performed by the user on the first application window identifier, the first application window corresponding to the first application window identifier is displayed in the first sub-desktop.

27. An electronic device, characterized in that, Including processor and memory; The processor is configured to execute instructions stored in the memory to cause the electronic device to perform the method as described in any one of claims 1-13.

28. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions for causing a computer to perform the method as described in any one of claims 1-13.

29. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-13.