EP-4738081-A1 - DISPLAY METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND COMPUTER PROGRAM PRODUCT
Abstract
The present disclosure relates to a display method and apparatus, an electronic device, a storage medium, and a computer program product. The method includes: displaying a first application component in a first region of a first page of the electronic device, where the first application component includes at least one information element, and the first application component located in the first region of the first page is editable; displaying at least one first candidate information element associated with the first application component in a second region of the first page; where the at least one first candidate information element is used for updating the information element in the first application component.
Inventors
- LI, SIQI
- LI, Yulian
- TANG, Han
Assignees
- Beijing Xiaomi Mobile Software Co., Ltd.
Dates
- Publication Date
- 20260506
- Application Date
- 20250425
Claims (15)
- A display method for an electronic device, comprising: displaying (101) a first application component (203) in a first region (202) of a first page (201) of the electronic device; wherein the first application component (203) comprises at least one information element, and the first application component (203) located in the first region (202) of the first page (201) is editable; and displaying (102) at least one first candidate information element (205) associated with the first application component (203) in a second region (204) of the first page (201); wherein the at least one first candidate information element (205) is used for updating the information element in the first application component (203).
- The display method according to claim 1, wherein the method further comprises: in response to a touch operation on the first application component (203), determining an information element to be updated from the at least one information element of the first application component (203) based on a target region that the touch operation acts on; wherein displaying the at least one first candidate information element (205) associated with the first application component (203) in the second region (204) of the first page (201), comprises: displaying at least one second candidate information element associated with the information element to be updated in the second region (204) of the first page (201); wherein the second candidate information element is a part or all of the at least one first candidate information element (205), and the second candidate information element is used for updating the information element to be updated.
- The display method according to claim 2, wherein the method further comprises: in response to an operation on a target information element in the at least one second candidate information element, replacing the information element to be updated with the target information element; and displaying, in the first region (202) of the first page (201), the first application component (203) in which the information element to be updated is replaced with the target information element.
- The display method according to any one of the preceding claims, wherein the method further comprises: in response to a switching operation on the first region (202) of the first page (201), switching from displaying the first application component (203) to displaying a second application component in the first region (202) of the first page (201); and switching from displaying the at least one first candidate information element (205) in the second region (204) of the first page (201) to displaying at least one third candidate information element associated with the second application component in the second region (204) of the first page (201); wherein the at least one third candidate information element is used for updating an information element in the second application component.
- The display method according to any one of the preceding claims , wherein the method further comprises: in a case that the first application component (203) is of a target type, displaying at least one first control (302, 304) in the second region (204) of the first page (201); and in response to an operation on the at least one first control (302, 304), adjusting a display style of the first application component (203) and/or the information element in the first application component (203).
- The display method according to any one of the preceding claims , wherein the method further comprises: in response to an operation on a second control displayed on a second page (401), displaying at least one application identifier on the first page (201) or a third page (402); wherein the operation on the second control is used for indicating an addition of an application component, and the first page (201), the second page (401), and the third page (402) are all different; and in a case of detecting an operation on the application identifier of the first application component (203), displaying the first application component (203) in the first region (202) of the first page (201), and displaying the at least one first candidate information element (205) in the second region (204) of the first page (201).
- The display method according to claim 6, wherein displaying the at least one application identifier on the first page (201) or the third page (402), comprises: in a case that a size of a display screen of the electronic device is less than or equal to a preset threshold, displaying the at least one application identifier on the third page (402); wherein in a case of detecting the operation on the application identifier of the first application component (203), displaying the first application component (203) in the first region (202) of the first page (201), and displaying the at least one first candidate information element (205) in the second region (204) of the first page (201), comprises: in a case of detecting the operation on the application identifier of the first application component (203), switching from the third page (402) to the first page (201), displaying the first application component (203) in the first region (202) of the first page (201), and displaying the at least one first candidate information element (205) in the second region (204) of the first page (201).
- The display method according to claim 6 or 7, wherein displaying the at least one application identifier on the first page (201) or the third page (402) comprises: in a case that the electronic device supports a folding function and is in an unfolded state, displaying the at least one application identifier on the first page (201); wherein the at least one application identifier, the first application component (203), and the at least one first candidate information element (205) are displayed in a first presentation style; and in a case that a size of a display screen of the electronic device is greater than a preset threshold, displaying the at least one application identifier on the first page (201); wherein the at least one application identifier, the first application component (203), and the at least one first candidate information element (205) are displayed in a second presentation style; wherein the first presentation style and the second presentation style are different.
- The display method according to any one of the preceding claims , wherein the method further comprises: in response to a touch operation on a third application component (801) displayed on the second page (401), displaying at least one third control (701, 702, 703); wherein each of the third control (701, 702, 703) has a corresponding processing function, and the third application component (801) is either the first application component (203) or associated with the first application component (203); wherein displaying the first application component (203) in the first region (202) of the first page (201) of the electronic device, comprises: in a case of detecting a triggering operation on the third control (701, 702, 703), displaying the first application component (203) in the first region (202) of the first page (201).
- The display method according to claim 9, wherein in the case of detecting the triggering operation on the third control (701, 702, 703), displaying the first application component (203) in the first region (202) of the first page (201) comprises: in response to a triggering operation on the third control (701, 702, 703) with a replacement function, displaying at least one candidate application component (705) on a fourth page (704); and determining a target candidate application component (705) on which a replacement operation acts in the at least one candidate application component (705) as the first application component (203), and displaying the first application component (203) in the first region (202) of the first page (201).
- The display method according to claim 10, wherein displaying the at least one candidate application component (705) on the fourth page (704), comprises: in a case that the electronic device supports a folding function and is in an unfolded state, or in a case that a size of a display screen of the electronic device is greater than a preset threshold, displaying the at least one candidate application component (705) in a first region of the fourth page (704), and displaying the third application component (801) in a second region (204) of the fourth page (704).
- The display method according to claim 9 or 10, wherein in the case of detecting the triggering operation on the third control (701, 702, 703), displaying the first application component (203) in the first region (202) of the first page (201), comprises: in response to a triggering operation on the third control (701, 702, 703) with an editing function, determining the third application component (801) as the first application component (203), and displaying the first application component (203) in the first region (202) of the first page (201).
- The display method according to any one of claims 1 to 12, wherein in a case that the electronic device supports a folding function and is in an unfolded state, or in a case that a size of a display screen of the electronic device is greater than a preset threshold, the method further comprises: displaying the first application component (203) in a third region of the first page (201); wherein the first application component (203) displayed in the third region of the first page (201) is used for comparison.
- The display method according to any one of claims 1 to 13, wherein the method further comprises: in response to an operation on a fourth control displayed on the first page (201), generating a target application component based on the information element in the first application component (203) in the first region (202) of the first page (201) when the operation on the fourth control is detected; and displaying the target application component.
- A display apparatus (1300), comprising: a first display module (1301), configured to display a first application component (203) in a first region (202) of a first page (201) of the electronic device; wherein the first application component (203) comprises at least one information element, and the first application component located in the first region (202) of the first page (201) is editable; and a second display module (1302), configured to display at least one first candidate information element (205) associated with the first application component (203) in a second region (204) of the first page (201); wherein the at least one first candidate information element (205) is used for updating the information element in the first application component (203).
Description
TECHNICAL FIELD The present disclosure relates to the field of computer communication, and in particular, to a display method and apparatus for an electronic device, an electronic device, a storage medium, and a computer program product. BACKGROUND Currently, different widgets may be provided in the electronic device to implement various functions, and the user may select the corresponding widget for display or use based on his own usage requirements. However, sometimes the content within the widget selected by the user may not fully meet the user's usage requirements. In such cases, the user may have to settle for a widget that is relatively close to his requirements. SUMMARY To overcome the problems existing in related art, the present disclosure provides a display method and apparatus for an electronic device, an electronic device, a storage medium, and a computer program product to facilitate the user to customize and update an information element in an application component, thereby obtaining an application component that meets the user requirements. According to a first aspect of the present invention, a display method is provided, which includes: displaying a first application component in a first region of a first page of the electronic device; where the first application component includes at least one information element, and the first application component located in the first region of the first page is editable; anddisplaying at least one first candidate information element associated with the first application component in a second region of the first page;where the at least one first candidate information element is used for updating the information element in the first application component. According to a second aspect of the present invention, an electronic device is provided, including: a first display module, configured to display a first application component in a first region of a first page of the electronic device; where the first application component includes at least one information element, and the first application component located in the first region of the first page is editable; anda second display module, configured to display at least one first candidate information element associated with the first application component in a second region of the first page;where the at least one first candidate information element is used for updating the information element in the first application component. According to a third aspect of the present invention, an electronic device is provided, including: a processor; and a memory, configured to store a computer program or an instruction; where the processor is configured to execute the computer program or instruction to implement the steps of the method according to any of the items in the above first aspect. According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium is provided, which stores a computer program or an instruction. When the computer program or instruction in the storage medium is executed by a processor, the steps of the method according to any of the items in the above first aspect are implemented. According to a fifth aspect of the present invention, a computer program product is provided, including a computer program or an instruction. When executed by a processor, the computer program or instruction implements the steps of the method according to any of the items in the above first aspect. The technical solution provided by the embodiments disclosed herein may include the following beneficial effects. In the present disclosure, the first application component is displayed in the first region of the first page of the electronic device. The first application component includes at least one information element, and the first application component located in the first region of the first page is editable. At least one first candidate information element associated with the first application component is displayed in the second region of the first page. The at least one first candidate information element is used for updating the information element in the first application component. By displaying an editable first application component in the first region of the first page and displaying at least one first candidate information element associated with the first application component in the second region of the first page, on one hand, the user can update the information element in the first application component through the first candidate information element on the first page, thereby facilitating the user to customize and update the information element in the application component to obtain an application component that meets the user requirements. On the other hand, displaying the first application component and the first candidate information element in different regions of the first page enables a real-time preview of the effect of the updated application component, whi