WO2024000419A1 - 桌面元素的展示方法及电子设备 - Google Patents

桌面元素的展示方法及电子设备 Download PDF

Info

Publication number
WO2024000419A1
WO2024000419A1 PCT/CN2022/102864 CN2022102864W WO2024000419A1 WO 2024000419 A1 WO2024000419 A1 WO 2024000419A1 CN 2022102864 W CN2022102864 W CN 2022102864W WO 2024000419 A1 WO2024000419 A1 WO 2024000419A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop
floating window
window container
coordinates
elements
Prior art date
Application number
PCT/CN2022/102864
Other languages
English (en)
French (fr)
Inventor
王家宇
Original Assignee
广州视源电子科技股份有限公司
广州视源创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视源创新科技有限公司 filed Critical 广州视源电子科技股份有限公司
Priority to CN202280006529.7A priority Critical patent/CN116391167A/zh
Priority to PCT/CN2022/102864 priority patent/WO2024000419A1/zh
Priority to KR1020227041305A priority patent/KR20240003692A/ko
Priority to US18/070,788 priority patent/US20240004675A1/en
Priority to EP22212269.9A priority patent/EP4300297A1/en
Publication of WO2024000419A1 publication Critical patent/WO2024000419A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present invention relates to the field of display technology, and in particular to a display method of desktop elements and an electronic device.
  • the operating system's desktop may include desktop elements.
  • Desktop elements are used to display desktop objects.
  • the desktop objects include but are not limited to application icons displayed on the desktop and display interfaces of desktop tools (such as the display interface of the desktop weather tool and the display interface of the desktop clock tool).
  • desktop tools such as the display interface of the desktop weather tool and the display interface of the desktop clock tool.
  • One or more desktop objects can be displayed within a desktop element.
  • the display interface on the desktop is often located on the upper layer of the desktop elements, so that when there is a display interface on the desktop, the desktop elements may be blocked by the display interface.
  • desktop elements may be blocked by the display interface.
  • users need to view or operate desktop elements, they need to close or minimize the display interface on the desktop, and then return to the desktop interface to view or operate desktop elements.
  • the operation process of desktop elements in the prior art is relatively cumbersome.
  • embodiments of the present invention provide a desktop element display method and an electronic device, which can simplify user operations.
  • the present invention provides a method for displaying desktop elements.
  • the method is applied to an operating system of an electronic device.
  • the desktop of the operating system includes desktop elements.
  • the method includes:
  • the desktop elements displayed in the floating window container are located on the upper layer of the interface displayed in the desktop.
  • creating a floating window container for the desktop element includes:
  • the desktop coordinates refer to the coordinate position of the desktop element in the grid coordinate system of the desktop, and the grid coordinate system is established based on the grid matrix of the desktop;
  • the floating window container is created at a location defined by the screen coordinates.
  • the method further includes:
  • the desktop element is removed from the floating window container and the desktop element is restored to the desktop.
  • the method before moving the desktop element from the desktop to the floating window container, the method further includes:
  • the restoring the desktop elements to the desktop includes:
  • the method further includes:
  • the desktop element is restored to a free area on the desktop.
  • the method further includes:
  • the size of the desktop element is different from the size of the area defined by the element's desktop coordinates, adjust the size of the desktop element so that the size of the desktop element matches the size of the area defined by the desktop coordinates.
  • the method further includes:
  • the floating window container In response to a window move instruction, the floating window container is moved from the current area to another area of the desktop to display the desktop element in the other area.
  • the floating window container includes a normal display state and a minimized display state, wherein the normal display state refers to a state in which the window of the floating window container is displayed on the desktop, and the minimized display state
  • the status refers to the status that the floating window container remains running, but the corresponding window is not displayed on the desktop;
  • the method further includes:
  • the floating window container is adjusted from a normal display state to a minimized display state.
  • the present invention also provides an electronic device.
  • the electronic device is provided with an operating system, and the desktop of the operating system includes desktop elements; the electronic device includes:
  • a touch screen used to display the desktop and receive instructions for pinning the desktop elements
  • a processor configured to create a floating window container for the desktop element according to the top instruction, move the desktop element from the desktop to the floating window container, and move the Desktop elements are located above the interface displayed in the desktop.
  • the present invention also provides an electronic device.
  • the electronic device is connected to a display device.
  • the electronic device is provided with an operating system.
  • the desktop of the operating system includes desktop elements.
  • the desktop of the operating system passes through the Display equipment is used for display; the electronic equipment includes:
  • a communication module configured to communicate with the display device and receive a top instruction for the desktop element sent by the display device
  • a processor configured to generate a control instruction according to the top instruction, and send the control instruction to the display device through the communication module to control the display device to create a floating window container for the desktop element, and The desktop element is moved from the desktop to the floating window container, and the desktop element displayed in the floating window container is located on an upper layer of the interface displayed in the desktop.
  • the electronic device includes a processor and a memory.
  • the memory is used to store a computer program.
  • the computer program is executed by the processor, the method as described above is implemented. .
  • desktop elements can be added to the floating window container, so that the desktop elements can be displayed on the upper layer of each interface. In this way, the user can display other items on the desktop without closing or minimizing them. In the case of interface, desktop elements can be operated, making user operations more convenient.
  • Figure 1 shows a schematic diagram of desktop elements in a desktop
  • Figure 2 shows a schematic flowchart of a method for displaying desktop elements provided by an embodiment of the present application
  • Figure 3 shows a schematic flow chart of creating a floating window container provided by an embodiment of the present application
  • Figure 4 shows a schematic diagram of the desktop in a grid coordinate system provided by an embodiment of the present application
  • Figure 5 shows a schematic diagram of a desktop including a floating window container in one state provided by an embodiment of the present application
  • Figure 6 shows a schematic diagram of the desktop in Figure 5 in another state
  • Figure 7 shows a schematic diagram of a desktop including a floating window container in one state provided by another embodiment of the present application.
  • Figure 8 shows a schematic diagram of the desktop in Figure 7 in another state
  • Figure 9 shows a schematic diagram of a desktop including a floating window container in one state provided by another embodiment of the present application.
  • Figure 10 shows a schematic diagram of the desktop in Figure 9 in another state
  • Figure 11 shows a schematic diagram after the desktop elements are restored to the desktop according to an embodiment of the present application
  • Figure 12 shows a module schematic diagram of an electronic device provided by an embodiment of the present application.
  • Figure 13 shows a module schematic diagram of an electronic device provided by another embodiment of the present application.
  • Figure 14 shows a schematic diagram of an electronic device provided by another embodiment of the present application.
  • the desktop element usually displays at least one desktop object (such as the display interface of the desktop weather tool, application startup icon).
  • Desktop elements can also be used to define how desktop objects are laid out in situations where they display multiple desktop objects.
  • Figure 1 is a schematic diagram of desktop elements in a desktop.
  • the desktop shown in Figure 1 includes desktop element A and desktop element B.
  • desktop element A displays desktop object 1, desktop object 2, and desktop object 3, and defines the layout mode among desktop object 1, desktop object 2, and desktop object 3.
  • Desktop element B displays desktop object 4.
  • desktop elements When operating on desktop elements, operate on the desktop objects displayed by the desktop elements at the same time. For example, when desktop element A in Figure 1 is moved, all desktop objects included in desktop element A move at the same time.
  • desktop elements can be divided into two categories.
  • One category may be desktop elements provided by a desktop process, such as desktop elements including one or more application icons.
  • the functionality of this type of desktop element is provided by the desktop process.
  • Desktop processes can actively control this type of desktop elements.
  • the other type is desktop elements that are registered by other element processes in the desktop process and displayed on the desktop.
  • the functions of such desktop elements are provided by the element process and are not directly related to the desktop process.
  • the desktop process can operate and control desktop elements based on the information provided by the element process. For example, assume that 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. Then element process B can send the blue information to the desktop process, and the desktop process The process updates the display color of desktop element B to blue based on the blue information sent by element process B.
  • the button to close or minimize the content display interface is on the right side of the display screen, but the user is on the left side of the display screen. The user needs to move from the left side of the display screen to the right side of the display screen to close or minimize the content. Present the interface and view or manipulate desktop elements. It is inconvenient for users to operate.
  • this application provides a method for displaying desktop elements, which can be applied to an operating system of an electronic device.
  • the desktop of the operating system includes desktop elements.
  • electronic devices can include smart interactive tablets, audio equipment, desktop computers, notebooks, smartphones, smart wearable devices (virtual reality glasses, smart watches, etc.), etc.
  • FIG 2 is a schematic flow chart of a method for displaying desktop elements according to an embodiment of the present application.
  • the display method of desktop elements includes step S21 and step S24.
  • Step S21 Receive an instruction to pin the desktop element to the top.
  • the user before the user displays content on the desktop (for example, before displaying PPT on the desktop), in order to prevent the displayed content from blocking the desktop elements, the user can select the desktop elements in advance by touching, long-pressing, etc., and calling out the Select the menu list corresponding to the selected desktop element, and then select the pinned option in the menu list.
  • the pin command can be sent to the smart interactive tablet.
  • the pin command can be used to control the smart interactive tablet to display the selected desktop element on the upper layer of the desktop (that is, above other interfaces on the desktop).
  • the display interface of the smart interactive tablet may include a pin button. After the user selects a desktop element, by touching the pin button, the user can send a pin command to the smart interactive tablet to control the smart interactive tablet to display the selected desktop element on the upper layer of the desktop.
  • Step S22 Create a floating window container for the desktop element according to the pin command.
  • the floating window container may refer to a container used to accommodate desktop elements. That is, the desktop elements are placed in the floating window container and displayed on the desktop.
  • an operating system such as the Android operating system
  • the software development kit can provide a functional interface for creating floating windows. Therefore, when creating a floating window container for a desktop element, you can call the functional interface of the operating system to create it. In this way, the amount of code development can be reduced.
  • the display method of desktop elements in this application also supports the creation of floating window containers through other methods. For example, when the software development tool kit of the operating system does not provide a functional interface for creating floating windows, you can run a self-developed Software program to create floating window containers. This application does not limit the creation method of the floating window container.
  • creating a floating window container for a desktop element may include steps S211 to S213.
  • Step S211 determine the desktop coordinates of the desktop elements.
  • the desktop coordinates refer to the coordinate positions of the desktop elements in the grid coordinate system of the desktop.
  • the grid coordinate system is established based on the grid matrix of the desktop.
  • Figure 4 is a schematic diagram of a desktop in a grid coordinate system according to an embodiment of the present application.
  • the grid coordinate system it can refer to dividing a desktop into an m*n grid matrix.
  • the distances between the grid matrix and the edge of the desktop are d1, d2, d3, and d4 respectively.
  • the grid in the upper left corner of the grid matrix is regarded as the grid with coordinates (0, 0), and the coordinate system is obtained by coding the coordinates to the right and downwards starting from this grid.
  • the above m and n are respectively integers greater than or equal to 1.
  • the value of m is 16 and the value of n is 10.
  • the above d1, d2, d3, and d4 are values greater than or equal to 0.
  • the X direction can be the width direction under the grid coordinate system
  • the Y direction can be the height direction under the grid coordinate system.
  • a desktop element occupies at least one grid and at most m*n grids.
  • the upper left corner of the desktop element can be the origin of the desktop element.
  • the desktop coordinates of a desktop element can include the origin coordinates, width, and height of the desktop element in the grid coordinate system.
  • the width refers to the number of grids occupied by the desktop element in the width direction of the grid coordinate system
  • the height refers to the number of grids occupied by the desktop element in the height direction of the grid coordinate system.
  • the width and height are integers greater than or equal to 1, that is, desktop elements are displayed on the desktop with the grid as the smallest unit.
  • the area where the black bold box in Figure 4 is located is the regional position of a desktop element in the grid coordinate system, and the origin coordinates of the desktop element in the grid coordinate system are (x, y), and the width is width and height is height.
  • 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. In this way, the regional position of a desktop element on the desktop can be limited.
  • Step S212 Convert the desktop coordinates of the floating window container into screen coordinates.
  • the screen coordinates refer to the coordinate positions of the desktop elements in the screen coordinate system of the desktop.
  • the screen coordinate system is established based on the screen resolution.
  • converting the desktop coordinates of the floating window container into screen coordinates may mainly refer to converting the coordinates determined based on the grid coordinate system into coordinates determined based on the screen resolution. This is explained below with examples.
  • Step S213 Create a floating window container in the area defined by the screen coordinates.
  • the size of the floating window container is the same as the position of the area defined by the screen coordinates. In other embodiments, the size of the floating window container may be smaller than the area position size defined by the screen coordinates.
  • the process of creating a floating window container in Figure 3 is only an exemplary process and does not limit this application.
  • the above process of creating a floating window container may not include steps S211 and S212.
  • a floating window container can be created based on the desktop coordinates of the desktop element. Then the above process of creating a floating window container may not include step S212, and step S213 may be to create a floating window container in a region defined by the desktop coordinates. Floating window container.
  • creating the floating window container in the area where the desktop element is located is also an exemplary creation method.
  • the floating window container does not need to be created in the area where the desktop element is located.
  • the floating window container can be created in the upper right corner area or side area of the display screen. This application does not limit the creation location of the floating window container.
  • Step S23 Move the desktop element from the desktop to the floating window container.
  • the desktop element can be selected and moved to the floating window container by dragging.
  • the desktop element selected by touching or long-pressing can be automatically moved to the floating window container after the creation of the floating window container is completed. middle.
  • Step S24 Place the desktop elements displayed in the floating window container on the upper layer of the interface displayed on the desktop.
  • the floating window container may be a container with the following characteristics: for interfaces displayed on the desktop, the floating window container may be located on the upper layer of each interface.
  • the interface displayed on the desktop includes the interface currently displayed on the desktop, and the interface opened on the desktop after the floating window container is created.
  • the fact that the floating window container is located on the upper layer of each interface may mean that the floating window container has the characteristic of not being blocked by other interfaces on the desktop, that is, it is located on the upper layer of these interfaces. In this way, the desktop elements displayed in the floating window container can be placed on the upper layer of the interface displayed on the desktop.
  • the newly added floating window containers can be placed in other existing floating window containers in the order in which the floating window containers are created. Above the level of the created floating window container, or multiple floating window containers can be displayed side by side (that is, not blocking each other).
  • desktop elements can be added to the floating window container so that the desktop elements are displayed on the upper layer of each interface. In this way, the user can display other interfaces on the desktop without closing or minimizing them. , you can operate the desktop elements, making the user's operation more convenient.
  • the floating window container can be moved from the current area to another area of the desktop in response to the window move instruction to display the desktop elements in another area.
  • the window movement instruction can be generated in any of the following situations:
  • the regional position of the floating window container and the regional position of the current display interface on the desktop it is determined that the selected floating window container is located in the region of the current display interface.
  • FIG. 5 is a schematic diagram of a desktop including a floating window container in one state provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of the desktop in Figure 5 in another state.
  • the dotted box can represent the interface currently displayed on the desktop, and the hatched box can represent the floating window container with desktop elements added.
  • the area where the floating window container is located in Figure 5 may be the current area where the floating window container is located.
  • the floating window container blocks the currently displayed interface on the desktop, which affects the user's ability to view the displayed interface.
  • the desktop element display method of the present application can support the user to move the floating window container to another area of the desktop through gesture actions, such as moving it to the area shown in Figure 6 for display.
  • the floating window container can also be: if based on the regional position of the floating window container and the regional position of the current display interface on the desktop, it is determined that the selected floating window container is located in the area of the current display interface. , the position of the floating window container can be automatically adjusted adaptively. This is to prevent the floating window container from blocking the content in the currently displayed interface.
  • the window size of the floating window container can also be adjusted in response to the floating window adjustment instruction to adjust the size of the desktop element.
  • the floating window adjustment instruction may be generated when a window size adjustment gesture for the floating window container is sensed on the display screen. See Figure 7 and Figure 8.
  • Figure 7 is a schematic diagram of a desktop including a floating window container in one state provided by another embodiment of the present application.
  • Figure 8 is a schematic diagram of the desktop in Figure 7 in another state.
  • the dotted box can represent the interface currently displayed on the desktop
  • the hatched box can represent the floating window container with desktop elements added.
  • the currently displayed interface on the desktop occupies most of the desktop area, and the window of the floating window container is too large, blocking part of the currently displayed interface.
  • the user can be supported to adjust the size of the floating window container through window size adjustment gestures to prevent the floating window container from blocking the currently displayed interface on the desktop.
  • the floating window container may also include a normal display state and a minimized display state, where the normal display state refers to the state in which the window of the floating window container is displayed on the desktop, and the minimized display state refers to the state in which the floating window container remains running. , but the corresponding window is not displayed on the desktop. Based on this, after moving the desktop elements from the desktop to the floating window container, you can also adjust the floating window container from the normal display state to the minimum when receiving a minimization instruction or detecting that the current interface displayed on the desktop is the default interface. display status.
  • the minimization instruction may be generated when it is detected that a minimization action is performed on the floating window container. Minimization actions include but are not limited to preset gesture actions and mouse actions.
  • the preset interface may be an interface corresponding to a preset specified application when it is in a specified running state.
  • a preset specified application For example, the corresponding interface of PPT (PowerPoint, presentation software) when played in full screen, or the game interface.
  • PPT PowerPoint, presentation software
  • FIG. 9 is a schematic diagram of a desktop including a floating window container in one state provided by another embodiment of the present application.
  • Figure 10 is a schematic diagram of the desktop in Figure 9 in another state.
  • the dotted box can represent the default interface currently displayed on the desktop
  • the hatched box can represent the floating window container with desktop elements added.
  • the floating window container when it is detected that the current interface displayed on the desktop is the default interface, the floating window container can be adjusted from the normal display state in Figure 9 to the minimized display state in Figure 10. This is to avoid the floating window container from interfering with and blocking the content in the default interface.
  • the floating window container when a window restoration instruction is detected or the preset interface stops being displayed on the desktop, the floating window container can be adjusted from the minimized display state to the normal display state. In this way, it is convenient for users to view or operate the desktop elements in the floating window container.
  • the desktop element can be removed from the floating window container, the desktop element can be restored to the desktop, and the floating window container can be deleted. In this way, the desktop elements are switched from the floating window container to the desktop for display.
  • the desktop element when restoring a desktop element to the desktop, the desktop element may be restored to its original position on the desktop.
  • the initial position may refer to the regional position on the desktop before the desktop element is switched from the desktop to the floating window container for display. In this way, after the desktop elements are restored to the desktop, it is convenient for the user to find the restored desktop elements on the desktop based on the initial position of the desktop elements.
  • the floating window container can also be randomly restored to a free area on the desktop.
  • the free area location refers to an area on the desktop where no content exists. In this way, the judgment processing logic is reduced and the solution is easier to implement.
  • the desktop coordinates of the desktop element can be stored as the element desktop coordinates. Then when the desktop element is restored to the desktop, it can be determined whether there is content in the area defined by the element's desktop coordinates. If not, the desktop element is restored to the area defined by the element's desktop coordinates. If there is content in the area limited by the element's desktop coordinates, restore the desktop element to the free area of the desktop. In this way, it is avoided that when the desktop element is switched to the floating window container for display, the initial position of the desktop element on the desktop is occupied by other content (such as application icons), and when the desktop element is restored to the desktop, it overlaps with other content.
  • other content such as application icons
  • the size of the desktop element after restoring the desktop element to the area position defined by the element's desktop coordinates, if the size of the desktop element is different from the size of the area position defined by the element's desktop coordinates, adjust the size of the desktop element so that the size of the desktop element is the same as the area position defined by the element's desktop coordinates.
  • the size of the area defined by the desktop coordinates matches. Specifically, for example, in the scenarios shown in Figures 7 and 8, the size of desktop elements may be adjusted during the process of displaying them through the floating window container. After restoring to the desktop, desktop elements may not fit in the grid coordinate system of the desktop. Please refer to Figure 4 and Figure 11 for details.
  • Figure 11 is a schematic diagram after desktop elements are restored to the desktop according to an embodiment of the present application.
  • desktop elements can be added to the floating window container so that the desktop elements are displayed on the upper layer of each interface; based on the floating window closing instruction, desktop elements can be removed from the floating window container. , so that desktop elements are displayed on the desktop.
  • desktop elements can be placed on top of other interfaces through the floating window container. In this way, the user can conveniently display other display interfaces without closing or minimizing them.
  • Desktop elements can be viewed or operated, making user operations more convenient. When other display interfaces are closed or minimized, desktop elements can be restored to the desktop for display, which facilitates management of desktop elements.
  • the desktop element is used to display the desktop clock tool.
  • users display PPT on the desktop, they can control the desktop elements to be displayed on the upper layer of the PPT interface through the pin command. In this way, users can view the time displayed by the desktop clock tool without closing or minimizing the PPT interface, making the operation more convenient.
  • the user completes the PPT presentation he can close the floating window and restore the desktop elements to the desktop for display, which facilitates the management of desktop elements and makes the desktop more beautiful.
  • FIG 12 is a schematic module diagram of an electronic device according to an embodiment of the present application.
  • the electronic device is provided with an operating system, and the desktop of the operating system includes desktop elements; the electronic device includes:
  • a touch screen used to display the desktop and receive instructions for pinning desktop elements
  • the processor is configured to create a floating window container for the desktop element according to the pin command, move the desktop element from the desktop to the floating window container, and place the desktop element displayed in the floating window container on top of the interface displayed on the desktop.
  • the processor may also perform other operation steps in the above display method, for example, when receiving a floating window closing instruction, remove the desktop elements from the floating window container. Remove and restore desktop elements to the desktop.
  • FIG. 13 is a schematic module diagram of an electronic device according to another embodiment of the present application.
  • the electronic device is connected to the display device.
  • the electronic device is equipped with an operating system.
  • the desktop of the operating system includes desktop elements.
  • the desktop of the operating system is displayed through the display device; the electronic device includes:
  • a communication module used to communicate with the display device and receive instructions for placing desktop elements on top sent by the display device
  • the processor is used to generate a control instruction according to the top instruction and send the control instruction to the display device through 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 move the desktop element to the floating window container.
  • the desktop elements displayed in the floating window container are located above the interface displayed on the desktop.
  • the processor may also perform other operation steps in the above-described method. For example, when the communication module receives a floating window closing instruction sent by the display device, the processor can generate a floating window removal instruction and send the generated floating window removal instruction to the display device through the communication module to control the display device to close the desktop. The element is removed from the popup container and the desktop element is restored to the desktop.
  • the electronic device shown in FIG. 13 may be a smart audio device, for example.
  • An operating system can be installed in the smart audio device, and the operating system can realize the above-mentioned function of displaying desktop elements through a floating window.
  • smart audio equipment is often not equipped with a display screen.
  • a communication connection between the smart audio device and an external display device can be established through the built-in communication module of the smart audio device.
  • the display device can be a touch screen.
  • the display device can receive the user's pin instruction for desktop elements.
  • the pin instruction will be sent by the display device to the smart audio device.
  • the smart audio device can move the desktop element through the pin command according to the pin instruction.
  • the created floating window container is displayed on top.
  • FIG. 14 is a schematic diagram of an electronic device according to another embodiment of the present application.
  • the electronic device includes a processor and a memory.
  • the memory is used to store a computer program.
  • the computer program is executed by the processor, the above method for displaying desktop elements is implemented.
  • the processor may be a central processing unit (Central Processing Unit, CPU).
  • the processor can also be other general-purpose processors, Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of these types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of these types of chips.
  • the memory can be used to 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 various functional applications and data processing of the processor by running non-transient software programs, instructions and modules stored in the memory, that is, implementing the method in the above method implementation.
  • the memory may include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function; the data storage area may store data created by the processor, etc.
  • the memory may include high-speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device.
  • the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • One embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium is used to store a computer program.
  • the computer program is executed by a processor, the above method for displaying desktop elements is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Digital Computer Display Output (AREA)

