A method, electronic device, and storage medium for desktop switching

CN122816731APending Publication Date: 2026-09-25GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510350987.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2026-09-25

AI Technical Summary

Benefits of technology

[0020]结合第一方面和上述实现方式,在某些可能的实现方式中,该方法还包括:当系统创建新桌面时,确定与新桌面对应的新索引图标;基于新桌面在多个桌面中的位置,确定新索引图标在索引图标列表中的目标位置;将新索引图标添加至索引图标列表的目标位置。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122816731A_ABST
    Figure CN122816731A_ABST
Patent Text Reader

Abstract

The application provides a desktop switching method, an electronic device and a storage medium. The method comprises: when it is detected that the number of desktops created by the system is greater than 1, generating an index icon list based on the created desktops; if it is determined that the system needs to switch from a current desktop to a target desktop in the desktops, displaying the index icon list in a target area of the current desktop, and marking a first index icon corresponding to the current desktop in the index icon list as a selected state; controlling the system to switch from the current desktop to the target desktop, and determining a switching progress; and moving a target mark representing the selected state from the first index icon to a second index icon corresponding to the target desktop according to the switching progress. The method can intuitively display the state of the desktop through the index icon, help the user better understand the state of the desktop, and improve the interactive experience of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method for desktop switching, an electronic device, and a storage medium in the field of computer technology. Background Technology

[0002] With the continuous advancement and development of science and technology, more and more systems are introducing multi-desktop functionality to better meet the increasingly diverse needs of users. Users can switch between multiple different desktops by using keyboard shortcuts or a graphical user interface.

[0003] With the continuous evolution and innovation of science and technology, some high-end car central control systems have begun to integrate similar multi-desktop functions, which provides drivers and passengers with the possibility of switching between different applications or functional spaces, greatly enhancing the driving experience and the convenience of riding.

[0004] In existing technologies, most systems typically only switch desktops when switching desktops. This can lead to cognitive difficulties for users, making it hard for them to quickly determine the current desktop status and affecting the user experience. Summary of the Invention

[0005] This application provides a method for desktop switching, an electronic device, and a storage medium. The method can intuitively display the desktop status through index icons, helping users better understand the desktop status and improving the user's interactive experience.

[0006] Firstly, a method for desktop switching is provided, comprising: when the number of desktops created by the system is greater than one, generating an index icon list based on the multiple created desktops; wherein the index icon list includes multiple index icons, each index icon corresponds to a desktop, and each index icon has visual features associated with the corresponding desktop; if it is determined that the system needs to switch from the current desktop to a target desktop among the multiple desktops, then displaying the index icon list in the target area of ​​the current desktop, and marking the first index icon corresponding to the current desktop in the index icon list as selected; controlling the system to switch from the current desktop to the target desktop, and determining the switching progress; according to the switching progress, moving the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop.

[0007] In the above technical solution, after determining that the system has created multiple desktops, an index icon list is generated based on these desktops. Each index icon in the list represents its corresponding desktop. When the system switches desktops, the index icon list is displayed, and the index icon of the current desktop is marked as selected. The status of the index icons can intuitively prompt the user about the current desktop's status. When the system switches from the current desktop to the target desktop, the target marker representing the selected status is moved from the first index icon to the second index icon corresponding to the target desktop based on the switching progress. This provides the user with a clear switching process, allowing the user to understand the status of each desktop during the switching process, helping the user better understand and control the desktop switching process, and improving the interactive experience.

[0008] In conjunction with the first aspect, in some possible implementations, moving the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop according to the switching progress includes: determining the relative positions of the first and second index icons in the index icon list; determining the movement method of the target marker based on the relative positions; and moving the target marker from the first index icon to the second index icon according to the movement method based on the switching progress.

[0009] In the above technical solution, different movement methods are set for the target markers to move depending on the different relative positions of the first index icon and the second index icon, which improves the flexibility of the target markers and ensures that the desktop switching process can be displayed more accurately based on the index icons.

[0010] Combining the first aspect and the above implementation methods, in some possible implementation methods, the relative position includes adjacent positions and non-adjacent positions. Based on the relative position, the movement method of the target marker is determined, including: when the relative positions are adjacent, the movement method is determined to be a first movement method; wherein, under the first movement method, the target marker moves from the first index icon to the second index icon according to the switching progress along the target path, and the target path is the line connecting the first index icon and the second index icon; when the relative positions are non-adjacent, the movement method is determined to be a second movement method; wherein, under the second movement method, the target marker disappears from the first index icon and is displayed at the second index icon according to the switching progress.

[0011] In the above technical solution, different movement methods are used when moving the target marker for the first and second index icons with different relative positions. This allows the movement method to adapt to the position of the index icons, helping users to more intuitively understand the current operation status. Specifically, when two index icons are adjacent, the target marker smoothly moves to the next index icon; when two index icons are not adjacent, the target marker disappears and reappears on the target icon. This change method reduces confusion, makes the switching operation more intuitive and clear, and avoids the situation where using only the smooth movement method might cause users to misunderstand due to passing by other icons, thus improving the accuracy of the desktop status display.

[0012] Combining the first aspect and the above implementation methods, in some possible implementation methods, if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, then an index icon list is displayed in the target area of ​​the current desktop, including: if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, then detecting whether the current desktop includes desktop cards; if the current desktop includes desktop cards, hiding the desktop cards; after the desktop cards are hidden, displaying the index icon list in the target area of ​​the current desktop.

[0013] In the above technical solution, when switching desktops, if there are desktop cards on the current desktop, the desktop cards are hidden before the index icon list is displayed. This can reduce the interference of desktop cards on the user's vision. Furthermore, desktop cards may obscure the index icon list, making it difficult for the user to clearly and intuitively grasp the status of the desktop. Hiding the desktop cards first can ensure that the user can clearly observe the index icons and thus intuitively grasp the status of the desktop.

[0014] Combining the first aspect and the above implementation methods, in some possible implementation methods, marking the first index icon corresponding to the current desktop in the index icon list as selected includes: enlarging the first index icon by a preset factor, and / or highlighting the first index icon to mark the first index icon as selected.

[0015] In the above technical solution, the first index icon can be clearly distinguished from other index icons by magnification and / or highlighting, and the selected state of the first index icon can be displayed. Through the selected state of the index icon, an intuitive and clear interface experience can be provided to the user, helping the user to clearly understand the active state of the current desktop and the inactive state of other desktops, improving the user's interactive experience and avoiding the problem of poor interactive experience caused by the user's inability to understand the desktop status.

[0016] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: hiding the list of index icons after detecting that the second index icon is marked as selected.

[0017] In the above technical solution, hiding the index icon list after detecting that the second index icon is marked as selected can make the target desktop cleaner, reduce visual interference, and allow users to focus more on the content displayed on the target desktop.

