Desktop element display method and electronic device
The method and device use a floating window container to keep desktop elements on top of other interfaces, addressing the inconvenience of closing or minimizing interfaces for interaction, enhancing user experience on large screens.
Patent Information
- Application Number
- JP2022572545
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2025-09-17
- Estimated Expiration
- 2042-06-30
AI Technical Summary
Existing desktop element display methods require users to close or minimize other interfaces to interact with desktop elements, which is cumbersome, especially on large screens where navigating to the interface buttons can be inconvenient.
A method and electronic device that utilize a floating window container to keep desktop elements always on top of other interfaces, allowing interaction without closing or minimizing, involving coordinate systems to position and manage desktop elements within the container.
Enables convenient user interaction with desktop elements by keeping them visible and accessible without interrupting other displays, improving usability on various electronic devices.
Smart Images

Figure 0007740617000001 
Figure 0007740617000002 
Figure 0007740617000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to the technical field of displays, and in particular to a method and electronic device for displaying desktop elements. [Background technology]
[0002] It is known that an operating system desktop may include desktop elements. Desktop elements display desktop objects. Desktop objects include, but are not limited to, application icons displayed on the desktop and display interfaces of desktop tools (e.g., a display interface of a desktop weather tool, a display interface of a desktop clock tool). One or more desktop objects may be displayed in one desktop element.
[0003] Typically, a display interface on a desktop is often in front of a desktop element, so that when a display interface exists on the desktop, the desktop element may be obscured by the display interface. Currently, when a user wants to view or operate a desktop element, he or she must close or minimize the desktop display interface, then return to the desktop interface to view or operate the desktop element. It is clear that operating on desktop elements in the prior art is cumbersome. Summary of the Invention [Problem to be solved by the invention]
[0004] In view of the above, embodiments of the present invention provide a desktop element display method and electronic device that can simplify user operations.
[0005] One aspect of the present invention is a method for displaying desktop elements, comprising the steps of:
[0013] In an embodiment, the method is applied to an operating system of an electronic device, wherein the desktop of the operating system includes desktop elements, and the method comprises: receiving a front-most command for the desktop element; creating a floating window container for the desktop element in accordance with the always-on-top command; moving the desktop element from the desktop to the floating window container; and placing the desktop element displayed in the floating window container in front of an interface displayed on the desktop.
[0006] In some embodiments, the step of creating a floating window container for the desktop element comprises: determining desktop coordinates of the desktop element, the desktop coordinates being coordinate positions of the desktop element in a grid coordinate system of the desktop, the grid coordinate system being generated based on a grid matrix of the desktop; converting desktop coordinates of the desktop element into screen coordinates, the screen coordinates being the coordinate position of the desktop element in a screen coordinate system of the desktop, the screen coordinates being generated based on a screen resolution; creating the floating window container in an area determined by the screen coordinates.
[0007] In some embodiments, after creating the floating window container, the method comprises: The method further includes, upon receiving a floating window close command, removing the desktop element from the floating window container and restoring the desktop element to the desktop.
[0008] In some embodiments, before moving the desktop element from the desktop to the floating window container, the method further comprises: storing the desktop coordinates of the desktop element as element desktop coordinates; The step of restoring the desktop element to the desktop comprises: The method includes determining whether content exists in the area determined by the element desktop coordinates, and if not, restoring the desktop element to the area determined by the element desktop coordinates.
[0009] In some embodiments, the method further comprises: If content exists in the area determined by the element desktop coordinates, the method further includes restoring the desktop element to an empty area of the desktop.
[0010] In some embodiments, after restoring the desktop element to the area determined by the element desktop coordinates, the method comprises: If the size of the desktop element does not match the area size determined by the element desktop coordinates, the method further includes adjusting the size of the desktop element so that the size of the desktop element matches the area size determined by the desktop coordinates.
[0011] In some embodiments, after moving the desktop element from the desktop to the floating window container, the method further comprises: and / or adjusting the size of the desktop element by adjusting the window size of the floating window container in response to a floating window adjustment command. The method further includes the step of, in response to a window move command, moving the floating window container from a current region to another region of the desktop and displaying the desktop element in the other region.
[0012] In some embodiments, the floating window container has a normal display state and a minimized display state, the normal display state being a state in which a window of the floating window container is displayed on the desktop, and the minimized display state being a state in which the floating window container is kept running but a corresponding window is not displayed on the desktop; After moving the desktop element from the desktop to the floating window container, the method includes: The method further includes a step of adjusting the floating window container from a normal display state to a minimized display state when a minimize command is received or when it is detected that the current interface displayed on the desktop is a preset interface.
[0013] Another aspect of the present invention is an electronic device having an operating system installed therein, the operating system's desktop including desktop elements, the electronic device comprising: a touchscreen that displays the desktop and receives front-facing commands for the desktop elements; a processor that creates a floating window container for the desktop element in accordance with the foreground command, moves the desktop element from the desktop to the floating window container, and positions the desktop element displayed in the floating window container in front of an interface displayed on the desktop.
[0014] The present invention provides an electronic device connected to a display device, having an operating system configured thereon, the operating system's desktop including desktop elements, the operating system's desktop being displayed by the display device, the electronic device comprising: a communication module that communicates with the display device and receives a foreground display command for the desktop element sent from the display device; and a processor that generates a control command according to the foreground command, sends the control command to the display device via the communication module, creates a floating window container for the desktop element, moves the desktop element from the desktop to the floating window container, and controls the display device to place the desktop element displayed in the floating window container in front of an interface displayed on the desktop.
[0015] Another aspect of the present invention provides an electronic device including a processor and a memory, the memory storing a computer program, the computer program implementing the method when executed by the processor. [Effects of the Invention]
[0016] In the technical solutions according to the above embodiments of the present application, a desktop element can be added to a floating window container according to a foreground display command, and the desktop element can be displayed in front of each interface. In this way, the user can operate the desktop element without closing or minimizing other display interfaces on the desktop, making user operation more convenient. [Brief explanation of the drawings]
[0017] The features and advantages of the present invention will be better understood with reference to the drawings, which are illustrative and should not be construed as limiting the invention in any way. [Figure 1] 1 shows a schematic diagram of desktop elements within a desktop. [Figure 2] 1 shows a flow diagram of a method for displaying desktop elements according to an embodiment of the present application; [Figure 3]1 illustrates a flow diagram for creating a floating window container according to an embodiment of the present invention. [Figure 4] FIG. 1 shows a schematic diagram of a desktop in a grid coordinate system according to an embodiment of the present application. [Figure 5] 1 shows a schematic diagram of a desktop including a floating window container in one state according to one embodiment of the present application; [Figure 6] 6 shows a schematic diagram of the desktop of FIG. 5 in another state. [Figure 7] 1 shows a schematic diagram of a desktop including a floating window container in one state according to another embodiment of the present application; [Figure 8] 8 shows a schematic diagram of the desktop of FIG. 7 in another state. [Figure 9] 1 shows a schematic diagram of a desktop including a floating window container in one state according to another embodiment of the present application; [Figure 10] 10 shows a schematic diagram of the desktop of FIG. 9 in another state. [Figure 11] 1 shows a schematic diagram of desktop elements restored to a desktop according to one embodiment of the present application; [Figure 12] 1 shows a schematic diagram of a module of an electronic device according to an embodiment of the present application; [Figure 13] 1 shows a schematic diagram of a module of an electronic device according to another embodiment of the present application; [Figure 14] 1 shows a schematic diagram of an electronic device according to another embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION
[0018] In order to clarify the objectives, technical solutions and advantages of the embodiments of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention, but it should be obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that a person skilled in the art can obtain based on the embodiments of the present invention without any creative efforts belong to the patent scope of the present invention.
[0019] In some embodiments of the present application, a desktop element typically represents at least one desktop object (e.g., a display interface of a desktop weather tool, an app launch icon). When a desktop element represents multiple desktop objects, the desktop element can also limit the arrangement of the desktop objects. Specifically, FIG. 1 shows a schematic diagram of desktop elements of a desktop. The desktop shown in FIG. 1 includes desktop element A and desktop element B. Of these, desktop element A represents desktop object 1, desktop object 2, and desktop object 3, and also limits the arrangement of the desktop objects 1, 2, and 3. Desktop element B represents desktop object 4. When a desktop element is manipulated, the desktop object represented by the desktop element is also manipulated. For example, when desktop element A in FIG. 1 is moved, all desktop objects included in desktop element A move simultaneously.
[0020] Desktop elements are generally divided into two types. One type is a desktop element provided by a desktop process, such as a desktop element containing one or more application icons. The functionality of such a desktop element is provided by the desktop process, which may actively operate and control such a desktop element. The other type is a desktop element registered with the desktop process through another element process and displayed on the desktop. The functionality of such a desktop element is provided by the element process and is not directly related to the desktop process. The desktop process may operate and control the desktop element according to information provided by the element process. For example, if the element process corresponding to desktop element B in Figure 1 is element process B, element process B needs to update the display color of desktop element B to blue. In this case, element process B may send blue color information to the desktop process, and the desktop process may update the display color of desktop element B to blue according to the blue color information sent from element process B.
[0021] Currently, when a user displays content on the desktop, if the user wants to view or operate a desktop element on the desktop, the user must close or minimize the content display interface and then enter the desktop interface to view or operate the desktop element. For example, when a PowerPoint is displayed on the display screen of an interactive intelligent panel, the user must close or minimize the PowerPoint before operating the desktop element on the desktop. This makes the process of viewing or operating the desktop element cumbersome, resulting in inconvenient user operation. In addition, electronic devices have large screens ranging from 65 inches to 98 inches. This creates a problem in that it is inconvenient for the user to close or minimize the content display interface. For example, the button for closing or minimizing the content display interface is located on the right side of the display screen, but since the user is located on the left side of the display screen, the user must move from the left side of the display screen to the right side of the display screen to close or minimize the content display interface and view or operate the desktop element. This is inconvenient for the user.
[0022] Thus, the present application provides a desktop element display method applicable to an operating system of an electronic device, wherein the desktop of the operating system includes desktop elements, where the electronic device may include an interactive intelligent panel, an audio device, a desktop personal computer, a laptop, a smartphone, a smart wearable device (e.g., virtual reality glasses, a smart watch), etc.
[0023] 2 shows a schematic flow diagram of a method for displaying desktop elements according to an embodiment of the present application, which includes step S21 and step S24.
[0024] In step S21, a command to display a desktop element in the foreground is received.
[0025] In some embodiments, prior to displaying content on the desktop (e.g., displaying a PPT on the desktop), a user may select a desktop element by touching, long-pressing, or the like, to avoid the content being displayed obscuring the desktop element, invoke a menu list corresponding to the selected desktop element, and then select a bring-to-foreground option from the menu list. In this manner, a bring-to-foreground command may be sent to the interactive intelligent panel. The bring-to-foreground command may control the interactive intelligent panel to display the selected desktop element in front of the desktop (i.e., in front of other interfaces on the desktop).
[0026]
[0033] Note that the above is merely one method of sending a foreground command and is not intended to limit the present application. For example, in some embodiments, the display interface of the interactive intelligent panel may further include a foreground button. After a user selects a desktop element, the user may touch the foreground button to send a foreground command to the interactive intelligent panel, thereby controlling the interactive intelligent panel to display the selected desktop element on the foreground of the desktop.
[0027] In step S22, a floating window container is created for the desktop element according to the foreground display command.
[0028] In some embodiments, a floating window container may be a container that houses desktop elements, i.e., desktop elements are placed within the floating window container and displayed on the desktop.
[0029] In some embodiments, an operating system, for example, an Android operating system, includes a software development kit (SDK). The SDD may provide a functional interface for creating a floating window. Therefore, when creating a floating window container for a desktop element, the operating system's functional interface may be invoked to create the floating window container. This reduces the amount of code development required. It should be understood that the desktop element display method of the present application also supports other methods for creating a floating window container. For example, if the operating system's SDD does not provide a functional interface for creating a floating window, a self-developed software program may be run to create the floating window container. The present application does not limit the method for creating a floating window container.
[0030] The flow of creating a floating window container in one embodiment will be described below as an example.
[0031] As shown in FIG. 3, creating a floating window container for a desktop element may include steps S211 to S213.
[0032] In step S211, the desktop coordinates of the desktop element are determined, where the desktop coordinates are the coordinate positions of the desktop element in the grid coordinate system of the desktop, which is created based on the grid matrix of the desktop.
[0033] First, we will explain the grid coordinate system. Figure 4 shows a schematic diagram of a desktop in a grid coordinate system according to one embodiment of the present application. The grid coordinate system may be obtained by dividing one desktop into m*n grid matrices. The distances of the grid matrices from the edges of the desktop are denoted as d1, d2, d3, and d4, respectively. The grid matrix is a coordinate system in which the grid in the upper left corner is designated as the grid with coordinates (0,0), and the coordinates are numbered sequentially from this grid to the right and downward. Here, m and n above are integers equal to or greater than 1. For example, in Figure 4, the value of m is 16 and the value of n is 10. The values of d1, d2, d3, and d4 above are numbers equal to or greater than 0.
[0034] In Figure 4, the X direction may be the width direction in the grid coordinate system, and the Y direction may be the height direction in the grid coordinate system. One desktop element occupies at least one grid and at most m*n grids. The upper left corner of the desktop element may be the origin of the desktop element. The desktop coordinates of a desktop element may include the origin coordinate of the desktop element in the grid coordinate system, the width, and the height. Of these, the width refers to the number of grids the desktop element occupies in the width direction of the grid coordinate system, and the height refers to the number of grids the desktop element occupies in the height direction of the grid coordinate system. Usually, the width and the height are integers greater than or equal to 1; that is, a desktop element is displayed on the desktop with a grid as the smallest unit.
[0035] Based on the above, the area including the thick black frame in Figure 4 is the area of one desktop element in the grid coordinate system, and the desktop element has the origin coordinates (x, y), width (width), and height (height) in the grid coordinate system. In this case, as can be seen from Figure 4, the value of x is 2, the value of y is 1, the value of width is 11, and the value of height is 4. This limits the area of one desktop element on the desktop.
[0036] In step S212, the desktop coordinates of the desktop element are converted to screen coordinates, where the screen coordinates are the coordinate position of the desktop element in the screen coordinate system of the desktop, and the screen coordinates are generated based on the screen resolution.
[0037] In some embodiments, converting desktop coordinates of a desktop element to screen coordinates converts coordinates that are determined primarily based on a grid coordinate system to coordinates that are determined based on the screen resolution, as described below by way of example.
[0038] Also refer to Figure 4. In the grid coordinate system in Figure 4, d1, d2, d3, and d4 are each 0, the number of grids in the width direction is 16, and the number of grids in the height direction is 10. The screen resolution of the display screen is 3840px * 2160px. The origin coordinates of the desktop element in the screen coordinate system are (x1, y1), the width is width1, and the height is height1.
[0039] Based on the above assumptions, and calculating from the screen resolution, a single grid in the grid coordinate system has a width of 3840 / 16 = 240px and a height of 2160 / 10 = 216px. From this, we can see the following: x1=x*240px=2*240px=480px y1=y*216px=1*216px=216px, width1=width*240px=4*240px=960px height1=height*216px=2*216px=432px
[0040] In this way, the screen coordinates of the desktop element are obtained.
[0041] In step S213, a floating window container is created in the area determined by the screen coordinates.
[0042] In some embodiments, the size of the floating window container is the same as the region size determined by the screen coordinates, while in other embodiments, the size of the floating window container may be smaller than the region size determined by the screen coordinates.
[0043] 3 is merely an example and does not limit the present application. For example, in some embodiments, if the coordinates of the desktop element are determined based on the screen coordinate system, the above-described floating window container creation flow may not include steps S211 and S212. In another embodiment, the floating window container may be created based on the desktop coordinates of the desktop element. In such a case, the above-described floating window container creation flow may not include step S212, and in step S213, the floating window container may be created in an area determined by the desktop coordinates.
[0044] 3, the case where the floating window container is created in the area where the desktop element is located is also an exemplary creation method. Of course, the floating window container does not have to be created in the area where the desktop element is located. For example, the floating window container may be created in the area of the upper right corner or the area on the side of the display screen. In this application, the creation location of the floating window container is not limited.
[0045] In step S23, the desktop element is moved from the desktop to the floating window container.
[0046] In some embodiments, after a floating window container is created, a desktop element may be selected and dragged to move the desktop element into the floating window container.
[0047] In some other embodiments, when a floating window container is created by touching and long pressing a desktop element to select it, after the creation of the floating window container is completed, the desktop element selected by touching and long pressing may be automatically moved to the floating window container.
[0048] In step S24, the desktop element displayed in the floating window container is placed in front of the interface displayed on the desktop.
[0049] In some embodiments, a floating window container may be a container with the following characteristics: For interfaces displayed on the desktop, the floating window container may be positioned in front of each interface. Here, the interfaces displayed on the desktop include interfaces currently displayed on the desktop and interfaces that will be opened on the desktop after the floating window container is created. The floating window container being positioned in front of each interface may mean that the floating window container is not obscured by other interfaces on the desktop, i.e., is positioned in front of these interfaces. In this way, desktop elements displayed within the floating window container can be positioned in front of interfaces displayed on the desktop.
[0050] In some embodiments, when multiple floating window containers exist (e.g., floating window containers are created for multiple desktop elements), the order in which the floating window containers are created may be such that the most recently added floating window container is placed in front of other previously created floating window containers, or multiple floating window containers may be displayed side by side (i.e., not obscuring each other).
[0051] In some embodiments of the present application, a desktop element may be added to a floating window container according to a front-most command, and the desktop element may be displayed in front of each interface. In this way, a user can operate the desktop element without closing or minimizing other display interfaces of the desktop, making user operation more convenient.
[0052] The method of the present application is further described below.
[0053] In some embodiments, after displaying desktop elements in a floating window container, the floating window container may be moved from its current region to another region of the desktop to display the desktop elements in the other region in response to a window move command, where the window move command may occur in any of the following cases:
[0054] When a move gesture is detected on the display screen for a floating window container,
[0055] When determining from the area of the floating window container and the area of the current display interface on the desktop that the floating window container is located in the area of the current display interface.
[0056] Please refer to Figures 5 and 6. Figure 5 is a schematic diagram of a desktop including a floating window container according to one embodiment of the present application in one state. Figure 6 is a schematic diagram of the desktop of Figure 5 in another state. In Figures 5 and 6, the dotted frame may represent an interface currently displayed on the desktop, and the shaded frame may represent a floating window container to which a desktop element has been added. The area where the floating window container is located in Figure 5 may be the area where the floating window container is currently located. As is clear from Figure 5, the floating window container obstructs the interface currently displayed on the desktop, preventing the user from viewing the interface being displayed. Based on the above, the desktop element display method of the present application also supports moving and displaying a floating window container to another area of the desktop, such as the area shown in Figure 6, through a user gesture action.
[0057] In addition to the user manually moving the floating window container as described above, in some embodiments, adaptive adjustment of the floating window container's position may be performed automatically if the area of the floating window container and the area of the currently displayed interface on the desktop determine that the floating window container should be located within the area of the currently displayed interface, thus preventing the floating window container from obscuring content within the currently displayed interface.
[0058] In some embodiments, after a desktop element is moved from the desktop to a floating window container, the size of the desktop element may be adjusted by adjusting the window size of the floating window container in response to a floating window adjustment command. Here, the floating window adjustment command may be generated when a window resize gesture for the floating window container is detected on the display screen. See FIGS. 7 and 8. FIG. 7 is a schematic diagram of a desktop including a floating window container according to another embodiment of the present disclosure in one state. FIG. 8 is a schematic diagram of the desktop of FIG. 7 in another state. In FIGS. 7 and 8, the dotted frame may represent an interface currently displayed on the desktop, and the shaded frame may represent the floating window container to which the desktop element has been added. As can be seen from FIG. 7, the interface currently displayed on the desktop occupies a large portion of the desktop, and the window of the floating window container is too large, obscuring part of the currently displayed interface. In such a case, the user may use a window resize gesture to adjust the size of the floating window container so that the floating window container does not obscure the interface currently displayed on the desktop.
[0059] In some embodiments, a floating window container may also include a normal display state and a minimized display state. The normal display state is a state in which a window of the floating window container is displayed on the desktop, and the minimized display state is a state in which the floating window container remains in an operational state but the corresponding window is not displayed on the desktop. Based on the above, after a desktop element is moved from the desktop to the floating window container, if a minimize command is received or if it is detected that the current interface displayed on the desktop is a preset interface, the floating window container may be adjusted from the normal display state to the minimized display state. The minimize command may be generated when a minimize action is detected for the floating window container. The minimize action may include, but is not limited to, a preset gesture action or a mouse action. The preset interface may be a preset interface corresponding to a specific application in a specific operational state. For example, an interface corresponding to a PPT (PowerPoint, presentation software) played in full screen, or a game interface. See FIGS. 9 and 10. FIG. 9 is a schematic diagram of a desktop including a floating window container according to another embodiment of the present disclosure in one state. FIG. 10 is a schematic diagram of the desktop of FIG. 9 in another state. 9 and 10, the dotted frame may represent a preset interface currently displayed on the desktop, and the shaded frame may represent a floating window container to which a desktop element has been added. As can be seen from FIGS. 9 and 10, if it is detected that the current interface displayed on the desktop is a preset interface, the floating window container may be adjusted from the normal display state of FIG. 9 to the minimized display state of FIG. 10. In this way, it is possible to prevent the floating window container from interfering with or blocking the content in the preset interface.
[0060] In some embodiments, when a window restore command is detected or when a pre-configured interface ceases to be displayed on the desktop, the floating window container may be adjusted from a minimized state to a normal state, thereby allowing a user to conveniently view or manipulate desktop elements within the floating window container.
[0061] In some embodiments, upon receiving a floating window close command, the desktop element may be removed from the floating window container, the desktop element may be restored to the desktop, and the floating window container may be removed, such that the desktop element is switched from the floating window container to the desktop and displayed.
[0062] In some embodiments, when a desktop element is restored to a desktop, the desktop element may be restored to its initial position on the desktop, where the initial position may be the area of the desktop element on the desktop before it was switched from the desktop to a floating window container for display. In this way, after the desktop element is restored to the desktop, a user can view the restored desktop element on the desktop based on the initial position of the desktop element.
[0063] In some implementations, the floating window container may be randomly restored to an empty area on the desktop, where the empty area is an area of the desktop that does not contain content, thereby reducing the logic decision process and making the technical solution easier to implement.
[0064] In some embodiments, according to the floating window container creation flow in FIG. 3 , before moving a desktop element from the desktop to the floating window container, the desktop coordinates of the desktop element may be stored as the element desktop coordinates. Then, when restoring the desktop element to the desktop, it may be determined whether content exists in the area determined by the element desktop coordinates. If content does not exist, the desktop element may be restored to the area determined by the element desktop coordinates. If content exists in the area determined by the element desktop coordinates, the desktop element is restored to an empty area on the desktop. In this way, when the desktop element is switched to and displayed in the floating window container, the initial position of the desktop element on the desktop is indicated by other content (e.g., an application icon), and the desktop element is prevented from overlapping with other content when restored to the desktop.
[0065] In some embodiments, after a desktop element is restored to an area determined by the element's desktop coordinates, if the size of the desktop element does not match the area size determined by the element's desktop coordinates, the size of the desktop element is adjusted so that the size of the desktop element matches the area size determined by the desktop coordinates. Specifically, in the scenes shown in FIGS. 7 and 8, the size of the desktop element may be adjusted when it is displayed through a floating window container. After being restored to the desktop, the desktop element may not fill the grid in the desktop grid coordinate system. See FIGS. 4 and 11 for details. FIG. 11 is a schematic diagram of a desktop element restored to the desktop according to one embodiment of the present disclosure. As can be seen from FIGS. 4 and 11, on the one hand, because the size of the desktop element is adjusted in the floating window container, when the desktop element is restored to the desktop, the number of grids it occupies is obviously reduced compared to the initial desktop element (see FIG. 4). The change in size of the desktop element may degrade the user experience, and on the other hand, the right and bottom edges of the desktop element are in the center of the grid and do not fill a single grid, which is unfavorable for coordinate calculation in the desktop coordinate system (see the related explanation of Figure 4 for details). Therefore, after restoring the desktop element to the desktop, the size of the desktop element is adjusted to fit the size of the area determined by the desktop coordinates, which improves the user experience and simplifies coordinate calculation in the desktop coordinate system.
[0066] In some embodiments of the present application, a desktop element may be added to a floating window container according to a front-most display command, and the desktop element may be displayed in front of each interface. According to a floating window close command, the desktop element may be removed from the floating window container and displayed on the desktop. Specifically, if there is another display interface (e.g., a PPT display interface) on the desktop, the desktop element may be placed in front of the other interface through the floating window container. In this way, the user can view or operate the desktop element without closing or minimizing the other display interface, which makes user operation more convenient. When the other display interface is closed or minimized, the desktop element may be restored and displayed on the desktop, which makes it easier to manage the desktop element.
[0067] The method for displaying a desktop element in the present application will be described using a specific usage scenario as an example. Here, the desktop element represents a desktop clock tool. When a user displays a PPT on the desktop, the user may use a front-most command to control the desktop element to be displayed on top of the PPT interface. In this way, the user can view the time displayed on the desktop clock tool without closing or minimizing the PPT interface, which makes the operation more convenient. When the user has finished displaying the PPT, the user may use a floating window close command to restore the desktop element to the desktop, which facilitates management of the desktop element and improves the appearance of the desktop.
[0068] 12 is a schematic diagram of modules of an electronic device according to an embodiment of the present application. The electronic device includes: an operating system arranged thereon, a desktop of the operating system including a desktop element; a touchscreen that displays the desktop and receives an always-on-top command for the desktop element; and a processor that creates a floating window container for the desktop element in accordance with the always-on-top command, moves the desktop element from the desktop to the floating window container, and positions the desktop element displayed in the floating window container in front of an interface displayed on the desktop.
[0069] It should be noted that in some embodiments, in addition to the above operations, the processor may also perform other operation steps of the above display method, such as removing the desktop element from the floating window container and restoring the desktop element to the desktop upon receiving a floating window close command.
[0070] 13 is a schematic diagram of modules of an electronic device according to another embodiment of the present application. The electronic device is connected to a display device, has an operating system running on it, and a desktop of the operating system includes a desktop element, and the desktop of the operating system is displayed by the display device. The electronic device includes a communication module that communicates with the display device and receives an always-on-top command for the desktop element sent from the display device, and a processor that controls the display device to generate a control command according to the always-on-top command, send the control command to the display device via the communication module, create a floating window container for the desktop element, move the desktop element from the desktop to the floating window container, and place the desktop element displayed in the floating window container in front of an interface displayed on the desktop.
[0071] In some embodiments, the processor may perform other operation steps of the above display method in addition to the above operations. For example, when the communication module receives a floating window close command sent from the display device, the processor may generate a floating window delete command, send the floating window delete command generated by the communication module to the display device, remove the desktop element from the floating window container, and control the display device to restore the desktop element to the desktop.
[0072] In practical application, the electronic device shown in FIG. 13 may be, for example, a smart audio device. An operating system may be installed on the smart audio device, which may implement the function of displaying desktop elements through the floating window. To simplify the hardware structure of smart audio devices, smart audio devices typically do not have a display screen. When using the smart audio device, a communication module built into the smart audio device may be used to establish a communication connection between the smart audio device and an external display device. The display device may be a touchscreen, and a user command to bring a desktop element to the foreground may be received by the display device, which then sends the command to the smart audio device. The smart audio device may then display the desktop element at the foreground through a created floating window container in accordance with the command.
[0073] 14 shows a schematic diagram of an electronic device according to another embodiment of the present application, the electronic device including a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements the above-described method for displaying a desktop element.
[0074] Here, a processor may be a central processing unit (CPU), other general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate logic device or transistor logic device, a discrete hardware component, or a combination of any of the above chips.
[0075] The memory can be a non-transitory computer-readable storage medium and can store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions / modules corresponding to the methods in the embodiments of the present invention. The processor executes the non-transitory software programs, instructions and modules stored in the memory to perform the processor's respective functional applications and data processing, i.e., to realize the methods in the above method embodiments.
[0076] The memory may include a program storage area and a data storage area, of which the program storage area may store an operating system and application programs required for at least one function, and the data storage area may store data created by the processor, etc. The memory may also include high-speed random access memory, non-transitory memory, such as at least one disk storage device, flash storage device, or other non-transitory solid-state storage device. In some embodiments, the memory may include memory located remotely from the processor, and such remote memory may be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0077] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the above-described method for displaying desktop elements.
[0078] Although the embodiments of the present invention have been described with reference to the drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and all of these modifications and variations are intended to be included in the scope defined by the claims.
Claims
1. 1. A method for displaying desktop elements, comprising: The present invention is applicable to an operating system of an electronic device, wherein a desktop of the operating system includes desktop elements, and the desktop elements include a display interface of an application icon and / or a desktop tool displayed on the desktop, and the display method includes: receiving a front-most command for the desktop element; creating a floating window container for the desktop element in accordance with the always-on-top command; moving the desktop element from the desktop to the floating window container; and placing the desktop element displayed within the floating window container in front of an interface displayed on the desktop; After creating the floating window container, and upon receiving a floating window close command, removing the desktop element from the floating window container and restoring the desktop element to the desktop.
10. A method for displaying desktop elements, comprising:
2. creating a floating window container for the desktop element; determining desktop coordinates of the desktop element, the desktop coordinates being coordinate positions of the desktop element in a grid coordinate system of the desktop, the grid coordinate system being generated based on a grid matrix of the desktop; converting desktop coordinates of the desktop element into screen coordinates, the screen coordinates being coordinate positions of the desktop element in a screen coordinate system of the desktop, the screen coordinate system being generated based on a screen resolution; creating the floating window container in an area determined by the screen coordinates.
2. The method of claim 1 .
3. before moving the desktop element from the desktop to the floating window container, storing the desktop coordinates of the desktop element as element desktop coordinates; The step of restoring the desktop element to the desktop comprises: determining whether content exists in the area determined by the element desktop coordinates, and if not, restoring the desktop element to the area determined by the element desktop coordinates, wherein the area determined by the element desktop coordinates is an integer number of grids that the desktop element occupies in the width and height directions in the grid coordinate system.
3. The method of claim 2.
4. If content exists in the area determined by the element desktop coordinates, restoring the desktop element to an empty area of the desktop.
4. The method of claim 3.
5. After restoring the desktop element to the area determined by the element desktop coordinates, If the size of the desktop element and the size of the area determined by the element desktop coordinates do not match, adjusting the size of the desktop element so that the size of the desktop element matches the size of the area determined by the desktop coordinates.
4. The method of claim 3.
6. After moving the desktop element from the desktop to the floating window container, adjusting the size of the desktop element by adjusting the window size of the floating window container in response to a floating window adjustment command; and / or and, in response to a window move command, moving the floating window container from its current region to another region of the desktop to display the desktop element in the other region.
2. The method of claim 1 .
7. The floating window container has a normal display state and a minimized display state, the normal display state being a state in which a window of the floating window container is displayed on the desktop, and the minimized display state being a state in which the floating window container is maintained in an operating state but a corresponding window is not displayed on the desktop; After moving the desktop element from the desktop to the floating window container, and adjusting the floating window container from a normal display state to a minimized display state when a minimize command is received or when it is detected that the current interface displayed on the desktop is a preset interface.
2. The method of claim 1 .
8. An electronic device, An operating system is arranged, a desktop of the operating system includes desktop elements, and the desktop elements include application icons and / or display interfaces of desktop tools displayed on the desktop, and the electronic device a touchscreen that displays the desktop and receives front-facing commands for the desktop elements; a processor that creates a floating window container for the desktop element in accordance with the front-on-top command, moves the desktop element from the desktop to the floating window container, and positions the desktop element displayed in the floating window container in front of an interface displayed on the desktop; After creating the floating window container, the processor: Upon receiving a floating window close command, remove the desktop element from the floating window container and restore the desktop element to the desktop. An electronic device characterized by:
9. An electronic device, The electronic device is connected to a display device, and has an operating system arranged thereon, the desktop of the operating system including desktop elements, the desktop elements including display interfaces of application icons and / or desktop tools displayed on the desktop, the desktop of the operating system being displayed by the display device, a communication module that communicates with the display device and receives a foreground display command for the desktop element sent from the display device; a processor that generates a control command according to the foreground command, and sends the control command to the display device via the communication module to control the display device to create a floating window container for the desktop element, move the desktop element from the desktop to the floating window container, and place the desktop element displayed in the floating window container in front of an interface displayed on the desktop; After creating the floating window container, the processor: Upon receiving a floating window close command, the display device removes the desktop element from the floating window container and restores the desktop element to the desktop. An electronic device characterized by:
10. An electronic device, A method according to any one of claims 1 to 7, comprising: a processor; and a memory, the memory storing a computer program, the computer program being executed by the processor to implement the method according to any one of claims 1 to 7. An electronic device characterized by:
Citation Information
Patent Citations
Multi-screen cooperation method and system and electronic equipment
CN112995727A
Automatically switching between input modes for user interface
JP2015001977A
Method for generating desktop of mobile terminal, device and electronic device
US20220129117A1