Abstract

一种桌面元素的展示方法及电子设备,其中,桌面元素的展示方法应用于电子设备的操作***,操作***的桌面包括桌面元素,桌面元素的展示方法包括接收针对桌面元素的置顶指令(S21);根据置顶指令为桌面元素创建悬浮窗容器(S22);将桌面元素从桌面中移动至悬浮窗容器(S23);及将悬浮窗容器中展示的桌面元素位于桌面中展示的界面的上层(S24),用户操作更方便。

Description

桌面元素的展示方法及电子设备 技术领域
本发明涉及显示技术领域,具体涉及一种桌面元素的展示方法及电子设备。
背景技术
在一些技术中,操作***的桌面可以包括桌面元素。桌面元素用于展示桌面对象。其中,桌面对象包括但不限于在桌面上显示的应用图标、桌面工具的显示界面(比如桌面天气工具的显示界面、桌面时钟工具的显示界面)。一个桌面元素内可以展示一个或多个桌面对象。
通常而言,桌面中的展示界面往往位于桌面元素的上层,使得桌面中存在展示界面时,桌面元素可能会被展示界面遮挡。目前,用户需要查看或操作桌面元素时,需要关闭或者最小化桌面上的展示界面,然后回到桌面界面,以查看或操作桌面元素。显然,现有技术中对桌面元素的操作过程较为繁琐。
发明内容
有鉴于此,本发明实施方式提供了一种桌面元素的展示方法及电子设备,可以简化用户操作。
本发明一方面提供了一种桌面元素的展示方法,所述方法应用于电子设备的操作***,所述操作***的桌面包括桌面元素,所述方法包括:
接收对所述桌面元素的置顶指令;
根据所述置顶指令为所述桌面元素创建悬浮窗容器;
将所述桌面元素从所述桌面中移动至所述悬浮窗容器;及
将所述悬浮窗容器中展示的所述桌面元素位于所述桌面中展示的界面的上层。
在一些实施例中,所述为所述桌面元素创建悬浮窗容器,包括:
确定所述桌面元素的桌面坐标,所述桌面坐标指在所述桌面的网格坐标系下所述桌面元素的坐标位置,所述网格坐标系是基于所述桌面的网格矩阵建立的;
将所述桌面元素的桌面坐标转换为屏幕坐标,所述屏幕坐标指在所述桌面的屏幕坐标系下,所述桌面元素的坐标位置,所述屏幕坐标系是基于屏幕分辨率建立的;
在所述屏幕坐标限定的区域位置,创建所述悬浮窗容器。
在一些实施例中,创建所述悬浮窗容器之后,所述方法还包括:
若接收到悬浮窗关闭指令,将所述桌面元素从所述悬浮窗容器中移除,并将所述桌面元素恢复至所述桌面。
在一些实施例中,在将所述桌面元素从所述桌面中移动至所述悬浮窗容器之前,所述方法还包括:
存储所述桌面元素的桌面坐标,作为元素桌面坐标;
所述将所述桌面元素恢复至所述桌面,包括:
判断所述元素桌面坐标限定的区域位置是否存在内容,若不存在,将所述桌面元素恢复至所述元素桌面坐标限定的区域位置。
在一些实施例中,所述方法还包括:
若所述元素桌面坐标限定的区域位置存在内容,将所述桌面元素恢复至所述桌面上的空闲区域位置。
在一些实施例中,将所述桌面元素恢复至所述元素桌面坐标限定的区域位置后,所述方法还包括:
若所述桌面元素的大小与所述元素桌面坐标限定的区域位置大小不相同,调整所述桌面元素的大小,使所述桌面元素的大小与所述桌面坐标限定的区域位置大小相匹配。
在一些实施例中,在将所述桌面元素从所述桌面中移动至所述悬浮窗容器之后,所述方法还包括:
响应于悬浮窗调整指令,调整所述悬浮窗容器的窗口大小,以调整所 述桌面元素的大小;和/或
响应于窗口移动指令,将所述悬浮窗容器从当前所在区域移动至所述桌面的另一个区域,以在所述另一个区域展示所述桌面元素。
在一些实施例中,所述悬浮窗容器包括正常显示状态和最小化显示状态,其中,所述正常显示状态指所述悬浮窗容器的窗口在所述桌面进行展示的状态,所述最小化显示状态指所述悬浮窗容器保持运行状态,但对应的窗口未在所述桌面进行展示的状态;
在将所述桌面元素从所述桌面中移动至所述悬浮窗容器之后,所述方法还包括:
在接收到最小化指令或检测到所述桌面中展示的当前界面为预设界面时,将所述悬浮窗容器从正常显示状态调整为最小化显示状态。
本发明另一方面还提供了一种电子设备,所述电子设备设置有操作***,所述操作***的桌面包括桌面元素;所述电子设备包括:
触摸屏,用于展示所述桌面,并接收对所述桌面元素的置顶指令;及
处理器,用于根据所述置顶指令为所述桌面元素创建悬浮窗容器,并将所述桌面元素从所述桌面中移动至所述悬浮窗容器,以及将所述悬浮窗容器中展示的所述桌面元素位于所述桌面中展示的界面的上层。
本发明另一方面还提供了一种电子设备,所述电子设备与显示设备相连,所述电子设备设置有操作***,所述操作***的桌面包括桌面元素,所述操作***的桌面通过所述显示设备进行展示;所述电子设备包括:
通信模块,用于与所述显示设备通信,接收所述显示设备发送的对所述桌面元素的置顶指令;及
处理器,用于根据所述置顶指令生成控制指令,并通过所述通信模块将所述控制指令发送给所述显示设备,以控制所述显示设备为所述桌面元素创建悬浮窗容器,并将所述桌面元素从所述桌面中移动至所述悬浮窗容器,以及将所述悬浮窗容器中展示的所述桌面元素位于所述桌面中展示的界面的上层。
本发明另一方面还提供了一种电子设备,所述电子设备包括处理器和 存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现如上所述的方法。
本申请上述各个实施方式提供的技术方案中,基于置顶指令,可以将桌面元素添加至悬浮窗容器,使桌面元素显示在各个界面的上层,如此,用户可以在不关闭或最小化桌面上其他展示界面的情况下,便可操作桌面元素,用户操作更便捷。
附图说明
通过参考附图会更加清楚的理解本发明的特征和优点,附图是示意性的而不应理解为对本发明进行任何限制,在附图中:
图1示出了一个桌面中的桌面元素的示意图;
图2示出了本申请的一个实施例提供的桌面元素的展示方法的流程示意图;
图3示出了本申请的一个实施例提供的创建悬浮窗容器的流程示意图;
图4示出了本申请一个实施例提供的在网格坐标系下的桌面示意图;
图5示出了本申请一个实施例提供的包括悬浮窗容器的桌面在一个状态下的示意图;
图6示出了图5中的桌面在另一个状态下的示意图;
图7示出了本申请另一个实施例提供的包括悬浮窗容器的桌面在一个状态下的示意图;
图8示出了图7中的桌面在另一个状态下的示意图;
图9示出了本申请另一个实施例提供的包括悬浮窗容器的桌面在一个状态下的示意图;
图10示出了图9中的桌面在另一个状态下的示意图;
图11示出了本申请的一个实施例提供的桌面元素恢复至桌面后的示意图;
图12示出了本申请的一个实施例提供的电子设备的模块示意图;
图13示出了本申请的另一个实施例提供的电子设备的模块示意图;
图14示出了本申请的另一个实施例提供的电子设备的示意图。
具体实施方式
为使本发明实施方式的目的、技术方案和优点更加清楚,下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。
在本申请的一些实施例中,桌面元素通常展示至少一个桌面对象(比如桌面天气工具的展示界面、应用启动图标)。在桌面元素展示多个桌面对象的情况下,桌面元素还可用于限定桌面对象之间的布局方式。具体请参阅图1,为一个桌面中的桌面元素的示意图。图1所示的桌面中,包括桌面元素A和桌面元素B。其中,桌面元素A展示桌面对象1、桌面对象2和桌面对象3,且限定了桌面对象1、桌面对象2和桌面对象3之间的布局方式。桌面元素B展示桌面对象4。在对桌面元素进行操作时,对桌面元素展示的桌面对象同时进行操作。比如,在移动图1中的桌面元素A时,桌面元素A包括的所有桌面对象同时移动。
通常,桌面元素可以分为两类。其中一类可以是由桌面进程提供的桌面元素,比如包括一个或多个应用图标的桌面元素。该类桌面元素的功能由桌面进程提供。桌面进程可以主动对该类桌面元素进行操作控制。另一类是由其他元素进程在桌面进程注册,并在桌面进行显示的桌面元素。这类桌面元素的功能由元素进程提供,与桌面进程没有直接关系。桌面进程可以根据元素进程提供的信息,来对桌面元素进行操作控制。比如,假设图1中的桌面元素B对应的元素进程为元素进程B,元素进程B需要将桌面元素B的显示颜色更新蓝色,则元素进程B可以将蓝色信息发送给桌面进程,由桌面进程根据元素进程B发送的蓝色信息,将桌面元素B的显示颜色更新为蓝色。
目前,用户在桌面上进行内容展示时,若要查看或操作桌面上的桌面 元素,需要关闭或者最小化内容展示界面,再进入到桌面界面以查看或操作桌面元素。比如,在智能交互平板的显示屏幕上进行PPT展示时,若要操作桌面上的桌面元素时,需要先关闭或最小化PPT,然后在桌面界面操作桌面元素。这种情况,导致了查看或操作桌面元素时的过程繁琐,用户操作不方便。此外,部分电子设备的屏幕尺寸比较大,可以达到65寸至98寸。这导致用户在关闭或者最小化内容展示界面时,可能会存在不方便的问题。例如,关闭或最小化内容展示界面的按键在显示屏幕的右侧,但用户却在显示屏幕的左侧,用户需要从显示屏幕的左侧移动到显示屏幕的右侧,才能关闭或最小化内容展示界面并查看或操作桌面元素。用户操作不方便。
为此,本申请提供一种桌面元素的展示方法,可应用于电子设备的操作***,操作***的桌面包括桌面元素。其中,电子设备可以包括智能交互平板、音响设备、台式电脑、笔记本、智能手机、智能可穿戴设备(虚拟现实眼镜、智能手表等)等。
请参阅图2,为本申请的一个实施例提供的桌面元素的展示方法的流程示意图。桌面元素的展示方法包括步骤S21和步骤S24。
步骤S21,接收对桌面元素的置顶指令。
在一些实施例中,用户在桌面进行内容展示之前(比如在桌面展示PPT之前),为避免展示的内容对桌面元素造成遮挡,可以预先通过触碰、长按选中等方式选中桌面元素,呼出与选中的桌面元素相对应的菜单列表,然后在菜单列表中选择置顶选项。如此,可以发送置顶指令给智能交互平板。置顶指令可以用于控制智能交互平板将选中的桌面元素显示在桌面上层(即位于桌面中的其他界面之上)。
可以理解的是,以上只是其中一种发送置顶指令的方式,并不构成对本申请的限制。比如,在一些实施例中,在智能交互平板的显示界面可以包括置顶按钮。用户选中桌面元素后,通过触碰置顶按钮,可以给智能交互平板发送置顶指令,控制智能交互平板将选中的桌面元素显示在桌面上层。
步骤S22,根据置顶指令为桌面元素创建悬浮窗容器。
在一些实施例中,悬浮窗容器可以指用于容纳桌面元素的容器。即桌面元素放置于悬浮窗容器中,并在桌面上进行展示。
在一些实施例中,考虑到操作***,比如Android操作***,具备软件开发工具包。软件开发工具包可以提供创建悬浮窗的功能接口。因此,在为桌面元素创建悬浮窗容器时,可以调用操作***的功能接口来进行创建。如此,可以减少代码开发量。当然,可以理解的是,本申请的桌面元素的展示方法也支持通过其他方式来创建悬浮窗容器,比如在操作***的软件开发工具包未提供创建悬浮窗的功能接口时,可以运行自行开发的软件程序来创建悬浮窗容器。本申请对悬浮窗容器的创建方式不作限制。
下面以一个实施例中的悬浮窗容器创建流程为例进行说明。
请参见图3,为桌面元素创建悬浮窗容器,可以包括步骤S211至步骤S213。
步骤S211,确定桌面元素的桌面坐标,桌面坐标指在桌面的网格坐标系下桌面元素的坐标位置,网格坐标系是基于桌面的网格矩阵建立的。
首先对网格坐标系进行说明。请参阅图4,为本申请一个实施例提供的在网格坐标系下的桌面示意图。对于网格坐标系,可以是指:将一个桌面划分为m*n的网格矩阵。该网格矩阵距离桌面边缘的距离分别为d1、d2、d3、d4。将网格矩阵在左上角的网格作为坐标为(0,0)的网格,从该网格开始依次向右和向下进行坐标编码后得到的坐标系。其中,上述m和n分别为大于或等于1的整数。比如图4中,m的取值为16,n的取值为10。上述d1、d2、d3、d4为大于或等于0的数值。
在图4中,沿X方向可以为网格坐标系下的宽度方向,沿Y方向可以为网格坐标系下的高度方向。一个桌面元素最少占据一个网格,最多占据m*n个网格。桌面元素的左上角可以为桌面元素的原点。桌面元素的桌面坐标可以包括桌面元素在网格坐标系下的原点坐标、宽度和高度。其中,宽度指桌面元素在网格坐标系的宽度方向上所占的网格数量,高度指桌面元素在网格坐标系的高度方向上所占的网格数量。通常,宽度和高度为大 于或等于1的整数,即桌面元素以网格为最小单位在桌面进行展示。
基于以上描述,假设图4中的黑色粗体框所在区域为一个桌面元素在网格坐标系下的区域位置,且该桌面元素在网格坐标系下的原点坐标为(x,y),宽度为width,高度为height。则从图4中可以看出,x取值为2,y取值为1,且width取值为11,height取值为4。如此,可以限定一个桌面元素在桌面上的区域位置。
步骤S212,将悬浮窗容器的桌面坐标转换为屏幕坐标,屏幕坐标指在桌面的屏幕坐标系下,桌面元素的坐标位置,屏幕坐标系是基于屏幕分辨率建立的。
在一些实施例中,将悬浮窗容器的桌面坐标转换为屏幕坐标,主要可以是指将基于网格坐标系确定的坐标,转换为基于屏幕分辨率确定的坐标。以下通过举例进行说明。
请继续参阅图4。假设图4中的网格坐标系下,d1、d2、d3、d4分别0,宽度方向上的网格数量为16,高度方向上的网格数量为10。显示屏幕的屏幕分辨率为3840px*2160px。桌面元素在屏幕坐标系下的原点坐标为(x1,y1),宽度为width1,高度为height1。
基于上述假设,按照屏幕分辨率来计算,网格坐标系下单个格子的宽度为3840/16=240px,高度为2160/10=216px。在此基础上,进一步可知:
x1=x*240px=2*240px=480px
y1=y*216px=1*216px=216px,
width1=width*240px=4*240px=960px
height1=height*216px=2*216px=432px
如此,可以得到桌面元素的屏幕坐标。
步骤S213,在屏幕坐标限定的区域位置,创建悬浮窗容器。
在一些实施例中,悬浮窗容器的大小与屏幕坐标限定的区域位置大小相同。在另一些实施例中,悬浮窗容器的大小可以小于屏幕坐标限定的区域位置大小。
可以理解的是,图3中创建悬浮窗容器的流程只是一个示例性的流程,并不对本申请构成限制。比如,在一些实施例中,若桌面元素的坐标是基于屏幕坐标系来确定的,则上述创建悬浮窗容器的流程中可以不包括步骤S211和步骤S212。在另一个实施例中,可以基于桌面元素的桌面坐标创建悬浮窗容器,则上述创建悬浮窗容器的流程中可以不包括步骤S212,以及在步骤S213中可以是在桌面坐标限定的区域位置,创建悬浮窗容器。
还可以理解的是,图3中,将悬浮窗容器创建在桌面元素所在的区域位置,也是一个示例性的创建方法。很显然,悬浮窗容器也可以不创建在桌面元素所在的区域位置,比如将悬浮窗容器创建在显示屏幕的右上角区域或者侧边区域。本申请对悬浮窗容器的创建位置不做限制。
步骤S23,将桌面元素从桌面中移动至悬浮窗容器。
在一些实施例中,可以在悬浮窗容器创建好后,选中桌面元素,并通过拖拉的方式,将桌面元素移动至悬浮窗容器中。
在另一些实施例中,针对触碰、长按选中桌面元素的方式创建悬浮窗容器的情况,可以在悬浮窗容器创建完成后,自动将触碰、长按选中的桌面元素移动至悬浮窗容器中。
步骤S24,将悬浮窗容器中展示的桌面元素位于桌面中展示的界面的上层。
在一些实施例中,悬浮窗容器可以是具备如下特点的容器:针对在桌面中展示的界面,悬浮窗容器可以位于各个界面的上层。其中,在桌面中展示的界面包括当前已通过桌面进行展示的界面,以及悬浮窗容器创建后,在桌面中打开的界面。悬浮窗容器位于各个界面的上层可以是指悬浮窗容器在桌面上具有不被其他界面遮挡的特性,即位于这些界面的上层。如此,可以实现将悬浮窗容器中展示的桌面元素位于桌面中展示的界面的上层。
在一些实施例中,在存在多个悬浮窗容器的情况下(比如针对多个桌面元素创建了悬浮窗容器),可以按照创建悬浮窗容器的先后顺序,将最新添加的悬浮窗容器位于其他已创建的悬浮窗容器的层级之上,或者多个悬浮窗容器可以并列显示(即相互不遮挡)。
在本申请的一些实施例中,基于置顶指令,可以将桌面元素添加至悬浮窗容器,使桌面元素显示在各个界面的上层,如此,用户可以在不关闭或最小化桌面上其他展示界面的情况下,便可操作桌面元素,用户操作更便捷。
以下对本申请的方法进一步阐述。
在一些实施例中,通过悬浮窗容器展示桌面元素后,可以响应于窗口移动指令,将悬浮窗容器从当前所在区域移动至桌面的另一个区域,以在另一个区域展示桌面元素。其中,窗口移动指令可以是在如下任一种情况下产生:
在显示屏幕上感测到针对悬浮窗容器的移动手势;
根据悬浮窗容器的区域位置和桌面中当前展示界面的区域位置,确定选悬浮窗容器位于当前展示界面的区域中。
请参阅图5和图6。图5为本申请一个实施例提供的包括悬浮窗容器的桌面在一个状态下的示意图。图6为图5中的桌面在另一个状态下的示意图。图5和图6中,虚线框可以表示桌面当前进行展示的界面,阴影框可以表示添加了桌面元素的悬浮窗容器。图5中的悬浮窗容器所在区域可以是悬浮窗容器的当前所在区域。通过图5可以看出,悬浮窗容器对桌面当前展示的界面造成了遮挡,会影响用户对展示的界面进行查看。基于此,本申请的桌面元素的展示方法可以支持用户通过手势动作,将悬浮窗容器移动至桌面的另一个区域,比如移动至图6所示的区域中进行展示。
除上述用户手动移动悬浮窗容器外,在一些实施例中,还可以是:若根据悬浮窗容器的区域位置和桌面中当前展示界面的区域位置,确定选悬浮窗容器位于当前展示界面的区域中时,可以自动对悬浮窗容器的位置进行适应性调整。如此,以避免悬浮窗容器遮挡当前所展示界面中的内容。
在一些实施例中,在将桌面元素从桌面中移动至悬浮窗容器之后,还可以响应于悬浮窗调整指令,调整悬浮窗容器的窗口大小,以调整桌面元素的大小。其中,悬浮窗调整指令可以是在在显示屏幕上感测到针对悬浮窗容器的窗口大小调整手势时产生。请参阅图7和图8。图7为本申请另一 个实施例提供的包括悬浮窗容器的桌面在一个状态下的示意图。图8为图7中的桌面在另一个状态下的示意图。图7和图8中,虚线框可以表示桌面当前进行展示的界面,阴影框可以表示添加了桌面元素的悬浮窗容器。从图7可以看出,桌面中当前展示的界面占据了桌面的大部分区域,悬浮窗容器的窗口过大,遮挡了部分当前展示的界面。这种情况下,可以支持用户通过窗口大小调整手势,对悬浮窗容器的大小进行调整,以避免悬浮窗容器对桌面当前展示的界面造成遮挡。
在一些实施例中,悬浮窗容器还可以包括正常显示状态和最小化显示状态,其中,正常显示状态指悬浮窗容器的窗口在桌面进行展示的状态,最小化显示状态指悬浮窗容器保持运行状态,但对应的窗口未在桌面进行展示的状态。基于此,在将桌面元素从桌面中移动至悬浮窗容器之后,还可以在在接收到最小化指令或检测桌面中展示的当前界面为预设界面时,将悬浮窗容器从正常显示状态调整为最小化显示状态。其中,最小化指令可以是在检测到针对悬浮窗容器执行最小化动作时产生。最小化动作包括但不限于预设的手势动作、鼠标动作。而预设界面则可以是预先设置的指定应用处于指定运行状态时对应的界面。比如PPT(PowerPoint,演示文稿软件)在全屏播放时对应的界面、又比如游戏界面。请参阅图9和图10。图9为本申请另一个实施例提供的包括悬浮窗容器的桌面在一个状态下的示意图。图10为图9中的桌面在另一个状态下的示意图。图9和图10中,虚线框可以表示当前在桌面中展示的预设界面,阴影框可以表示添加了桌面元素的悬浮窗容器。从图9和图10可以看出,在检测到桌面中展示的当前界面为预设界面时,可以将悬浮窗容器从图9中的正常显示状态调整为图10中的最小化显示状态。如此,以避免悬浮窗容器对预设界面中的内容造成干扰和遮挡。
在一些实施例中,在检测到窗口恢复指令或者预设界面在桌面停止展示时,可以将悬浮窗容器从最小化显示状态调整为正常显示状态。如此,以方便用户对悬浮窗容器内的桌面元素进行查看或操作。
在一些实施例中,若接收到悬浮窗关闭指令,可以将桌面元素从悬浮 窗容器中移除,并将桌面元素恢复至桌面,且删除悬浮窗容器。如此,以实现将桌面元素从悬浮窗容器中切换至桌面进行显示。
在一些实施例中,将桌面元素恢复至桌面时,可以将桌面元素恢复至桌面上的初始位置。其中,该初始位置可以指桌面元素从桌面切换到悬浮窗容器进行展示之前,在桌面上的区域位置。如此,在将桌面元素恢复至桌面之后,方便用户基于桌面元素的初始位置,在桌面上查找恢复的桌面元素。
可以理解的是,在一些实施例中,也可以是将悬浮窗容器随机恢复至桌面上的空闲区域位置。其中,空闲区域位置指桌面上不存在内容的区域。如此,减少判断处理逻辑,方案实现较为容易。
在一些实施例中,基于图3中的悬浮窗容器创建流程,可以在将桌面元素从桌面中移动至悬浮窗容器之前,存储桌面元素的桌面坐标,作为元素桌面坐标。然后在将桌面元素恢复至桌面时,可以判断元素桌面坐标限定的区域位置是否存在内容,若不存在,将桌面元素恢复至元素桌面坐标限定的区域位置。若元素桌面坐标限定的区域位置存在内容,将桌面元素恢复至桌面的空闲区域位置。如此,避免桌面元素被切换到悬浮窗容器中进行显示时,桌面元素在桌面上的初始位置被其他内容(比如应用图标)占用,桌面元素恢复到桌面上时,与其他内容出现重叠的情况。
在一些实施例中,在将桌面元素恢复至元素桌面坐标限定的区域位置后,若桌面元素的大小与元素桌面坐标限定的区域位置大小不相同,调整桌面元素的大小,使桌面元素的大小与桌面坐标限定的区域位置大小相匹配。具体来说,比如在图7和图8所示的场景中,桌面元素通过悬浮窗容器进行显示的过程中,其大小可能会被调整。在恢复到桌面后,桌面元素在桌面的网格坐标系下,可能会存在不满格的情况。具体请参阅图4和图11。图11为本申请的一个实施例提供的桌面元素恢复至桌面后的示意图。从图4和图11可以看出,一方面,由于桌面元素的大小在悬浮窗容器中被调整过,桌面元素被恢复至桌面后,相对于桌面上初始的桌面元素(如图4所示),所占的网格数量明显减少。桌面元素的大小发生变化,可能会给 用户带来不好的体验;另一方面,桌面元素的右侧边和底边位于网格中间,未占满一个网格,不方便在桌面坐标系下进行坐标计算(具体可参见图4相关描述)。因此,在将桌面元素恢复至桌面后,调整桌面元素的大小,使之与桌面坐标限定的区域位置的大小相匹配,可以提高用户体验,同时,便于在桌面坐标系下进行坐标计算。
在本申请的一些实施例中,基于置顶指令,可以将桌面元素添加至悬浮窗容器,使桌面元素显示在各个界面的上层;基于悬浮窗关闭指令,可以将桌面元素从悬浮窗容器中移除,使桌面元素在桌面进行显示。具体来说,在桌面存在其他展示界面(比如PPT展示界面)时,可以通过悬浮窗容器使桌面元素位于其他界面的上层,如此,用户可以在不关闭或最小化其他展示界面的情况下,便可对桌面元素进行查看或操作,用户操作更便捷。在其他展示界面关闭或最小化时,又可以将桌面元素恢复到桌面进行展示,便于进行桌面元素的管理。
以一个具体的使用场景为例,对本申请的桌面元素的展示方法进行说明。此处,假设桌面元素用于展示桌面时钟工具。用户在桌面进行PPT展示时,可以通过置顶指令,控制桌面元素展示在PPT界面的上层。如此,用户可以在不关闭或最小化PPT界面的情况下,便可以查看桌面时钟工具显示的时间,操作更便捷。而在用户完成PPT展示时,又可以通过悬浮窗关闭指令,使桌面元素恢复到桌面进行展示,便于桌面元素的管理,且可使桌面更美观。
请参阅图12,为本申请的一个实施例提供的电子设备的模块示意图。电子设备设置有操作***,操作***的桌面包括桌面元素;电子设备包括:
触摸屏,用于展示桌面,并接收对桌面元素的置顶指令;及
处理器,用于根据置顶指令为桌面元素创建悬浮窗容器,并将桌面元素从桌面中移动至悬浮窗容器,以及将悬浮窗容器中展示的桌面元素位于桌面中展示的界面的上层。
需要说明的是,在一些实施例中,处理器除执行上述操作外,还可以执行上述展示方法中的其他操作步骤,比如,在接收到悬浮窗关闭指令时, 将桌面元素从悬浮窗容器中移除,并将桌面元素恢复至桌面。
请参阅图13,为本申请的另一个实施例提供的电子设备的模块示意图。电子设备与显示设备相连,电子设备设置有操作***,操作***的桌面包括桌面元素,操作***的桌面通过显示设备进行展示;电子设备包括:
通信模块,用于与显示设备通信,接收显示设备发送的对桌面元素的置顶指令;及
处理器,用于根据置顶指令生成控制指令,并通过通信模块将控制指令发送给显示设备,以控制显示设备为桌面元素创建悬浮窗容器,并将桌面元素从桌面中移动至悬浮窗容器,以及将悬浮窗容器中展示的桌面元素位于桌面中展示的界面的上层。
需要说明的是,在一些实施例中,处理器除执行上述操作外,还可以执行上述展示方法中的其他操作步骤。比如,在通信模块接收到显示设备发送的悬浮窗关闭指令时,处理器可以生成悬浮窗移除指令,并通过通信模块将生成的悬浮窗移除指令发送给显示设备,以控制显示设备将桌面元素从悬浮窗容器中移除,并将桌面元素恢复至桌面。
在实际应用中,图13所示的电子设备例如可以是智能音响设备。该智能音响设备中可以安装操作***,该操作***可以实现上述的通过悬浮窗展示桌面元素的功能。通常而言,为了简化智能音响设备的硬件结构,智能音响设备上往往不会配置显示屏。在使用智能音响设备时,可以通过智能音响设备内置的通信模块,建立智能音响设备与外部的显示设备之间的通信连接。显示设备可以是触摸显示屏,通过显示设备可以接收到用户针对桌面元素的置顶指令,该置顶指令会由显示设备发送至智能音响设备,后续,智能音响设备便可以根据置顶指令,将桌面元素通过创建的悬浮窗容器进行置顶展示。
请参阅图14,为本申请的另一个实施例提供的电子设备的示意图。电子设备包括处理器和存储器,存储器用于存储计算机程序,计算机程序被处理器执行时,实现上述的桌面元素的展示方法。
其中,处理器可以为中央处理器(Central Processing Unit,CPU)。处 理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本发明实施方式中的方法对应的程序指令/模块。处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及数据处理,即实现上述方法实施方式中的方法。
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
本申请一个实施方式还提供一种计算机可读存储介质,计算机可读存储介质用于存储计算机程序,计算机程序被处理器执行时,实现上述的桌面元素的展示方法。
虽然结合附图描述了本发明的实施方式,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。