[0018] In combination with the first aspect and the above implementation methods, in some possible implementation methods, after hiding the list of index icons, the method further includes: displaying desktop cards if the target desktop includes desktop cards.

[0019] In the above technical solution, when the target desktop includes desktop cards, the desktop cards are automatically displayed after the index icon list is hidden, which ensures that the relevant information of the target function corresponding to the desktop card is promptly prompted to the user, thereby enhancing the system's flexibility and improving the user experience.

[0020] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: when the system creates a new desktop, determining a new index icon corresponding to the new desktop; determining the target position of the new index icon in the index icon list based on the position of the new desktop among multiple desktops; and adding the new index icon to the target position in the index icon list.

[0021] In the above technical solution, when creating a new desktop, the system can dynamically update the index icon list according to the position of the new desktop among the multiple desktops that have been created, insert the new index icon into the correct position, provide an scalable index state design, support automatic adaptation of the number of index icons as the number of desktops increases, and enhance the flexibility of the index icon list.

[0022] In summary, this application generates an index icon list based on multiple pre-existing index icons for each desktop. Each index icon represents its corresponding desktop. When switching desktops, the index icon list is displayed, and the index icon of the current desktop is enlarged and / or highlighted to clearly distinguish the first index icon from others. The selected state of the first index icon is displayed, providing users with an intuitive and clear interface experience and helping them clearly understand the active state of the current desktop and the inactive state of other desktops. During desktop switching, the target marker representing the selected state is moved from the first index icon to the second index icon corresponding to the target desktop based on the switching progress. This provides users with a clear switching process, allowing them to understand the status of each desktop during the switching process. For first and second index icons with different relative positions, different movement methods are used when moving the target marker, improving the flexibility of moving the target marker and ensuring more accurate display of the desktop switching process based on the index icons. Timely hiding and showing of desktop cards reduces the interference of desktop cards on the user's vision while ensuring timely prompting of users with relevant information about the target function corresponding to the desktop card. Furthermore, an scalable index state design is provided, supporting automatic adaptation of the number of index icons as the number of desktops increases, enhancing the flexibility of the index icon list.

[0023] Secondly, a desktop switching device is provided, comprising: a generation module, configured to generate an index icon list based on the multiple created desktops when the number of desktops created by the system is greater than one; wherein the index icon list includes multiple index icons, each index icon corresponds to a desktop, and each index icon has visual features associated with the corresponding desktop; a display module, configured to display the index icon list in the target area of ​​the current desktop and mark the first index icon corresponding to the current desktop in the index icon list as selected if it is determined that the system needs to switch from the current desktop to the target desktop among the multiple desktops; a switching module, configured to control the system to switch from the current desktop to the target desktop and determine the switching progress; and a movement module, configured to move the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop according to the switching progress.

[0024] In conjunction with the second aspect, in some possible implementations, the moving module is specifically used to: determine the relative positions of the first index icon and the second index icon in the list of index icons; determine the movement method of the target marker based on the relative positions; and move the target marker from the first index icon to the second index icon according to the movement method based on the switching progress.

[0025] Combining the second aspect and the above implementation methods, in some possible implementation methods, the relative position includes adjacent positions and non-adjacent positions. The movement module is specifically used to: when the relative positions are adjacent, determine the movement method as the first movement method; wherein, in the first movement method, the target marker moves from the first index icon to the second index icon according to the switching progress, and the target path is the line connecting the first index icon and the second index icon; when the relative positions are non-adjacent, determine the movement method as the second movement method; wherein, in the second movement method, the target marker disappears from the first index icon and is displayed at the second index icon according to the switching progress.

[0026] Combining the second aspect and the above implementation methods, in some possible implementation methods, the display module is specifically used to: if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, detect whether the current desktop includes desktop cards; if the current desktop includes desktop cards, hide the desktop cards; after the desktop cards are hidden, display an index icon list in the target area of ​​the current desktop.

[0027] In combination with the second aspect and the above implementation methods, in some possible implementation methods, the display module is specifically used to enlarge the first index icon by a preset factor, and / or to highlight the first index icon to mark the first index icon as selected.

[0028] In conjunction with the second aspect and the above implementation, in some possible implementations, the device further includes: a hiding module for hiding the list of index icons after detecting that the second index icon is marked as selected.

[0029] In combination with the second aspect and the above implementation methods, in some possible implementation methods, after hiding the list of index icons, the display module is also used to display the desktop cards if the target desktop includes desktop cards.

[0030] In conjunction with the second aspect and the above implementation methods, in some possible implementation methods, the device further includes: a first determining module, used to determine a new index icon corresponding to the new desktop when the system creates a new desktop; a second determining module, used to determine the target position of the new index icon in the index icon list based on the position of the new desktop among multiple desktops; and an adding module, used to add the new index icon to the target position in the index icon list.

[0031] Thirdly, an electronic device is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the electronic device to perform the methods of the first aspect or any possible implementation thereof.

[0032] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0033] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof. Attached Figure Description

[0034] Figure 1 This is a schematic flowchart illustrating a desktop switching method provided in an embodiment of this application.

[0035] Figure 2 This is a schematic diagram of an index icon list provided in an embodiment of this application.

[0036] Figure 3 This is a schematic diagram of a desktop card provided in an embodiment of this application.

[0037] Figure 4 This is a schematic diagram of a marker index icon provided in an embodiment of this application.

[0038] Figure 5 This is a schematic diagram of a desktop switching method provided in an embodiment of this application.

[0039] Figure 6 This is a schematic diagram of the movement process of a target marker provided in an embodiment of this application.

[0040] Figure 7 This is a schematic diagram of a hidden index icon list provided in an embodiment of this application.

[0041] Figure 8 This is a schematic diagram of a desktop switching device provided in an embodiment of this application.

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

[0043] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0044] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0045] In existing technologies, most systems that integrate multiple desktop functions (including vehicle central control systems) typically only perform the desktop switching action when switching between multiple desktops, and cannot intuitively display the desktop status. This can lead to cognitive difficulties for users, making it difficult for them to quickly determine the current desktop status, thus affecting the user experience.

[0046] Based on this, this application provides a method for desktop switching. By generating an index icon list and marking the index icons in the index icon list that correspond to the desktop, the desktop status is displayed intuitively, providing clear visual feedback to the user, helping the user better understand the desktop status, and improving the user's interactive experience.

[0047] Figure 1 This is a schematic flowchart illustrating a desktop switching method provided in an embodiment of this application. The method is applied to a system, which may specifically be a vehicle's central control operating system, a computer operating system, a tablet operating system, etc.

