US-20260126892-A1 - DISPLAY METHOD AND ELECTRONIC DEVICE
Abstract
This application provides a display method and an electronic device. The method may be applied to an electronic device. The method includes: receiving a plurality of notification messages of different categories; displaying a first display interface of a notification center in response to an operation of opening the notification center, where the first display interface includes a plurality of display partitions, each of the plurality of display partitions includes a plurality of notification messages coming from different applications but belonging to a same category, and categories of notification messages included in different display partitions are different; and displaying, in a collapsed manner in response to an operation of collapsing a target display partition in the plurality of display partitions, notification messages that are of a plurality of different applications and that are included in the target display partition.
Inventors
- Jing Huang
- Miao Wang
- Liying Yao
- Chunliang LIU
Assignees
- HUAWEI TECHNOLOGIES CO., LTD.
Dates
- Publication Date
- 20260507
- Application Date
- 20251230
- Priority Date
- 20230718
Claims (20)
- 1 . A method, applied to an electronic device, the method comprising: receiving a plurality of notification messages of different categories; displaying a first display interface of a notification center in response to an operation of opening the notification center, wherein the first display interface comprises a plurality of display partitions, each of the plurality of display partitions is used to display notification messages coming from different applications but belonging to a same category, and categories of notification messages comprised in different display partitions are different; and displaying, in a collapsed manner in response to an operation of collapsing a target display partition in the plurality of display partitions, notification messages that are of a plurality of different applications and that are comprised in the target display partition.
- 2 . The method according to claim 1 , further comprising: after the electronic device collapses the notification messages that are of the plurality of different applications and that are comprised in the target display partition into one collapsed card for display, in response to an operation of sliding on the collapsed card, displaying a deletion function button for deleting the collapsed card; and deleting the collapsed card in response to an operation of tapping the deletion function button.
- 3 . The method according to claim 1 , further comprising: after the electronic device collapses the notification messages that are of the plurality of different applications and that are comprised in the target display partition into one collapsed card for display, deleting the collapsed card in response to an operation of sliding on the collapsed card.
- 4 . The method according to claim 1 , wherein the target display partition further comprises a collapsing function button, and displaying, in the collapsed manner in response to the operation of collapsing the target display partition in the plurality of display partitions, the notification messages that are of the plurality of different applications and that are comprised in the target display partition comprises: in response to an operation of tapping the collapsing function button, displaying, in a collapsed manner, the notification messages that are of the plurality of different applications and that are comprised in the target display partition.
- 5 . The method according to claim 1 , further comprising: displaying a second display interface in response to an operation of closing the notification center, wherein the second display interface is displayed by the electronic device before the first display interface; and displaying the first display interface in response to an operation of opening the notification center again, wherein the notification messages that are of the plurality of different applications and that are comprised in the target display partition in the first display interface are still displayed in a collapsed manner after the first display interface is displayed again.
- 6 . The method according to claim 1 , further comprising: in response to an operation of expanding the target display partition by a user, displaying, in an expanded manner, the notification messages that are of the plurality of different applications and that are comprised in the target display partition.
- 7 . The method according to claim 6 , wherein when there are a plurality of notification messages of a same category that belong to a same application, displaying, in the expanded manner, the notification messages that are of the plurality of different applications and that are comprised in the target display partition comprises: displaying, on a same target display card in a collapsed manner, the plurality of notification messages of the same category that belong to the same application.
- 8 . The method according to claim 7 , further comprising: in response to an operation of expanding the target display card by the user, displaying, in an expanded manner, the plurality of notification messages of the same category that belong to the same application.
- 9 . The method according to claim 1 , wherein displaying in the collapsed manner comprises: displaying application icons of the plurality of different applications in an arranged manner; displaying display cards corresponding to the notification messages of the plurality of different applications in grids; or displaying display cards corresponding to the notification messages of the plurality of different applications in a stacked manner.
- 10 . The method according to claim 1 , wherein the first display interface further comprises identifiers indicating titles of the plurality of display partitions.
- 11 . An electronic device, comprising one or more processors and one or more memories, wherein the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device is caused to: receive a plurality of notification messages of different categories; display a first display interface of a notification center in response to an operation of opening the notification center, wherein the first display interface comprises a plurality of display partitions, each of the plurality of display partitions is used to display notification messages coming from different applications but belonging to a same category, and categories of notification messages comprised in different display partitions are different; and display, in a collapsed manner in response to an operation of collapsing a target display partition in the plurality of display partitions, notification messages that are of a plurality of different applications and that are comprised in the target display partition.
- 12 . The electronic device according to claim 11 , wherein when the one or more programs are executed by the one or more processors, the electronic device is further caused to: after the electronic device collapses the notification messages that are of the plurality of different applications and that are comprised in the target display partition into one collapsed card for display, in response to an operation of sliding on the collapsed card, displaying a deletion function button for deleting the collapsed card; and deleting the collapsed card in response to an operation of tapping the deletion function button.
- 13 . The electronic device according to claim 11 , wherein when the one or more programs are executed by the one or more processors, the electronic device is further caused to: after the electronic device collapses the notification messages that are of the plurality of different applications and that are comprised in the target display partition into one collapsed card for display, deleting the collapsed card in response to an operation of sliding on the collapsed card.
- 14 . The electronic device according to claim 11 , wherein the target display partition further comprises a collapsing function button, and displaying, in the collapsed manner in response to the operation of collapsing the target display partition in the plurality of display partitions, the notification messages that are of the plurality of different applications and that are comprised in the target display partition comprises: in response to an operation of tapping the collapsing function button, displaying, in a collapsed manner, the notification messages that are of the plurality of different applications and that are comprised in the target display partition.
- 15 . The electronic device according to claim 11 , wherein when the one or more programs are executed by the one or more processors, the electronic device is further caused to: displaying a second display interface in response to an operation of closing the notification center, wherein the second display interface is displayed by the electronic device before the first display interface; and displaying the first display interface in response to an operation of opening the notification center again, wherein the notification messages that are of the plurality of different applications and that are comprised in the target display partition in the first display interface are still displayed in a collapsed manner after the first display interface is displayed again.
- 16 . The electronic device according to claim 11 , wherein when the one or more programs are executed by the one or more processors, the electronic device is further caused to: in response to an operation of expanding the target display partition by a user, displaying, in an expanded manner, the notification messages that are of the plurality of different applications and that are comprised in the target display partition.
- 17 . The electronic device according to claim 16 , wherein when there are a plurality of notification messages of a same category that belong to a same application, displaying, in the expanded manner, the notification messages that are of the plurality of different applications and that are comprised in the target display partition comprises: displaying, on a same target display card in a collapsed manner, the plurality of notification messages of the same category that belong to the same application.
- 18 . The electronic device according to claim 17 , wherein when the one or more programs are executed by the one or more processors, the electronic device is further caused to: in response to an operation of expanding the target display card by the user, displaying, in an expanded manner, the plurality of notification messages of the same category that belong to the same application.
- 19 . The electronic device according to claim 11 , wherein displaying in the collapsed manner comprises: displaying application icons of the plurality of different applications in an arranged manner; displaying display cards corresponding to the notification messages of the plurality of different applications in grids; or displaying display cards corresponding to the notification messages of the plurality of different applications in a stacked manner.
- 20 . The electronic device according to claim 11 , wherein the first display interface further comprises identifiers indicating titles of the plurality of display partitions.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2024/104982, filed on Jul. 11, 2024, which claims priority to Chinese Patent Application No. 202310883955.5, filed on Jul. 18, 2023. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD Embodiments of this application relate to the field of electronic technologies, and more specifically, to a display method and an electronic device. BACKGROUND In a process of using an electronic device, a user often views a notification center to obtain some notification messages. When there are a large quantity of notification messages in the notification center, the electronic device generally arranges the messages in a time sequence of receiving the notification messages. However, when there are a large quantity of notification messages, some important messages may be missed by the user. In addition, excessive notification messages may cause trouble to the user. SUMMARY This application provides a display method and an electronic device. According to the technical solutions, notification messages of different categories may be displayed in different display partitions based on categories of notification messages, to avoid a user from missing an important notification. In addition, the electronic device may further implement batch management of a plurality of notification messages based on an operation of the user, to improve user experience. According to a first aspect, a display method is provided. The method is applied to an electronic device, and the method includes: receiving a plurality of notification messages of different categories; displaying a first display interface of a notification center in response to an operation of opening the notification center, where the first display interface includes a plurality of display partitions, and each of the plurality of display partitions includes a plurality of notification messages coming from different applications but belonging to a same category; and displaying, in a collapsed manner in response to an operation of collapsing a target display partition in the plurality of display partitions, notification messages that are of a plurality of different applications and that are included in the target display partition. For example, the notification messages of the different categories may be a notification message of a live category, a notification message of a social communication category, a notification message of a service reminder category, and a notification message of a content information category. When pushing the notification messages to the electronic device, the applications may perform tag classification for the notification messages based on content of the notification messages. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a head mounted display device, or a vehicle-mounted device. A type of the electronic device is not limited in this application. Based on this embodiment of this application, after receiving the plurality of notification messages of the different categories, the electronic device may display the notification messages in different display partitions based on the categories of the notification messages. After detecting the operation of collapsing the target display partition by a user, the electronic device may display, in a collapsed manner, the notification messages that are of the plurality of different applications and that are included in the target display partition. In this way, when a large quantity of notification messages are displayed in the target display partition, the user may conveniently collapse the notification messages in batches, to make the display interface of the notification center more concise. With reference to the first aspect, in an implementation of the first aspect, the electronic device collapses the notification messages that are of the plurality of different applications and that are included in the target display partition into one collapsed card for display, and the method further includes: in response to an operation of sliding on the collapsed card, displaying a deletion function button for deleting the collapsed card; and deleting the collapsed card in response to an operation of tapping the deletion function button. In some other examples, when the electronic device detects an operation of touching and holding the collapsed card by the user, the electronic device may display the deletion function button for deleting the collapsed card; or when the electronic device detects that the user slides toward one side on the collapsed card, the electronic device may directly delete the collapsed card. This is not limited in this embodiment of this application. Based on this embodiment of this application, the electronic device may collapse, based on the coll