Claims (11)

  1. 一种桌面元素的展示方法,其特征在于,所述方法应用于电子设备的操作***,所述操作***的桌面包括桌面元素,所述方法包括:
    接收对所述桌面元素的置顶指令;
    根据所述置顶指令为所述桌面元素创建悬浮窗容器;
    将所述桌面元素从所述桌面中移动至所述悬浮窗容器;及
    将所述悬浮窗容器中展示的所述桌面元素位于所述桌面中展示的界面的上层。
  2. 如权利要求1所述的方法,其特征在于,所述为所述桌面元素创建悬浮窗容器,包括:
    确定所述桌面元素的桌面坐标,所述桌面坐标指在所述桌面的网格坐标系下所述桌面元素的坐标位置,所述网格坐标系是基于所述桌面的网格矩阵建立的;
    将所述桌面元素的桌面坐标转换为屏幕坐标,所述屏幕坐标指在所述桌面的屏幕坐标系下,所述桌面元素的坐标位置,所述屏幕坐标系是基于屏幕分辨率建立的;
    在所述屏幕坐标限定的区域位置,创建所述悬浮窗容器。
  3. 如权利要求1或2所述的方法,其特征在于,创建所述悬浮窗容器之后,所述方法还包括:
    若接收到悬浮窗关闭指令,将所述桌面元素从所述悬浮窗容器中移除,并将所述桌面元素恢复至所述桌面。
  4. 如权利要求3所述的方法,其特征在于,在将所述桌面元素从所述桌面中移动至所述悬浮窗容器之前,所述方法还包括:
    存储所述桌面元素的桌面坐标,作为元素桌面坐标;
    所述将所述桌面元素恢复至所述桌面,包括:
    判断所述元素桌面坐标限定的区域位置是否存在内容,若不存在,将所述桌面元素恢复至所述元素桌面坐标限定的区域位置。
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:
    若所述元素桌面坐标限定的区域位置存在内容,将所述桌面元素恢复至所述桌面上的空闲区域位置。
  6. 如权利要求4所述的方法,其特征在于,将所述桌面元素恢复至所述元素桌面坐标限定的区域位置后,所述方法还包括:
    若所述桌面元素的大小与所述元素桌面坐标限定的区域位置大小不相同,调整所述桌面元素的大小,使所述桌面元素的大小与所述桌面坐标限定的区域位置大小相匹配。
  7. 如权利要求1所述的方法,其特征在于,在将所述桌面元素从所述桌面中移动至所述悬浮窗容器之后,所述方法还包括:
    响应于悬浮窗调整指令,调整所述悬浮窗容器的窗口大小,以调整所述桌面元素的大小;和/或
    响应于窗口移动指令,将所述悬浮窗容器从当前所在区域移动至所述桌面的另一个区域,以在所述另一个区域展示所述桌面元素。
  8. 如权利要求1所述的方法,其特征在于,所述悬浮窗容器包括正常显示状态和最小化显示状态,其中,所述正常显示状态指所述悬浮窗容器的窗口在所述桌面进行展示的状态,所述最小化显示状态指所述悬浮窗容器保持运行状态,但对应的窗口未在所述桌面进行展示的状态;
    在将所述桌面元素从所述桌面中移动至所述悬浮窗容器之后,所述方法还包括:
    在接收到最小化指令或检测到所述桌面中展示的当前界面为预设界面时,将所述悬浮窗容器从正常显示状态调整为最小化显示状态。
  9. 一种电子设备,其特征在于,所述电子设备设置有操作***,所述操作***的桌面包括桌面元素;所述电子设备包括:
    触摸屏,用于展示所述桌面,并接收对所述桌面元素的置顶指令;及
    处理器,用于根据所述置顶指令为所述桌面元素创建悬浮窗容器,并将所述桌面元素从所述桌面中移动至所述悬浮窗容器,以及将所述悬浮窗容器中展示的所述桌面元素位于所述桌面中展示的界面的上层。
  10. 一种电子设备,其特征在于,所述电子设备与显示设备相连,所述电子设备设置有操作***,所述操作***的桌面包括桌面元素,所述操作***的桌面通过所述显示设备进行展示;所述电子设备包括:
    通信模块,用于与所述显示设备通信,接收所述显示设备发送的对所述桌面元素的置顶指令;及
    处理器,用于根据所述置顶指令生成控制指令,并通过所述通信模块将所述控制指令发送给所述显示设备,以控制所述显示设备为所述桌面元素创建悬浮窗容器,并将所述桌面元素从所述桌面中移动至所述悬浮窗容器,以及将所述悬浮窗容器中展示的所述桌面元素位于所述桌面中展示的界面的上层。
  11. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现如权利要求1至8中任一所述的方法。