[0048] Step 101: When it is detected that the number of desktops created by the system is greater than 1, an index icon list is generated based on the multiple desktops that have been created; wherein, the index icon list includes multiple index icons, each index icon corresponds to a desktop, and each index icon has visual features associated with the corresponding desktop;

[0049] Step 102: If it is determined that the system needs to switch from the current desktop to the target desktop among multiple desktops, then display the index icon list in the target area of ​​the current desktop, and mark the first index icon corresponding to the current desktop in the index icon list as selected.

[0050] Step 103: Control the system to switch from the current desktop to the target desktop and determine the switching progress;

[0051] Step 104: Based on the switching progress, move the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop.

[0052] exist Figure 1 In the illustrated embodiment, after determining that the system has created multiple desktops, an index icon list is generated based on these desktops. Each index icon in the list represents its corresponding desktop. When the system switches desktops, the index icon list is displayed, and the index icon of the current desktop is marked as selected. This allows the user to intuitively understand the status of the current desktop based on the status of the index icons. When the system switches from the current desktop to the target desktop, the target marker representing the selected status is moved from the first index icon to the second index icon corresponding to the target desktop based on the switching progress. This provides the user with a clear switching process, enabling them to understand the status of each desktop during the switching process, helping them better understand and control the desktop switching process, and improving the interactive experience.

[0053] The following is about Figure 1 The specific implementation methods of each step in the illustrated embodiments are explained in detail below:

[0054] In step 101, "system" specifically refers to the operating system of the electronic device. The operating system supports the creation of multiple desktops. The operating system can be any one of a computer operating system, a tablet operating system, or a vehicle's central control operating system. Multiple desktops refer to two or more virtual workspaces or work areas provided by the operating system, and each desktop can independently run different applications and layouts.

[0055] Taking the vehicle's central control operating system as an example, the central control operating system is configured with multiple workspaces, such as the user space, the listening space, and the navigation space. The user space is the default working space for the central control operating system, and the desktop corresponding to the user space can be referred to as the user desktop. When the user activates the listening space and / or the navigation space or other workspaces in the central control operating system, the system needs to create one or more new desktops on top of the user desktop. At this time, the number of desktops created by the system is greater than 1.

[0056] Specifically, the Listening Space can be a workspace integrated with music functionality, where users can operate the system to play music. The Navigation Space can be a workspace integrated with navigation functionality, where users can operate the system to begin navigation.

[0057] Specifically, during system operation, the number of desktops created by the system can be detected in real time. If the number is greater than 1, it is determined that multiple desktops have been created, and an index icon list is generated based on the multiple desktops that have been created.

[0058] The system can pre-define index icons for different desktops. Each index icon has the same format and size, but the symbols it includes are different, meaning each index icon has unique visual characteristics. The visual characteristics of each index icon are related to the desktop it corresponds to.

[0059] Specifically, the visual characteristics of the index icon can be related to the functions implemented by the corresponding desktop. For example, if the reference desktop is a music-related desktop and the function implemented by the reference desktop is music, then the visual characteristics of the reference index icon corresponding to the reference desktop can be visual characteristics related to music.

[0060] If multiple desktops have been created by the system, the index icon corresponding to each of the multiple desktops can be determined, resulting in multiple index icons. Then, an index icon list can be generated based on these multiple index icons.

[0061] The steps for generating an index icon list based on multiple index icons may specifically include: determining the locations of multiple created desktops, arranging the multiple index icons based on the locations of the multiple created desktops, and generating an index icon list. In the index icon list generated based on the locations of multiple desktops, the position of each index icon can also represent the location of its corresponding desktop.

[0062] It's understandable that when a system creates multiple desktops, these desktops exist in a specific order. For example, if multiple desktops include Desktop 1, Desktop 2, and Desktop 3, with Desktop 1 preceding Desktop 2 and Desktop 3 following Desktop 2, the order of the desktops is Desktop 1, Desktop 2, Desktop 3. Therefore, by obtaining the positions of the multiple desktops and their order, and then arranging the corresponding index icons according to this order, we can obtain a list of index icons.

[0063] Figure 2 This is a schematic diagram of an index icon list provided in an embodiment of this application.

[0064] For example, Desktop 1 is the desktop created by default when the system runs in the user space; Desktop 2 is the desktop created when the Navigator Space is activated; and Desktop 3 is the desktop created when the Listening Space is activated. Based on the positions of Desktop 1, Desktop 2, and Desktop 3, the arrangement order of the multiple desktops is determined as Desktop 1, Desktop 2, Desktop 3. The index icon corresponding to Desktop 1 is... Figure 2 The index icons shown are 201 and 201, and the corresponding index icons for Desktop 2 are... Figure 2 The index icons shown are 202 and 3, and the corresponding index icons on the desktop are... Figure 2 The index icon shown is 203.

[0065] Figure 2In the diagram, the visual feature of index icon 201 is a picture symbol, which is associated with the desktop created in the user space; the visual feature of index icon 202 is a vehicle symbol, which is associated with the desktop created in the navigation space; and the visual feature of index icon 203 is a music symbol, which is associated with the desktop created in the listening space.

[0066] Arrange the index icons in the order of Desktop 1, Desktop 2, and Desktop 3 to obtain the index icon list, where the index icon order is: Index Icon 201, Index Icon 202, and Index Icon 203.

[0067] Understandable Figure 2 The method of arranging index icons horizontally to generate an index icon list is just one example. Index icons can also be arranged vertically or based on a certain angle to generate an index icon list. This application does not limit the method of arranging index icons.

[0068] In some embodiments, the index icons also need to be arranged according to a preset interval when arranging them, so that the generated list of index icons is neat and aesthetically pleasing.

[0069] In step 102, the user can send a desktop switching command to the system, specifying the target desktop to switch to. The target desktop is one of the multiple desktops created by the system, excluding the current desktop. After receiving the desktop switching command from the user, the system determines that it needs to switch from the current desktop to the target desktop.

[0070] Users can send desktop switching commands to the system via shortcut keys, voice, touch gestures, etc.

[0071] As one implementation method, the system is equipped with shortcut keys for switching to different desktops. When a user wants to control the system to switch to a target desktop, they can press the shortcut key corresponding to the target desktop. When the system detects that the shortcut key corresponding to the target desktop has been pressed, it receives a desktop switching command.

[0072] As another implementation, the system integrates a voice assistant, allowing users to send desktop switching commands to the system using voice commands. For example, if a user wants to control the system to switch to the next desktop from the current one, the user can say a voice command including keywords such as "switch to the next desktop." When the voice assistant recognizes the voice command including keywords such as "switch to the next desktop," the system receives the desktop switching command.

[0073] As another implementation method, the system includes a large touch screen and pre-set touch gestures for switching to different desktops. When a user wants to control the system to switch to a target desktop, they can make a touch gesture on the large touch screen that corresponds to the target desktop. When the system detects that the user has made a touch gesture on the large touch screen that corresponds to the target desktop, it receives a desktop switching command.

