Desktop management method, computing apparatus, and electronic device
By splitting the desktop into two sub-desks and displaying them in independent areas during the screen switching process of a foldable PC, the layout chaos problem when the form factor of the foldable PC changes is solved, the user experience is improved, and convenient desktop management and switching are achieved.
Patent Information
- Application Number
- PCT/CN2024/144572
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-26
- Filing Date
- 2024-12-31
- Publication Date
- 2026-03-05
AI Technical Summary
When foldable PCs change form, the layout of the system desktop and application windows on the display becomes chaotic, affecting user interaction and leading to a decline in user experience.
When the display of a foldable PC switches from an unfolded state to a foldable state, the desktop is split into two sub-desks and displayed in two independent areas to ensure that all elements are displayed in an orderly manner. Multiple navigation controls and desktop management windows are used for management, and multiple desktops can be flexibly switched and combined.
It achieves orderly desktop display when the foldable PC form factor changes, improves user experience, provides convenient desktop management and switching methods, and avoids layout chaos.
Smart Images

Figure CN2024144572_05032026_PF_FP_ABST
Abstract
Description
A desktop management method, computing device, and electronic device
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411179967.0, filed on August 26, 2024, entitled "A Desktop Management Method, Computing Device and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of Internet technology, and in particular to a desktop management method, computing device, and electronic device. Background Technology
[0004] 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.
[0005] 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
[0006] 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.
[0007] 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.
[0008] 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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.
[0013] 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.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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
[0028] Figure 1 is a schematic diagram of a foldable screen PC provided in an embodiment of this application;
[0029] Figure 2 is a desktop schematic diagram of an electronic device in different forms provided in an embodiment of this application;
[0030] Figure 3 is a schematic diagram of the desktop displayed by an electronic device according to an embodiment of this application;
[0031] Figure 4 is a schematic diagram of the desktop display of an electronic device according to an embodiment of this application;
[0032] Figure 5 is a schematic diagram of a desktop management window provided in an embodiment of this application;
[0033] Figure 6 is a schematic diagram of a task management interface displayed on an electronic device according to an embodiment of this application;
[0034] Figure 7 is a schematic diagram of a desktop management window provided in an embodiment of this application;
[0035] Figure 8 is a schematic diagram of a display of an electronic device provided in an embodiment of this application;
[0036] Figure 9 is a schematic diagram of another electronic device provided in an embodiment of this application;
[0037] Figure 10 is a display schematic diagram of another electronic device provided in an embodiment of this application;
[0038] Figure 11 is a schematic diagram of a task management interface displayed on an electronic device according to an embodiment of this application;
[0039] Figure 12 is a schematic diagram of the display screen of an electronic device in a folded state according to an embodiment of this application;
[0040] Figure 13 is a schematic diagram of a display of an electronic device provided in an embodiment of this application;
[0041] Figure 14 is a schematic diagram of a display of an electronic device provided in an embodiment of this application;
[0042] Figure 15 is a schematic diagram of a display of an electronic device provided in an embodiment of this application;
[0043] Figure 16 is a schematic diagram of a display of an electronic device provided in an embodiment of this application;
[0044] Figure 17 is a schematic diagram of a display of an electronic device provided in an embodiment of this application;
[0045] Figure 18 is a flowchart of a desktop management method provided in an embodiment of this application;
[0046] Figure 19 is a schematic diagram of the structure of a computing device provided in an embodiment of this application;
[0047] Figure 20 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.
[0049] 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.
[0050] A foldable PC is a novel type of PC device. A foldable PC includes a foldable display screen, as shown in Figure 1, which is a schematic diagram of a foldable PC according to an embodiment of this application. Referring to Figure 1, the display screen of the foldable PC includes a folding hinge, allowing users to fold or unfold the display screen. Electronic devices can display on different screen configurations, providing users with diverse display effects.
[0051] Referring to Figure 1, the foldable screen PC in this embodiment supports two states: unfolded and folded. As shown in Figure 1(a), when the foldable screen PC is in the unfolded state, it can be displayed in display area 101, where the display area is the entire area of the display screen. When the foldable screen PC is in the unfolded state, the user can rotate it, and it can be displayed in either a horizontal or vertical unfolded state. As shown in Figure 1(b), when the foldable screen PC is in the folded state, the folded display screen can be considered to include two logical sub-screens, and the foldable screen PC can be displayed 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 the terms "vertical sub-screen" and "horizontal sub-screen" in this embodiment are merely names and not limitations on the positional relationship between the two sub-screens. In practice, the vertical and horizontal sub-screens are not necessarily perpendicular to each other and can have other angles. In some examples, when the foldable PC is in a folded state, an external physical keyboard can be connected to the display area 103, or a virtual keyboard can be displayed in the display area 103. Users can input content or trigger operations on the foldable PC using either the physical keyboard or the virtual keyboard.
[0052] It should be noted that the dashed line in Figure 1 is only a schematic diagram of the folding axis of the display screen. The display screen will not actually display the dashed line. The dashed lines in the figures involved in the following embodiments of this application can also refer to this description. Repeated descriptions will not be repeated.
[0053] In some implementations, when the form 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 original 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 displays a virtual keyboard or an external physical keyboard in the display area 103 shown in Figure 1(b), the content originally displayed in the display area 103 will be covered by the keyboard, making it impossible for the user to view or operate it. Alternatively, the content originally displayed in the display area 103 will be moved entirely to the display area 102. In this case, the application icons, application windows, display components, and other elements on the display screen may experience layout problems.
[0054] To address the aforementioned problems, this application provides a desktop management method that can be executed by an electronic device, including a foldable display screen, such as the foldable PC shown in Figure 1. The method provided by this application embodiment is described below.
[0055] 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.
[0056] 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.
[0057] Optionally, the electronic device can determine whether to display an element in a first sub-desktop or a second sub-desktop based on the position of each element in at least one element of 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 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 area or the second area of the folded display screen according to the user's usage habits or by user customization. For example, the first area can be display area 102 as shown in Figure 1(b), and the second area can be display area 103 as shown in Figure 1(b). Since the user's gaze often falls on the first area when the device is folded, the electronic device can display the application icons of applications that the user uses frequently in the first sub-desktop, and display the application icons of applications that the user uses less frequently in the second sub-desktop.
[0058] For example, Figure 2 is a schematic diagram of the desktop of an electronic device in a different form according to an embodiment of this application. Referring to Figure 2(a), the display screen of the electronic device displays 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 a running application, a display control 215, and a display control 216. In Figure 2, display controls 215 and 216 are shown as service cards as an example. In practice, the display controls may also be other controls. In response to a first operation triggered by the user, the electronic device switches from a flattened state to a folded state. The electronic device splits the first desktop into a first sub-desktop and a second sub-desktop. Referring to Figure 2(b), the electronic device displays the first sub-desktop 202 in the first area of the folded display screen. For example, the first sub-desktop 202 includes application icons 211, 212, application windows 214, and display controls 215. The electronic device displays the second sub-desktop 203 in the second area of the folded display screen. For example, the second sub-desktop 203 includes application icons 213 and display controls 216.
[0059] 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.
[0060] It should be noted that Figure 2 is only an example of the desktop management method provided in this application and not a limitation. In practice, the electronic device can determine whether to display the elements in the first desktop in the first sub-desktop or the second sub-desktop based on the position and usage frequency of each element in the first desktop.
[0061] 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.
[0062] 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.
[0063] 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 one desktop, it can also display one navigation control.
[0064] For example, Figure 3 is a schematic diagram of a desktop displayed by an electronic device according to an embodiment of this application. Referring to Figure 3, taking the electronic device's display screen in an unfolded state as an example, when three desktops are running on the electronic device, the electronic device displays three navigation controls on the display screen: navigation control 301, navigation control 302, and navigation control 303. The 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, referring to Figure 3, taking navigation control 301 as an example, the length of navigation control 301 can be greater than the length of navigation control 302 and navigation control 303, and the shape or fill color of navigation control 301 can be different from the shape or fill color of navigation control 302 and navigation control 303. It should be noted that the style of the navigation controls in Figure 3 is only an example and not a limitation. In specific implementations, the navigation controls can also have other styles, and this embodiment of the application does not limit this.
[0065] For example, Figure 4 is a schematic diagram of a desktop displayed by an electronic device according to an embodiment of this application. Referring to Figure 4, when the display screen of the electronic device is in a folded state, the electronic device can display multiple navigation controls in a first area. The multiple navigation controls correspond one-to-one with multiple desktops running on the electronic device. Specifically, the navigation controls correspond to the desktops when the electronic device is in a flattened state. Therefore, when the electronic device is in a folded state, the navigation controls correspond to two sub-desks. For example, Figure 4 shows 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-desks obtained by splitting the first desktop, navigation control 402 corresponds to the third and fourth sub-desks obtained by splitting the second desktop, and navigation control 403 corresponds to the fifth and sixth sub-desks obtained by splitting the third desktop.
[0066] Optionally, as shown in Figure 4, 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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 corresponding to a desktop running on the electronic device. The style of each desktop card is related to the landscape or portrait orientation of the electronic device's display screen. Figure 5 is a schematic diagram of a desktop management window provided in an embodiment of this application. Referring to Figure 5(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 currently displayed by the electronic device. Referring to Figure 5(b), 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 orientation. 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 shape (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.
[0071] Optionally, in the desktop management window displayed by the electronic device, the desktop card corresponding to the desktop currently being displayed by the electronic device can be displayed in a selected state. As shown in Figure 5(a), when the electronic device displays the first desktop, the desktop card 501 corresponding to the first desktop can be displayed in a selected state. This selection state can be indicated by adding a focus box to the desktop card 501, thereby indicating 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 the desktop card, such as by adding a background to the desktop card, displaying the desktop card in a floating position, 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 corresponding to the desktop card selected by the user on the display screen. For example, when the electronic device is displaying the first desktop, if the user clicks the desktop card 502 corresponding to the second desktop, the electronic device will switch to displaying the second desktop on the display screen.
[0072] In some examples, the desktop management window displayed by the electronic device may also include a control for creating a new desktop, such as control 507 shown in Figure 5(a) or control 508 shown in Figure 5(b). The user can trigger an operation on the control to create a new virtual desktop. For example, after the user clicks the control, the electronic device can create a new virtual desktop.
[0073] 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.
[0074] For example, Figure 6 is a schematic diagram of a task management interface displayed by an electronic device according to an embodiment of this application. Referring to Figure 6, when the electronic device displays a first desktop in an expanded state, in response to a tenth operation triggered by the user, such as a long press on any position on the desktop or a multi-finger swipe down, the electronic device can display the task management interface. When the first desktop of the electronic device includes a first application window and a second application window, as shown in Figure 6, the task management interface includes a desktop management window and identifiers 601 for the first application window and 602 for the second application window. The identifiers of the application windows in the task management interface shown in Figure 6 can be thumbnails of the application windows. The user can trigger a drag operation on the identifier 601 of the first application window, dragging the identifier 601 of the first application window to the second card 603 in the desktop management window. Then, the electronic device can switch to displaying a second desktop and display the first application window on the second desktop.
[0075] 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.
[0076] For example, Figure 7 is a schematic diagram of a desktop management window provided in an embodiment of this application. Referring to Figure 7, the display screen of the electronic device is in a folded state, and three desktops are running in the electronic device. Each desktop is divided into two sub-desks. For example, when the electronic device displays the first desktop, it can specifically display the first sub-desk in the first area and the second sub-desk in the second area. Referring to 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. As shown in Figure 7, 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.
[0077] 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.
[0078] 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.
[0079] For example, Figure 8 is a schematic diagram of an electronic device provided in an embodiment of this application. Referring to Figure 8, the display screen of the electronic device 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 a click operation on the second desktop card 801 in the desktop management window, the electronic device switches to display a third sub-desktop in the first area and a fourth sub-desktop in the second area. The first desktop card 802 in the desktop management window switches to a selectable state, and the second desktop card 801 switches to a selected state, as shown by the focus box added to the second desktop card 801 in Figure 8.
[0080] 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.
[0081] For example, Figure 9 is a schematic diagram of another electronic device provided in an embodiment of this application. Referring to Figure 9, 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. When a 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. The electronic device then switches between displaying the second sub-desktop in the first area and the first sub-desktop in the second area.
[0082] 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.
[0083] 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.
[0084] For example, Figure 10 is a display schematic diagram of another electronic device provided in an embodiment of this application. Referring to Figure 10, 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. When a 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 and recombines the first and third sub-desktops.
[0085] 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.
[0086] For example, Figure 11 is a schematic diagram of a task management interface displayed on an electronic device according to an embodiment of this application. Referring to Figure 11, when the display screen of the electronic device 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. In response to a tenth operation triggered by the user, such as long-pressing any position on any sub-desktop or multi-finger swiping, the electronic device can display the task management interface. When the first desktop includes a first application window and the second desktop includes a second application window, as shown in Figure 11, the task management interface includes a desktop management window and the identifiers 1101 and 1102 of the first and second application windows. As shown in Figure 11, the identifiers 1101 and 1102 of the first and second application windows can be application window thumbnails. A 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 the display of the third sub-desktop corresponding to the third sub-card 1103 in the first area, displaying the first application window within 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 application window's identifier 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.
[0087] 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.
[0088] 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.
[0089] For example, Figure 12 is a schematic diagram of the display screen of an electronic device in a folded state according to an embodiment of this application. Referring to Figure 12, when the electronic device is in a folded keyboard-embedded state, the electronic device displays a first sub-desktop in the first area. The first sub-card 1201 in the desktop management window is selected, while the second sub-card 1202, the fourth sub-card 1203, and the sixth sub-card 1204 in the desktop management window are unselected. The electronic device can add overlays to the second sub-card 1202, the fourth sub-card 1203, and the sixth sub-card 1204 to indicate that the second sub-card 1202, the fourth sub-card 1203, and the sixth sub-card 1204 are unselected. 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 in 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.
[0090] 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.
[0091] For example, Figure 13 is a schematic diagram of an electronic device provided in an embodiment of this application. Referring to Figure 13, when the display screen of the electronic device is in a folded state, the electronic device can display a first sub-desktop in a first area of the display screen and a second sub-desktop in a second area. When an external keyboard is covered on 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 of the display screen. The first sub-desktop includes a dock 1301, and the dock 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, as shown in Figure 13 where the electronic device displays a first application window identifier 1303 and a second application window identifier 1304. Figure 13 illustrates this by showing the first application window identifier 1303 and the second application window identifier 1304 as thumbnails of application windows. When the user clicks the first application window identifier 1303, the electronic device can display the first application window in the first desktop.
[0092] 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.
[0093] For example, Figure 14 is a schematic diagram of an electronic device provided in an embodiment of this application. Referring to Figure 14, the display screen of the electronic device is in a folded keyboard state, and the electronic device displays a first sub-desktop in the first area. When the user triggers a click operation 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 switches to an unselected state, and the second sub-card 1402 switches to a selected state.
[0094] 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.
[0095] For example, Figure 15 is a schematic diagram of an electronic device provided in an embodiment of this application. Referring to Figure 15, the display screen of the electronic device is in a folded keyboard state, and the electronic device displays a first sub-desktop in the first area. When a 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.
[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. 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.
[0097] For example, Figure 16 is a schematic diagram of an electronic device provided in an embodiment of this application. Referring to Figure 16, the display screen of the electronic device is in a folded keyboard state, and the electronic device displays a first sub-desktop in the first area. When a user triggers an operation in the desktop management window to drag the first sub-card 1601 to the position of the fourth sub-card 1602, the electronic device swaps the positions of the first sub-card 1601 and the fourth sub-card 1602 in the desktop management window, and the third sub-card 1603 switches to an unselected state, while the fourth sub-card 1602 switches 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-desks based on user operations, and also recombines the fourth and second sub-desks.
[0098] 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.
[0099] For example, Figure 17 is a schematic diagram of an electronic device provided in an embodiment of this application. Referring to Figure 17, the display screen of the electronic device is in a folded keyboard state, and the electronic device displays a first sub-desktop in the first area. When a user triggers an operation in the desktop management window to drag the second sub-card 1701 to the position of the third sub-card 1702, the electronic device swaps the positions of the second sub-card 1701 and the third sub-card 1702 in the desktop management window. The second sub-card 1701 is switched to a selected state, the third sub-card 1702 is switched to an unselected state, and the first sub-card is switched to a selectable state. The electronic device switches to displaying the second sub-desktop in the first area. In this example, the electronic device recombines the first and third sub-deskstops, as well as the second and fourth sub-deskstops, based on user operations.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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.
[0104] Based on the same concept, this application also provides a desktop management method, which can be executed by an electronic device having a foldable display screen, such as the foldable screen PC shown in Figure 1. Figure 18 is a flowchart of a desktop management method provided by an embodiment of this application. Referring to Figure 18, the method includes the following steps:
[0105] 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.
[0106] 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 in the entire area of the display screen. For example, the electronic device displays the first desktop as shown in Figure 2(a). The first desktop may include at least one of application icons, application windows and display controls.
[0107] 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.
[0108] 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.
[0109] 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. As shown in Figure 2(b), the electronic device can display the first sub-desktop 202 in the first area of the folded display screen and the second sub-desktop 203 in the second area.
[0110] 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.
[0111] In some optional implementations, the electronic device displays multiple navigation controls on the 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 navigation controls 401, 402, and 403 as shown in Figure 4. Each navigation control corresponds to a virtual desktop, or in other words, each navigation control corresponds to two sub-desks obtained by splitting a virtual desktop, such as navigation control 401 corresponding to the first and second sub-desks. After the user triggers the second operation on any navigation control, 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 sub-desktop.
[0112] In some alternative implementations, in response to a third user action on the 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 user actions triggered in the desktop management window. For example, referring to Figure 8, when the electronic device displays the first and second sub-desktops corresponding to desktop card 802, if the user clicks on desktop card 801, 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.
[0113] In some alternative implementations, in response to a fourth operation performed 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 is used to drag 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 mode, the user can swap the display areas of two sub-desks of the same desktop in the desktop management window. Referring to 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 card, 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 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.
[0114] In some optional implementations, in response to a fifth operation performed 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; and the fourth sub-desktop is 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, referring to Figure 10, when the electronic device displays the first sub-desktop in the first area and the second sub-desktop in the second area, if 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, and the electronic device 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-desks, as well as recombinating the third and first sub-desks.
[0115] In some alternative implementations, in response to the user's sixth operation, a virtual keyboard is displayed in the second area; or an external keyboard is detected on the electronic device and the keyboard obscures the second area; the second sub-desktop is hidden. For example, referring to Figure 10, a physical keyboard may be covered on the second area of the electronic device, or a virtual keyboard may be displayed in the second area. In this case, the second area stops displaying sub-desks, as shown in Figure 10, where the sub-cards corresponding to the sub-desks that can be displayed in the second area in the desktop management window are adjusted to an unselected state.
[0116] 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 a switch 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 a deselected state.
[0117] 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. The 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-desktops. 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-desktops, the electronic device still displays one sub-desktop in the first area, while the other sub-desktop of the same desktop remains hidden. For example, referring to 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 recombinated, and the electronic device can only display one sub-desktop, the electronic device sets the third sub-card to an unselected state. The fourth sub-desktop is recombined with the second sub-desktop, and the fourth sub-desktop is now selectable.
[0118] In some optional implementations, in response to an eleventh user action on the second sub-card, the positions of the second and third sub-cards are swapped. The eleventh action 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, users can manipulate 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 on the electronic device, the electronic device can switch the display of the sub-desktop corresponding to the card to which the drag operation is triggered after the user triggers the drag operation. For example, referring to 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, and the electronic device displays the second sub-desktop corresponding to the second sub-card 1701 in the first area. At this time, the second sub-desktop and the fourth sub-desktop are recombined, and the fourth sub-card is still set to an unselected state. The first sub-desktop and the third sub-desktop are recombined, and the first sub-card is set to a selectable state, while the third sub-card is set to an unselected state.
[0119] In some optional implementations, in response to a user's tenth operation, the electronic device displays a task management interface, which includes a desktop management window, an identifier for at least one application window displayed in a first sub-desktop and a second sub-desktop, the identifier for 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 a user's eleventh 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. For example, referring to Figure 11, a user can trigger the electronic device to display a task management interface. This task management interface 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.
[0120] In some optional implementations, a dock is displayed in the first sub-desktop, the dock including an identifier for 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 a twelfth operation 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. For example, referring to FIG13, when the electronic device switches to the folded keyboard state, the electronic device can display the first application window identifier 1303 corresponding to the first application window and the second application window 1304 corresponding to the second application window in the second sub-desktop in the dock; when the user clicks the first application window identifier 1303, the electronic device can display the first application window in the first sub-desktop.
[0121] It should be noted that the desktop management method shown in Figure 18 of this application can be referred to the above embodiments of this application in specific implementation, and repeated parts will not be described again.
[0122] 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.
[0123] Figure 19 is a schematic diagram of a computing device provided in an embodiment of this application. Referring 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 it may be a chip or chipset in the electronic device, or a part of the chip used to execute related methods.
[0124] In one embodiment, the computing device shown in FIG19 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.
[0125] 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.
[0126] 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.
[0127] 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.
[0128] 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.
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] This application also provides an electronic device. As shown in FIG20, 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 may 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.
[0142] Bus 2002 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, only one line is used in Figure 20, but this does not imply that there is only one bus or one type of bus. Bus 2002 can include pathways for transmitting information between various components of electronic device 2000 (e.g., memory 2006, processor 2004, communication interface 2008).
[0143] 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).
[0144] 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).
[0145] 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.
[0146] 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.
[0147] The communication interface 2008 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.
[0148] 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.
[0149] 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.
[0150] 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.
[0151] 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.
[0152] 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.
[0153] 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, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0154] 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 that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0155] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0156] 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.
Citation Information
Patent Citations
Split-screen display method and device, electronic equipment and computer readable storage medium
CN109947315A
Display method and electronic equipment
CN110647731A
Folding screen display method and electronic equipment
CN112506386A
Application interface display method and device, terminal and storage medium
CN115202773A
Display method for foldable screen and electronic device
WO2024088253A1