PCT/CN2022/102864 2022-06-30 2022-06-30 桌面元素的展示方法及电子设备 WO2024000419A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN202280006529.7A CN116391167A (zh) 2022-06-30 2022-06-30 桌面元素的展示方法及电子设备
PCT/CN2022/102864 WO2024000419A1 (zh) 2022-06-30 2022-06-30 桌面元素的展示方法及电子设备
KR1020227041305A KR20240003692A (ko) 2022-06-30 2022-06-30 바탕화면 엘리먼트의 디스플레이 방법 및 전자 장치
US18/070,788 US20240004675A1 (en) 2022-06-30 2022-11-29 Exhibiting method of desktop element and electronic device
EP22212269.9A EP4300297A1 (en) 2022-06-30 2022-12-08 Exhibiting method of desktop element and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/102864 WO2024000419A1 (zh) 2022-06-30 2022-06-30 桌面元素的展示方法及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/070,788 Continuation US20240004675A1 (en) 2022-06-30 2022-11-29 Exhibiting method of desktop element and electronic device

Publications (1)

Publication Number Publication Date
WO2024000419A1 true WO2024000419A1 (zh) 2024-01-04

Family

ID=84799952

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102864 WO2024000419A1 (zh) 2022-06-30 2022-06-30 桌面元素的展示方法及电子设备