[0074] For example, the pre-set touch gestures are two-finger swipe gestures, including two-finger swipe gestures to the right and two-finger swipe gestures to the left. When the user wants to control the system to switch to the previous desktop of the current desktop, the user can make a two-finger swipe gesture to the right on the touch screen. When the user wants to control the system to switch to the next desktop of the current desktop, the user can make a two-finger swipe gesture to the left on the touch screen.

[0075] It is understood that the above-mentioned touch gesture, which is a two-finger swipe gesture, is only an example, and the embodiments of this application do not limit the touch gesture.

[0076] When the system does not receive a desktop switching command, the generated index icon list is hidden. The index icon list will only be displayed in the target area after the system receives the desktop switching command, and the first index icon corresponding to the current desktop in the displayed index icon list will be marked as selected.

[0077] In one possible implementation, if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, an index icon list is displayed in the target area of ​​the current desktop. This includes: if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, detecting whether the current desktop includes desktop cards; if the current desktop includes desktop cards, hiding the desktop cards; and after the desktop cards are hidden, displaying the index icon list in the target area of ​​the current desktop.

[0078] To make it easier for users to access information and operate the system, the system integrates information and / or operation buttons for specific functions into a unified card of a certain size and displays it on the desktop. These cards are called desktop cards. Desktop cards are generally located at the bottom of the desktop, and their purpose is to remind users that after the system displays the desktop cards, users do not need to open the software for the target function; they can directly view the information for the target function or operate the system's target function through the desktop cards.

[0079] Specifically, when the system is the vehicle's central control operating system, the desktop cards can include navigation cards, music cards, clock cards, etc. Each card has a certain size and is used to display prompts and / or operation buttons for the corresponding functions.

[0080] Figure 3 This is a schematic diagram of a desktop card provided in an embodiment of this application.

[0081] For example, such as Figure 3 As shown, desktop 300 includes navigation card 301 and music card 302. Desktop cards are displayed at the bottom of desktop 300.

[0082] The navigation card 301 includes navigation-related prompts, specifically: current driving distance information: enter XXX road after 450m, exit XXX; total driving distance: 26km, estimated driving time: 22 minutes, estimated arrival time: 12:34, etc.

[0083] The music card 302 includes information such as the music title, artist, and album cover of the currently playing music, and also includes control buttons such as play button 3021, track switch button 3022, and favorites button 3023.

[0084] like Figure 3 As shown, the fixed area below the desktop 300 also includes a Dock bar, which is usually used to display application icons or frequently used shortcuts. Figure 3 The middle Dock includes shortcuts for the home page, vehicle status, and temperature information.

[0085] For desktops created in different workspaces, the system can determine whether to configure a desktop card based on the functions provided by that desktop. When the system determines that the functions provided by a desktop require a large area and need to be unobstructed, it will not configure a desktop card to ensure that the desktop functions can be implemented.

[0086] For example, when designing the desktop for Navigator Space, since Navigator Space needs to provide navigation functionality to users, and this functionality relies on the navigation map display, the Navigator Space desktop needs to be as simple as possible to avoid too many distracting elements. Furthermore, to maximize map display, the desktop requires a large display area for the navigation map; desktop cards would occupy or cover part of the desktop area, therefore the system typically does not configure desktop cards for Navigator Space.

[0087] In addition, for desktops with more complex functions or requiring frequent interaction, such as user-space desktops, the system will configure desktop cards. Desktop cards provide a quick access and operation interface, enabling users to use desktop functions more efficiently.

[0088] In some embodiments, the system also considers user habits and preferences when configuring desktop cards. By analyzing user behavior in different desktop environments, the system can intelligently adjust the configuration of desktop cards to meet users' personalized needs. For example, for users who frequently use specific applications or tools, the system may automatically display cards for those applications or tools on the desktop, thereby reducing the time users spend searching for and launching applications.

[0089] When switching desktops, the system can detect whether the current desktop includes desktop cards. If the system determines that the current desktop includes desktop cards, it can hide the desktop cards first, and then display the list of index icons in the target area after the desktop cards are hidden.

[0090] The system can automatically hide desktop cards in several ways, including: reducing the transparency of desktop cards until they completely disappear within a preset time, and sliding desktop cards off the desktop within a preset time.

[0091] When hiding a desktop card by sliding it off the desktop within a preset time, the sliding direction can be determined based on the display position of the desktop card. For example, if the desktop card is displayed at the bottom of the desktop, then the desktop card can be hidden by sliding it off from the bottom.

[0092] In the above method, when switching desktops, if there are desktop cards on the current desktop, the desktop cards are hidden before the index icon list is displayed. This can reduce the interference of desktop cards on the user's vision. In addition, desktop cards may obscure the index icon list, making it difficult for the user to clearly and intuitively grasp the status of the desktop. Hiding the desktop cards first can ensure that the user can clearly observe the index icons and thus intuitively grasp the status of the desktop.

[0093] One possible implementation involves marking the first index icon in the current desktop list as selected, including: enlarging the first index icon by a preset factor, and / or highlighting the first index icon to mark it as selected.

[0094] As described in the above embodiments, each index icon in the index icon list has the same size and format, differing only in its symbol. While displaying the index icons, the first index icon can be enlarged to distinguish it as selected from the other index icons in the list. Alternatively, while displaying the index icons, the first index icon can be highlighted with a preset color to distinguish it as selected from the other index icons in the list. Or, while displaying the index icons, the first index icon can be enlarged and highlighted with a preset color to distinguish it as selected from the other index icons in the list.

[0095] If other index icons in the index icon list are not marked, then their status is unselected. The selected state of the first index icon indicates that the current desktop is active, while the selected state of other index icons indicates that other desktops are inactive.

[0096] Understandably, when the system determines that it needs to switch from the current desktop to the target desktop, the desktop that the system activates is still the current desktop. The first index icon is the index icon corresponding to the current desktop. By marking the first index icon as selected, the state of the index icon can be used to represent the state of the desktop.

[0097] Specifically, the steps to enlarge the first index icon by a preset factor may include: determining the position of the first index icon in the index icon list; when the first index icon is in the middle of the index icon list, it can be enlarged by a preset factor based on its center point; when the first index icon is in the first or last position of the index icon list, it can be enlarged by a preset factor based on the intersection of the line connecting the centers of all index icons and the edge of the first index icon.

[0098] In some embodiments, after enlarging the first index icon based on its center point, the blank spacing between the edges of each index icon in the index icon list can also be detected, and the blank spacing between the edges of each index icon can be adjusted to be equal when the blank spacing is unequal.