Country Status (5)

Country Link
US (1) US20240004675A1 (zh)
EP (1) EP4300297A1 (zh)
KR (1) KR20240003692A (zh)
CN (1) CN116391167A (zh)
WO (1) WO2024000419A1 (zh)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130227473A1 (en) * 2010-09-15 2013-08-29 Maurizio Corvo Graphical user interface
CN104216752A (zh) * 2014-09-30 2014-12-17 珠海市君天电子科技有限公司 一种基于窗口的信息加载方法及装置
CN104714725A (zh) * 2011-12-31 2015-06-17 北京奇虎科技有限公司 一种悬浮窗的显示方法及装置
CN105938430A (zh) * 2012-07-31 2016-09-14 北京奇虎科技有限公司 一种信息展示装置及方法
CN106168869A (zh) * 2016-06-24 2016-11-30 北京奇虎科技有限公司 基于悬浮窗的桌面视图处理方法、装置及终端
CN106201632A (zh) * 2016-07-29 2016-12-07 维沃移动通信有限公司 一种应用程序的访问方法及移动终端
CN106873842A (zh) * 2015-12-10 2017-06-20 北京奇虎科技有限公司 桌面图标批量整理方法及装置和终端
CN112181225A (zh) * 2020-09-29 2021-01-05 维沃移动通信有限公司 桌面元素调整方法、装置和电子设备
CN112214144A (zh) * 2020-10-22 2021-01-12 珠海格力电器股份有限公司 生成移动终端桌面的方法、装置及电子装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176506A (zh) * 2019-12-25 2020-05-19 华为技术有限公司 一种屏幕显示方法及电子设备
US11847294B2 (en) * 2020-10-22 2023-12-19 Gree Electric Appliances, Inc. Of Zhuhai Method for generating desktop of mobile terminal, device and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130227473A1 (en) * 2010-09-15 2013-08-29 Maurizio Corvo Graphical user interface
CN104714725A (zh) * 2011-12-31 2015-06-17 北京奇虎科技有限公司 一种悬浮窗的显示方法及装置
CN105938430A (zh) * 2012-07-31 2016-09-14 北京奇虎科技有限公司 一种信息展示装置及方法
CN104216752A (zh) * 2014-09-30 2014-12-17 珠海市君天电子科技有限公司 一种基于窗口的信息加载方法及装置
CN106873842A (zh) * 2015-12-10 2017-06-20 北京奇虎科技有限公司 桌面图标批量整理方法及装置和终端
CN106168869A (zh) * 2016-06-24 2016-11-30 北京奇虎科技有限公司 基于悬浮窗的桌面视图处理方法、装置及终端
CN106201632A (zh) * 2016-07-29 2016-12-07 维沃移动通信有限公司 一种应用程序的访问方法及移动终端
CN112181225A (zh) * 2020-09-29 2021-01-05 维沃移动通信有限公司 桌面元素调整方法、装置和电子设备
CN112214144A (zh) * 2020-10-22 2021-01-12 珠海格力电器股份有限公司 生成移动终端桌面的方法、装置及电子装置