[0099] Understandably, when the first index icon is in the middle of the index icon list, enlarging it based on its center point ensures equal spacing between the first index icon and the edges of its adjacent icons, facilitating subsequent adaptive spacing adjustments. When the first index icon is in the first or last position of the index icon list, enlarging it based on the intersection of the line connecting the centers of all index icons and the edge of the first index icon ensures equal spacing between all index icons, eliminating the need for subsequent adjustments to the layout of other index icons and reducing system adjustments to the index icon layout.

[0100] In some embodiments, different highlight colors can be preset for different desktops. Before highlighting the first index icon, a target color corresponding to the current desktop can be determined from the preset colors, and the first index icon can be highlighted based on the target color.

[0101] Figure 4 This is a schematic diagram of a marker index icon provided in an embodiment of this application.

[0102] For example, such as Figure 4 As shown, desktop 400 is the desktop created by activating the Navigator Space system, which is desktop 2 mentioned above. The current desktop is desktop 2.

[0103] The index icon corresponding to Desktop 2 is Index Icon 202, that is, the first index icon is Index Icon 202. The list of index icons is displayed in the lower left area of ​​the current desktop, and Index Icon 202 is enlarged by a preset factor and highlighted.

[0104] In the above method, the first index icon can be clearly distinguished from other index icons by magnification and / or highlighting, and the selected state of the first index icon can be displayed. Through the selected state of the index icon, an intuitive and clear interface experience can be provided to the user, helping the user to clearly understand the active state of the current desktop and the inactive state of other desktops, improving the user's interactive experience and avoiding the problem of poor interactive experience caused by the user's inability to understand the desktop status.

[0105] In step 103, the system can pre-set a desktop switching method for switching from the current desktop to the target desktop, and can control the system to switch from the current desktop to the target desktop based on the set desktop switching method.

[0106] Desktop switching methods include various methods such as adjusting transparency and adjusting aspect ratio. Different desktop switching methods have different switching parameters. When the system switches from the current desktop to the target desktop, it can determine the switching progress based on the switching parameters corresponding to the desktop switching method.

[0107] As one implementation method, when switching desktops by adjusting transparency, the transparency of the current desktop is 100% and the transparency of other desktops is 0%. When the system switches from the current desktop to the target desktop by adjusting transparency, it can reduce the transparency of the current desktop from 100% to 0% based on a preset descent gradient, and increase the transparency of the target desktop from 0% to 100% based on a preset ascending gradient.

[0108] Adjusting the transparency parameter to the toggle allows you to determine the toggle progress based on transparency. Specifically, when the preset ascending and descending gradients are the same, the transparency of the target desktop can be used as the toggle progress.

[0109] As another implementation, when switching desktops by adjusting the aspect ratio, the current desktop's aspect ratio is 100%, while other desktops have a preset aspect ratio less than 100%, such as 50%, and these other desktops are hidden. When the system switches from the current desktop to the target desktop by adjusting the aspect ratio, it can display the target desktop at the preset aspect ratio on top of the current desktop, and increase the current desktop's aspect ratio to 100% based on a preset increase amount, so that the target desktop completely covers the current desktop.

[0110] The switching parameter for adjusting the aspect ratio is the aspect ratio, and the switching progress can be determined based on the aspect ratio. Specifically, you can first calculate the total aspect ratio increase required for the target desktop, and then divide the actual increase in aspect ratio of the current desktop by the total aspect ratio to obtain the switching progress.

[0111] For example, if the preset ratio is 50%, then the target desktop needs to increase its total screen size ratio by 1 - 50% = 50%. Assuming the current desktop's screen size ratio is increased to 65%, the actual increase in screen size ratio is 65% - 50% = 15%. The switching progress = actual increase in screen size ratio / total screen size ratio, so the switching progress can be determined as 15% / 50% = 30%.

[0112] In step 104, when the target marker indicating the selected state is a magnified marker or a highlighted marker, the target marker is moved from the first index icon to the second index icon, that is, the magnified marker or highlighted marker is moved from the first index icon to the second index icon. When the target marker indicating the selected state includes both a highlighted marker and a magnified marker, the target marker is moved from the first index icon to the second index icon corresponding to the target desktop, that is, the highlighted marker and the magnified marker are moved from the first index icon to the second index icon.

[0113] After the target marker moves, the first index icon reverts to its initial format (the format before it was marked), and the first index icon returns to its unselected state. After the target marker moves, the second index icon is enlarged by a preset factor and / or highlighted, and the second index icon is marked as selected. The first index icon returning to its unselected state indicates that the current desktop is not active, and the second index icon being marked as selected indicates that the target desktop is active.

[0114] When different highlight colors are preset for different desktops, the highlight color corresponding to the target desktop can be determined before highlighting the second index icon, and the second index icon is highlighted based on the highlight color corresponding to the target desktop.

[0115] In one possible implementation, moving the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop according to the switching progress includes: determining the relative positions of the first and second index icons in the index icon list; determining the movement method of the target marker based on the relative positions; and moving the target marker from the first index icon to the second index icon according to the movement method based on the switching progress.

[0116] The relative position of the first index icon and the second index icon in the index icon list refers to the distance and order of the first index icon and the second index icon in the index icon list. The relative position of the first index icon and the second index icon can be determined based on the distance and order of the first index icon and the second index icon in the index icon list.

[0117] When the distance and order of the first and second index icons in the index icon list are different, their relative positions are also different. When their relative positions are different, the movement method of the target marker can also differ. Once the relative positions of the first and second index icons are determined, the corresponding movement method can be determined.

[0118] It is understandable that when the relative positions between the first index icon and the second index icon are different, the movement path of the target marker will be different. In order to ensure the accuracy of the target marker movement and not cause misunderstanding or interference to the user, different movement methods of the target marker can be adaptively set for index icons with different relative positions.

[0119] After determining the movement method based on the relative position, the switching progress can be determined as the movement progress, and the target marker can be moved according to the movement progress to keep the movement progress of the target marker consistent with the switching progress.

[0120] Specifically, different movement methods can correspond to different movement parameters. The target parameters that the movement parameters corresponding to the current movement method need to meet can be determined according to the switching progress, and the target marker can be controlled to meet the target parameters. This enables the target marker to be moved from the first index icon to the second index icon according to the movement method based on the switching progress.

[0121] In the above method, different movement methods are set for the target markers based on the different relative positions of the first index icon and the second index icon, which improves the flexibility of the target markers and ensures that the desktop switching process can be displayed more accurately based on the index icons.

[0122] In one possible implementation, the relative position includes adjacent positions and non-adjacent positions. Based on the relative position, the movement mode of the target marker is determined, including: when the relative positions are adjacent, the movement mode is determined to be a first movement mode; wherein, under the first movement mode, the target marker moves from the first index icon to the second index icon according to the switching progress along the target path; when the relative positions are non-adjacent, the movement mode is determined to be a second movement mode; wherein, under the second movement mode, the target marker disappears from the first index icon and is displayed at the second index icon according to the switching progress.