Also Published As

Publication number Publication date
CN116391167A (zh) 2023-07-04
EP4300297A1 (en) 2024-01-03
US20240004675A1 (en) 2024-01-04
KR20240003692A (ko) 2024-01-09

Similar Documents

Publication Publication Date Title
US9880643B1 (en) User terminal device and method for controlling the user terminal device thereof
US10509551B2 (en) Icon management method, apparatus, and terminal
JP6478181B2 (ja) 携帯端末と外部表示装置の連結運用方法及びこれを支援する装置
KR102213212B1 (ko) 멀티윈도우 제어 방법 및 이를 지원하는 전자 장치
US9880727B2 (en) Gesture manipulations for configuring system settings
CN110347317B (zh) 一种窗口切换方法、装置、存储介质及交互智能平板
WO2019047147A1 (zh) 图标移动方法及装置
US20130241829A1 (en) User interface method of touch screen terminal and apparatus therefor
TW201539301A (zh) 可調適使用者介面窗格管理器
CN111443863A (zh) 页面操控方法、装置、存储介质及终端
KR20110130484A (ko) 이벤트 인식
CN110928614B (zh) 界面显示方法、装置、设备及存储介质
JP2023530395A (ja) アプリアイコン制御方法、装置及び電子機器
TW201903594A (zh) 圖標的顯示方法、裝置、設備和儲存媒介
US20230176717A1 (en) Method for Managing Application Icon, Terminal Device, and Storage Medium
WO2022100275A1 (zh) 移动终端上的多窗口处理方法、装置、移动终端及介质
JP2023552659A (ja) インターフェース表示状態の調整方法及び装置、デバイス、記憶媒体
WO2022062624A1 (zh) 触控屏的触控信息处理方法、装置及电子设备
WO2021068405A1 (zh) 元素传递方法、装置、设备及存储介质
WO2024000419A1 (zh) 桌面元素的展示方法及电子设备
WO2022218152A1 (zh) 窗口切换方法、存储介质及相关设备
WO2021068112A1 (zh) 触摸事件的处理方法、装置、移动终端及存储介质
CN111949195B (zh) 液晶电视的触控方法、装置、智能设备及存储介质
WO2023217177A1 (zh) 应用窗口的处理方法、存储介质及智能交互平板
EP4060470A1 (en) Display method and device, and computer readable storage medium

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022572545

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22948524

Country of ref document: EP

Kind code of ref document: A1