[0123] When the relative positions are adjacent, it indicates that the first and second index icons are adjacent, meaning there are no other index icons between them. In this case, the target marker can be smoothly moved to the second index icon along a specific path based on the switching progress. This avoids misleading the user by having to pass over other index icons during the swipe. Therefore, the movement method for adjacent positions can be pre-defined as follows: based on the switching progress, the target marker is moved from the first index icon to the second index icon along a target path. Typically, the line connecting the center points of the two index icons is used as the target path for the translation of the target marker.

[0124] Understandably, in the first movement mode, the target marker needs to move along the target path; therefore, the movement parameter corresponding to the first movement mode can be the movement distance. The specific steps for moving the target marker based on the first movement mode include: using the line connecting the center points of the two index icons as the target path; determining the length of the target path; determining the correspondence between the switching progress and the movement distance based on the length of the target path, i.e., determining the movement distance required for each switching progress; and then moving the target marker according to the correspondence between the switching progress and the movement distance.

[0125] For example, the second index icon is Figure 4 Index icon 203, the target path is the line connecting the center points of index icon 202 and index icon 203, that is... Figure 4 Line segment L in the diagram. Assuming the length of the target path L is 10mm and the total switching progress is 100%, it can be determined that when the switching progress is zero, the movement distance is zero. For every 1% increase in switching progress, the movement distance needs to increase by 0.1mm. Based on this, the corresponding relationship between switching progress and movement distance can be determined as follows: Switching progress: For every 1% increase in switching progress from zero, the movement distance gradually increases by 0.1mm from zero.

[0126] Specifically, the process of marking moving targets can be represented based on the moving graphics.

[0127] Figure 5 This is a schematic diagram of a desktop switching method provided in an embodiment of this application.

[0128] For example, such as Figure 5 As shown, the desktop switching method is to adjust the transparency. The target desktop is Desktop 2 created by activating the listening space. The record 501 is the graphic in Desktop 2. The currently displayed screen 500 includes Desktop 1 with a first transparency and Desktop 2 with a second transparency. The sum of the first transparency and the second transparency equals 1. Specifically, it can be based on mobile... Figure 5 The circle A shown represents the process of moving the target marker.

[0129] In some embodiments, when moving the target marker based on the first movement method, certain rules for the changes in the graphic during the movement can be set. For example, the rules for the changes in the graphic during the movement can be set. Figure 5 The circle shown moves from the center of the first index icon to the second index icon according to the changing rules of water droplet movement in the liquid movement animation, realizing the display of the target marker movement process, providing a more natural transition effect, allowing users to clearly see the desktop switching process based on the index icons, and improving the user's interactive experience.

[0130] Figure 6 This is a schematic diagram of the movement process of a target marker provided in an embodiment of this application.

[0131] For example, such as Figure 6 As shown, the transformation of circle A according to the rules of water droplet movement in a liquid animation is a symmetrical process. Circle A is initially displayed above index icon 202 with a certain degree of transparency (e.g., 60%), allowing index icon 202 to be seen through it. In the first half of the target path, circle A is stretched and deformed along the path. During the stretching process, as the stretch length increases, circle A transforms into teardrop shape B, with the total area of ​​circle A remaining constant. Until it is stretched to halfway through the target path, teardrop shape B completely leaves index icon 202, transforming into shape C. Then, following the reverse transformation rules from shape B to shape C, shape C is transformed into teardrop shape D, which is symmetrical to teardrop shape B.

[0132] In some embodiments, after the graphic changes to a teardrop shape D, it gradually returns to a circle and disappears. At the same time that the graphic D gradually returns to a circle and disappears, the index icon 203 is enlarged by a preset factor and marked as highlighted.

[0133] When the relative positions are not adjacent, indicating that there are other index icons between the first and second index icons, if the target marker is moved using the method described above, the target marker will pass through the other index icons in between. Users may mistake the state of the other index icons for the state of the target desktop, leading to a misconception about the target desktop's state. In this situation, the target marker in the first index icon can be controlled to gradually disappear according to the switching progress, and the target marker can be controlled to appear on the second index icon according to the switching progress.

[0134] Specifically, when the target marker includes a highlighted marker, the target marker disappears based on the switching progress control, meaning the highlight color intensity of the first index icon decreases from 100% to 0% based on the switching progress control. When the target marker includes a magnified marker, the target marker disappears based on the switching progress control, meaning the first index icon shrinks to its initial size based on the switching progress control.

[0135] Correspondingly, the target marker is displayed on the second index icon according to the switching progress, including: controlling the highlight color intensity of the second index icon to increase from 0% to 100% based on the switching progress, and / or controlling the second index icon to be enlarged to a preset multiple based on the switching progress.

[0136] The system can pre-set the movement mode for non-adjacent positions as follows: based on the switching progress, the target marker in the first index icon disappears and the target marker is displayed in the second index icon, that is, the movement mode for non-adjacent positions is pre-set as the second movement mode.

[0137] Understandably, when the target marker includes both a magnified marker and a highlighted marker, the second movement method requires controlling the color intensity of the highlighted marker and the size of the index icon. The movement parameters corresponding to the second movement method can be the color intensity and the size of the index icon. The specific steps for moving the target marker based on the second movement method include: determining a first correspondence between the switching progress and the color intensity of the highlighted marker of the first index icon, a second correspondence between the switching progress and the size of the first index icon, a third correspondence between the switching progress and the color intensity of the highlighted marker of the second index icon, and a fourth correspondence between the switching progress and the size of the second index icon. Based on the first and second correspondences, the target marker of the first index icon is controlled to disappear; based on the third and fourth correspondences, the target marker of the second index icon is controlled to appear, thus moving the target marker from the first index icon to the second index icon.

[0138] For example, when marking the first index icon, the diameter of the first index icon is enlarged from 10mm to 12mm, and the first index icon is highlighted in blue with a color intensity of 100%. The total switching progress is 100%. It can be determined that for every 1% increase in the switching progress, the color intensity of the blue highlight needs to decrease by 1%, resulting in the first correspondence. It can also be determined that for every 1% increase in the switching progress, the diameter of the first index icon needs to decrease by 0.02mm, resulting in the second correspondence. Correspondingly, with the total switching progress at 100%, the second index icon needs to be enlarged from a diameter of 10mm to 12mm. Assuming the second index icon is highlighted in red, the color intensity of the red highlight needs to increase from 0% to 100%. It can be determined that for every 1% increase in the switching progress, the color intensity of the red highlight needs to increase by 1%, resulting in the third correspondence. Furthermore, it can be determined that for every 1% increase in the switching progress, the diameter of the second index icon needs to increase by 0.02mm, resulting in the fourth correspondence.

[0139] In the above method, different movement methods are used when moving the target marker for the first and second index icons with different relative positions. This allows the movement method to adapt to the position of the index icons, helping users to more intuitively understand the current operation status. Specifically, when two index icons are adjacent, the target marker smoothly moves to the next index icon; when two index icons are not adjacent, the target marker disappears and reappears on the target icon. This change reduces confusion, makes the switching operation more intuitive and clear, and avoids the situation where using only smooth movement might cause users to misunderstand due to passing by other icons, thus improving the accuracy of desktop status display.

[0140] In one possible implementation, the method further includes hiding the list of index icons after detecting that the second index icon is marked as selected.

[0141] Once the second index icon is detected as selected, it can be determined that the target desktop corresponding to the second index icon is activated. At this time, the desktop displayed by the system is the target desktop, which means that the system has completed the desktop switching action. At this point, the index icon list can be hidden to keep the target desktop tidy.

[0142] The methods for hiding the index icon list may include reducing the transparency of the index icon list, moving the index icon list outside the target desktop, etc., and this application embodiment does not limit the methods.

[0143] When the index icon list is hidden by reducing its transparency, the rate at which the transparency is reduced can be determined based on the preset duration of the hidden index icon list. Based on this rate of reduction, the transparency of each index icon in the index icon list is reduced to 0%.

[0144] Figure 7This is a schematic diagram of a hidden index icon list provided in an embodiment of this application.

[0145] For example, such as Figure 7 As shown, the second index icon is... Figure 7 If index icon 203 is enlarged and highlighted, it indicates that the system has completed the desktop switching action. At this time, the transparency of index icons 201, 202 and 203 will be reduced to hide the list of index icons.

[0146] In the above method, hiding the index icon list after detecting that the second index icon is marked as selected can make the target desktop cleaner, reduce visual interference, and allow users to focus more on the content displayed on the target desktop.

[0147] In one possible implementation, after hiding the list of index icons, the method further includes: displaying desktop cards if the target desktop includes desktop cards.

[0148] As in the above embodiment, the system can determine whether to configure desktop cards for the desktop based on the functions provided by the desktop. After the index icon list is hidden, the system can detect whether desktop cards are configured for the target desktop. If desktop cards are configured for the target desktop, the system determines that the target desktop includes desktop cards. If desktop cards are not configured for the target desktop, the system determines that the target desktop does not include desktop cards.

[0149] After confirming that the target desktop includes desktop cards, the system will display the desktop cards configured for the target desktop on the target desktop. Specifically, it can be done as follows: Figure 3 The area shown is located at the bottom of the desktop, near the Dock.

[0150] For example, a desktop card can be displayed by sliding the desktop card from the top edge of the bottom Dock bar of the target desktop into the target desktop.

[0151] In the above method, when the target desktop includes desktop cards, the desktop cards are automatically displayed after the index icon list is hidden. This ensures that the user is promptly prompted with relevant information about the target function corresponding to the desktop card, enhancing the system's flexibility and improving the user experience.

[0152] In one possible implementation, the method further includes: when the system creates a new desktop, determining a new index icon corresponding to the new desktop; determining the target position of the new index icon in the index icon list based on the position of the new desktop among multiple desktops; and adding the new index icon to the target position in the index icon list.

[0153] Specifically, after generating the list of index icons, it can be checked whether the user has activated other workspaces. If it is detected that the user has activated other workspaces, it can be determined that the system needs to create a new desktop corresponding to the other workspaces.

[0154] As in the above embodiment, the system has pre-set index icons corresponding to different desktops. When the system detects the creation of a new desktop, it can determine the new index icon corresponding to the new desktop from the pre-set index icons.

[0155] As one implementation method, a unique number can be set for each desktop in advance. When configuring an index icon for a desktop, the number of the index icon and the number of its corresponding desktop can be unified. After the system creates a new desktop, it can determine the new index icon based on the number of the new desktop.

[0156] There is a certain order between the newly created desktop and the multiple desktops that have already been created. The position of the new desktop among the multiple desktops can be determined based on the order of the new desktop and the multiple desktops that have already been created.

[0157] For example, the multiple desktops that have been created include: Desktop 1, Desktop 2, and Desktop 3. If the order of the new desktop and the multiple desktops that have been created is: Desktop 1, Desktop 2, New Desktop, Desktop 3, then the position of the new desktop can be determined to be between Desktop 2 and Desktop 3.

[0158] The positions of the index icons in the index icon list correspond to their positions on the desktop. Desktop 2 corresponds to index icon 2, and desktop 3 corresponds to index icon 3. Since the new desktop is located between desktop 2 and desktop 3, the target position for the new index icon in the index icon list is between index icon 2 and index icon 3. After determining the target position, the new index icon can be inserted into the index icon list between index icon 2 and index icon 3.

[0159] When inserting a new index icon, it is also necessary to maintain the same spacing between all index icons. As in the above embodiment, the index icons are arranged at a preset interval. Therefore, before inserting a new index icon, it is necessary to move index icon 3 and the index icons after index icon 3 to the back by a preset interval, and then insert the new index icon in the middle of index icon 2 and index icon 3 to ensure that the spacing between all index icons is the same.

[0160] In the above method, when creating a new desktop, the system can dynamically update the index icon list based on the position of the new desktop among the multiple desktops already created, insert the new index icons into the correct positions, provide an scalable index state design, support automatic adaptation of the number of index icons as the number of desktops increases, and enhance the flexibility of the index icon list.

[0161] In summary, this application generates an index icon list based on multiple pre-existing index icons for each desktop. Each index icon represents its corresponding desktop. When switching desktops, the index icon list is displayed, and the index icon of the current desktop is enlarged and / or highlighted to clearly distinguish the first index icon from others. The selected state of the first index icon is displayed, providing users with an intuitive and clear interface experience and helping them clearly understand the active state of the current desktop and the inactive state of other desktops. During desktop switching, the target marker representing the selected state is moved from the first index icon to the second index icon corresponding to the target desktop based on the switching progress. This provides users with a clear switching process, allowing them to understand the status of each desktop during the switching process. For first and second index icons with different relative positions, different movement methods are used when moving the target marker, improving the flexibility of moving the target marker and ensuring more accurate display of the desktop switching process based on the index icons. Timely hiding and showing of desktop cards reduces the interference of desktop cards on the user's vision while ensuring timely prompting of users with relevant information about the target function corresponding to the desktop card. Furthermore, an scalable index state design is provided, supporting automatic adaptation of the number of index icons as the number of desktops increases, enhancing the flexibility of the index icon list.

[0162] Figure 8 This is a schematic diagram of the structure of a desktop switching device provided in an embodiment of this application.

[0163] For example, such as Figure 8 As shown, the device 800 includes:

[0164] The generation module 801 is used to generate an index icon list based on the multiple created desktops when it detects that the number of desktops created by the system is greater than 1. The index icon list includes multiple index icons, each index icon corresponds to a desktop, and each index icon has visual features associated with the corresponding desktop.

[0165] Display module 802 is used to display an index icon list in the target area of ​​the current desktop if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, and to mark the first index icon corresponding to the current desktop in the index icon list as selected.

[0166] The switching module 803 is used to control the system to switch from the current desktop to the target desktop and to determine the switching progress;

[0167] The moving module 804 is used to move the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop, according to the switching progress.

[0168] In one possible implementation, the moving module 804 is specifically used to: determine the relative positions of the first index icon and the second index icon in the index icon list; determine the movement method of the target marker based on the relative positions; and move the target marker from the first index icon to the second index icon according to the movement method based on the switching progress.

[0169] In one possible implementation, the relative position includes adjacent positions and non-adjacent positions. The movement module 804 is specifically used to: when the relative positions are adjacent, determine the movement mode as a first movement mode; wherein, in the first movement mode, the target marker moves from the first index icon to the second index icon according to the switching progress, and the target path is the line connecting the first index icon and the second index icon; when the relative positions are non-adjacent, determine the movement mode as a second movement mode; wherein, in the second movement mode, the target marker disappears from the first index icon and is displayed at the second index icon according to the switching progress.

[0170] In one possible implementation, the display module 802 is specifically used to: if it is determined that the system needs to switch from the current desktop to a target desktop among multiple desktops, detect whether the current desktop includes desktop cards; if the current desktop includes desktop cards, hide the desktop cards; after the desktop cards are hidden, display an index icon list in the target area of ​​the current desktop.

[0171] In one possible implementation, the display module 802 is specifically used to enlarge the first index icon by a preset factor, and / or to highlight the first index icon to mark the first index icon as selected.

[0172] In one possible implementation, the device further includes a hiding module for hiding the list of index icons after detecting that the second index icon has been marked as selected.

[0173] In one possible implementation, after hiding the list of index icons, the display module 802 is further configured to display the desktop cards if the target desktop includes desktop cards.

[0174] In one possible implementation, the device further includes: a first determining module, used to determine a new index icon corresponding to the new desktop when the system creates a new desktop; a second determining module, used to determine the target position of the new index icon in the index icon list based on the position of the new desktop among multiple desktops; and an adding module, used to add the new index icon to the target position in the index icon list.

[0175] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0176] For example, such as Figure 9As shown, the electronic device 900 includes a memory 901 and a processor 902. The memory 901 stores executable program code 9011, and the processor 902 is used to call and execute the executable program code 9011 to perform a desktop switching method.

[0177] Furthermore, embodiments of this application also protect an apparatus that may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to perform a desktop switching method provided in embodiments of this application.

[0178] This embodiment can divide the device into functional modules based on the above method example. For example, each module can correspond to a separate function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0179] When each functional module is divided according to its corresponding function, the device may further include a generation module, a determination module, a switching module, and a movement module. It should be noted that all relevant content regarding the steps involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.

[0180] It should be understood that the device provided in this embodiment is used to execute the desktop switching method described above, and therefore can achieve the same effect as the above implementation method.

[0181] When using integrated units, the device may include a processing module and a storage module. When applied to an electronic device, the processing module can be used to control and manage the operation of the electronic device. The storage module can be used to support the execution of relevant program code by the electronic device.

[0182] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0183] In addition, the device provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a desktop switching method provided in the above embodiments.

[0184] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, it causes the computer to execute the above-described method steps to implement a desktop switching method provided in the above embodiment.

[0185] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a desktop switching method provided in the above embodiment.

[0186] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0187] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0188] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0189] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for switching desktops, characterized in that, The method includes: When the number of desktops created by the system is greater than 1, an index icon list is generated based on the multiple desktops that have been created; wherein, the index icon list includes multiple index icons, each index icon corresponds to a desktop, and each index icon has visual features associated with the corresponding desktop; If it is determined that the system needs to switch from the current desktop to a target desktop among the multiple desktops, then the index icon list is displayed in the target area of ​​the current desktop, and the first index icon corresponding to the current desktop in the index icon list is marked as selected; Control the system to switch from the current desktop to the target desktop, and determine the switching progress; Based on the switching progress, the target marker representing the selected state is moved from the first index icon to the second index icon corresponding to the target desktop.

2. The method according to claim 1, characterized in that, The step of moving the target marker representing the selected state from the first index icon to the second index icon corresponding to the target desktop according to the switching progress includes: Determine the relative positions of the first index icon and the second index icon in the list of index icons; Based on the relative position, determine the movement mode of the target marker; According to the switching progress, the target marker is moved from the first index icon to the second index icon in accordance with the movement method.

3. The method according to claim 2, characterized in that, The relative position includes adjacent positions and non-adjacent positions. Determining the movement mode of the target marker based on the relative position includes: When the relative positions are adjacent, the movement mode is determined to be the first movement mode; wherein, in the first movement mode, the target marker moves from the first index icon to the second index icon according to the switching progress and the target path is the line connecting the first index icon and the second index icon; When the relative positions are not adjacent, the movement mode is determined to be the second movement mode; wherein, in the second movement mode, the target marker disappears from the first index icon and is displayed at the second index icon according to the switching progress.

4. The method according to any one of claims 1 to 3, characterized in that, If it is determined that the system needs to switch from the current desktop to a target desktop among the multiple desktops, then the index icon list is displayed in the target area of ​​the current desktop, including: If it is determined that the system needs to switch from the current desktop to a target desktop among the multiple desktops, then it is detected whether the current desktop includes desktop cards; If the current desktop includes the desktop card, hide the desktop card; After the desktop card is hidden, the list of index icons is displayed in the target area of ​​the current desktop.

5. The method according to any one of claims 1 to 3, characterized in that, The step of marking the first index icon corresponding to the current desktop in the index icon list as selected includes: The first index icon is enlarged by a preset factor, and / or the first index icon is highlighted to mark the first index icon as selected.

6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: After detecting that the second index icon is marked as selected, the list of index icons is hidden.

7. The method according to claim 6, characterized in that, After hiding the list of index icons, the method further includes: If the target desktop includes desktop cards, the desktop cards are displayed.

8. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the system creates a new desktop, it determines a new index icon corresponding to the new desktop; Based on the position of the new desktop among the multiple desktops, determine the target position of the new index icon in the index icon list; Add the new index icon to the target position in the index icon list.

9. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the electronic device to perform the method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 8.