Patent Description:
Currently, a notification panel (notification panel) is set on an electronic device such as a mobile phone, to display a notification message received by an operating system or an application. The mobile phone is used as an example. As shown in <FIG>, the mobile phone may display a status bar (status bar) <NUM> when displaying applications on a home screen. The status bar <NUM> may display time, a battery level, signal strength, a Bluetooth status, an operator name, and the like.

If the mobile phone detects that a user drops down the status bar <NUM>, as shown in <FIG>, the mobile phone may display a drop-down menu <NUM>. When a notification message of a system or an application exists in the mobile phone, the mobile phone may display the notification message in a notification panel <NUM> of the drop-down menu <NUM>. When there are a plurality of notification messages of a same application (for example, a Messages app), still as shown in <FIG>, the mobile phone may display the plurality of notification messages in a form of a message group <NUM> in the notification panel <NUM>.

Generally, the message group <NUM> has an expanded state and a collapsed state. As shown in <FIG>, the mobile phone may display the message group <NUM> in the collapsed state by default, to reduce display space occupied by the notification messages in the notification panel <NUM>. After detecting that the user taps the message group <NUM>, as shown in <FIG>, the mobile phone may display the message group <NUM> in the expanded state. In the expanded state, the mobile phone may display each notification message in the message group <NUM> in a form of a card in the notification panel <NUM>.

Because a spacing between adjacent cards is relatively large, when the message group <NUM> includes a large quantity of notification messages, the user needs to swipe up and down on the notification panel <NUM> to preview each notification message. In addition, when the user wants to display the expanded message group <NUM> in the collapsed state, the user needs to return to the top (or the bottom) of the plurality of notification messages and tap a corresponding collapse button. Consequently, user experience in browsing and managing the message group <NUM> is poor.

<CIT> discloses a method and a device whereby notifications displayed on a display can be interacted with. In particular, a notification is displayed on a display, the notification initially being in an initial notification state. User input is detected and it is determined if the user input is being made in a direction towards the notification. If the user input is being made in a direction towards the notification, the notification is placed into a subsequent notification state.

<CIT> discloses a display method and apparatus for a notification message in a notification bar interface of a mobile terminal.

<CIT> discloses method including displaying, on a display of an electronic device, first information and detecting a gesture on the touch-sensitive display, which gesture indicates a request to display an inbox associated with a plurality of applications. In response to detecting the gesture, when a message is received for a first application that is not one of the plurality of applications, a plurality of visual notification icons is displayed and at least part of the inbox is gradually displayed while reducing display of the first information along with movement of the gesture, wherein a first visual notification icon of the plurality of visual notification icons is associated with the first application.

This application provides a notification message preview method and an electronic device, to provide a user with a function of quickly previewing a plurality of notification messages in a message group in a notification panel. This improves management efficiency and usage experience of the user on the message group.

According to a first aspect, this application provides a notification message preview method, including: An electronic device displays one notification message in a message group (the message group includes N notification messages, where N is an integer greater than <NUM>) on a first card, where other notification messages in the message group are hidden. In this case, the message group is in a collapsed state. Further, the electronic device may receive a preset operation that is entered by a user to a first card. In this case, in response to the preset operation, the electronic device may display M notification messages (M is an integer less than or equal to N and greater than <NUM>) in the message group on a second card, where the M notification messages are M of the N notification messages, and the M notification messages include the notification message that is displayed when the message group is in the collapsed state. In this case, the message group is in a preview state.

That is, when the message group is in the collapsed state, the electronic device displays only one notification message in the message group on the first card. When the user triggers switching of the message group from the collapsed state to the preview state, the electronic device may display a plurality of notification messages in the message group on one card (for example, the second card), where the plurality of notification messages include the notification message that is displayed when the message group is in the collapsed state. In this way, when viewing the message group in a notification panel, the user may switch the message group to the preview state and quickly preview the plurality of notification messages in the message group without expanding each notification message in the message group to view and manage each notification message. This improves management efficiency and usage experience of the user on the message group.

For example, in response to the preset operation entered by the user, the electronic device may display all the N notification messages in the message group on the second card, and in this case, M = N.

The electronic device detects that a finger of the user does not leave a touchscreen after the user performs the touch and hold operation, and detects that the user enters a first swipe operation to the second card. In this case, the electronic device may display the N notification messages in the message group on the second card in scrolling mode, so that the user can preview each notification message in the message group.

Further, by using one touch and hold operation, the user may trigger the electronic device to switch the message group from the collapsed state to the preview state, and switch the message group from the preview state back to the collapsed state. This simplifies an operation process of switching the message group between the plurality of display states by the user.

In a possible implementation, that the electronic device displays the M notification messages in the message group on the second card includes: The electronic device expands the first card to form the second card, and displays the M notification messages on the second card. In this case, an interface in which the first card is located is a same interface as an interface in which the second card is located.

Alternatively, that the electronic device displays the M notification messages in the message group on the second card includes: The electronic device displays the second card in an interface in which the first card is located, and displays the M notification messages on the second card. In this case, an interface in which the second card is located covers the interface in which the first card is located, and the first card does not disappear.

For example, when the interface in which the second card is located covers the interface in which the first card is located, the electronic device may further blur, mosaic, or hide the interface (namely, the interface in which the first card is located) covered by the second card, to prompt the user to focus on reading each notification message on the second card.

In a possible implementation, the second card includes a content summary of each of the M notification messages. Notification messages of chat messages are used as an example. A content summary of each notification message on the second card may include a name of a contact, a profile picture of a contact, message content, and the like that correspond to the notification message.

In a possible implementation, after the electronic device displays the M notification messages in the message group on the second card, the method further includes: The electronic device detects that a finger of the user does not leave a touchscreen after the user performs the touch and hold operation, and detects that the user continues to enter a second swipe operation to the second card. In this case, the electronic device may delete the second card and the M notification messages on the second card. That is, when the message group is in the preview state, the user can still delete all the notification messages in the message group by using the message group as a unit.

In a possible implementation, after the electronic device displays the M notification messages in the message group on the second card, the method further includes: The electronic device detects that a finger of the user does not leave a touchscreen after the user performs the touch and hold operation, and detects that the user continues to enter a third swipe operation to the second card. In this case, the electronic device may display a management button for the message group near the second card. The electronic device detects that the user selects the management button. Further, the electronic device may display a management menu, where the management menu includes one or more options of managing the message group, for example, an option of deleting the message group, an option of marking the message group as read, and an option of expanding the message group. That is, in the preview state, the user may manage, by using the management menu, a plurality of notification messages in the message group by using the message group as a unit.

In a possible implementation, after the electronic device displays the M notification messages in the message group on the second card, the method further includes: The electronic device detects that a finger of the user does not leave a touchscreen after the user performs the touch and hold operation, and detects that the user continues to enter a fourth swipe operation to the second card. In this case, the electronic device may display the N notification messages on N cards respectively, and the N cards are in a one-to-one correspondence with the N notification messages. In this case, the message group is in an expanded state.

It can be learned that, when the message group is in the collapsed state, by using the touch and hold operation, the user may trigger the electronic device to switch the message group from the collapsed state to the preview state. Further, the finger of the user does not need to leave the screen of the mobile phone, and may continue to enter a swipe operation to trigger the electronic device to switch the message group from the preview state to the expanded state. In this case, for the user, in an operation process from touching the screen to leaving the screen by the finger, the user may control the mobile phone to switch the message group between the three display states: the collapsed state, the preview state, and the expanded state. This simplifies an operation process of switching the message group between the plurality of display states by the user, and improves user experience.

In a possible implementation, detailed content of a corresponding notification message is displayed on each of the N cards. Notification messages of chat messages are used as an example. The detailed content may include receiving time, a name of a contact, a profile picture of a contact, message content, and the like that correspond to a corresponding notification message.

In a possible implementation, after the electronic device displays the N notification messages on the N cards respectively, the method further includes: The electronic device detects that the user enters a first swipe operation to a third card in the N cards, and further, the electronic device deletes the third card and a notification message on the third card. Alternatively, the electronic device detects that the user enters a second swipe operation to a third card in the N cards, and further, the electronic device displays, near the third card, a management button for a notification message on the third card. That is, in the expanded state, the user may manage each notification message in the message group by using a card as a unit.

For example, the N notification messages in the message group may be notification messages from a same application.

According to a second aspect, this application provides an electronic device, including a touchscreen, one or more processors, one or more memories, and one or more computer programs. The processors are coupled to both the touchscreen and the memories. The one or more computer programs are stored in the memories. When the electronic device runs, the processor executes the one or more computer programs stored in the memories, so that the electronic device is enabled to perform the notification message preview method according to any one of the implementations of first aspect.

According to a third aspect, this application provides a computer storage medium, including computer instructions. When the computer instructions are run on an electronic device, the electronic device is enabled to perform the notification message preview method according to any one of the implementations of the first aspect.

It may be understood that the electronic device according to the second aspect, and the computer storage medium according to the third aspect are all configured to perform the corresponding method provided above. Therefore, for beneficial effects that can be achieved, refer to the beneficial effects in the foregoing corresponding method.

The following describes implementations of embodiments in detail with reference to the accompanying drawings.

The embodiments of this application provide a notification message preview method, which may be applied to electronic devices such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a handheld computer, a netbook, and a personal digital assistant (personal digital assistant, PDA), a wearable electronic device, or a virtual reality device. This is not limited in the embodiments of this application.

For example, <FIG> is a schematic diagram of a structure of an electronic device <NUM>.

The electronic device <NUM> may include a processor <NUM>, an external memory interface <NUM>, an internal memory <NUM>, a universal serial bus (universal serial bus, USB) interface <NUM>, a charging management module <NUM>, a power management module <NUM>, a battery <NUM>, an antenna <NUM>, an antenna <NUM>, a mobile communications module <NUM>, a wireless communications module <NUM>, an audio module <NUM>, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module <NUM>, a button <NUM>, a motor <NUM>, an indicator <NUM>, a camera <NUM>, a display <NUM>, a subscriber identification module (subscriber identification module, SIM) card interface <NUM>, and the like.

It may be understood that an example structure in the embodiments of the present invention does not constitute a specific limitation on the electronic device <NUM>. In other embodiments of this application, the electronic device <NUM> may include more or fewer components than those shown in the figure, or some components may be combined, or some components may be split, or there may be a different component layout. The components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.

The processor <NUM> may include one or more processing units. For example, the processor <NUM> may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural-network processing unit (neural-network processing unit, NPU). Different processing units may be independent devices, or may be integrated into one or more processors.

The controller may generate an operation control signal based on instruction operation code and a time sequence signal, to complete control of instruction fetching and instruction execution.

A memory may further be disposed in the processor <NUM>, and is configured to store instructions and data. In some embodiments, the memory in the processor <NUM> is a cache memory. The memory may store instructions or data that has just been used or is cyclically used by the processor <NUM>. If the processor <NUM> needs to use the instructions or the data again, the processor <NUM> may directly invoke the instructions or the data from the memory. This avoids repeated access and reduces waiting time of the processor <NUM>. Therefore, system efficiency is improved.

The interface may include an inter-integrated circuit (inter-integrated circuit, I2C) interface, an inter-integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identification module (subscriber identity module, SIM) interface, a universal serial bus (universal serial bus, USB) interface, and/or the like.

The charging management module <NUM> is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module <NUM> may receive a charging input from the wired charger through the USB interface <NUM>. In some embodiments of wireless charging, the charging management module <NUM> may receive a wireless charging input through a wireless charging coil of the electronic device <NUM>. The charging management module <NUM> may further supply power to the electronic device by using the power management module <NUM> when the battery <NUM> is charged.

The power management module <NUM> is configured to connect to the battery <NUM>, the charging management module <NUM>, and the processor <NUM>. The power management module <NUM> receives an input of the battery <NUM> and/or an input of the charging management module <NUM>, and supplies power to the processor <NUM>, the internal memory <NUM>, the display <NUM>, the camera <NUM>, the wireless communications module <NUM>, and the like. The power management module <NUM> may be further configured to monitor parameters such as a battery capacity, a battery cycle count, and a battery health status (electric leakage or impedance). In some other embodiments, the power management module <NUM> may alternatively be disposed in the processor <NUM>. In some other embodiments, the power management module <NUM> and the charging management module <NUM> may alternatively be disposed in a same device.

The antenna <NUM> and the antenna <NUM> are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device <NUM> may be configured to cover one or more communication frequency bands. Different antennas may further be multiplexed, to improve antenna utilization. For example, the antenna <NUM> may be multiplexed as a diversity antenna in a wireless local area network. In some other embodiments, the antenna may be used in combination with a tuning switch.

The mobile communications module <NUM> may provide a solution that is for wireless communication including <NUM>/<NUM>/<NUM>/<NUM> and the like and that is applied to the electronic device <NUM>. The mobile communications module <NUM> may include one or more filters, a switch, a power amplifier, a low noise amplifier (low noise amplifier, LNA), and the like. The mobile communications module <NUM> may receive an electromagnetic wave through the antenna <NUM>, perform processing such as filtering or amplification on the received electromagnetic wave, and transfer the electromagnetic wave to the modem processor for demodulation. The mobile communications module <NUM> may further amplify a signal modulated by the modem processor, and convert an amplified signal into an electromagnetic wave through the antenna <NUM> for radiation. In some embodiments, at least some function modules of the mobile communications module <NUM> may be disposed in the processor <NUM>. In some embodiments, at least some function modules of the mobile communications module <NUM> and at least some modules of the processor <NUM> may be disposed in a same device.

The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a to-be-sent low-frequency baseband signal into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low frequency baseband signal. Then, the demodulator transfers the low-frequency baseband signal obtained through demodulation to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor, and is then transferred to the application processor. The application processor outputs a sound signal through an audio device (which is not limited to the speaker 170A, the receiver 170B, or the like), or displays an image or a video through the display <NUM>. In some embodiments, the modem processor may be an independent component. In some other embodiments, the modem processor may be independent of the processor <NUM>, and is disposed in a same device as the mobile communications module <NUM> or another function module.

The wireless communications module <NUM> may provide a wireless communication solution that includes wireless local area networks (wireless local area networks, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), an infrared (infrared, IR) technology, or the like and that is applied to the electronic device <NUM>. The wireless communications module <NUM> may be one or more components integrating one or more communications processor modules. The wireless communications module <NUM> receives an electromagnetic wave through the antenna <NUM>, performs frequency modulation and filtering processing on an electromagnetic wave signal, and sends a processed signal to the processor <NUM>. The wireless communications module <NUM> may further receive a to-be-sent signal from the processor <NUM>, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave through the antenna <NUM> for radiation.

In some embodiments, in the electronic device <NUM>, the antenna <NUM> is coupled to the mobile communications module <NUM>, and the antenna <NUM> is coupled to the wireless communications module <NUM>, so that the electronic device <NUM> can communicate with a network and another device by using a wireless communications technology. The wireless communications technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-CDMA), long term evolution (long term evolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).

The electronic device <NUM> implements a display function through the GPU, the display <NUM>, the application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display <NUM> and the application processor. The GPU is configured to perform mathematical and geometric calculation, and render an image. The processor <NUM> may include one or more GPUs that execute a program instruction to generate or change display information.

The display <NUM> is configured to display an image, a video, and the like. The display <NUM> includes a display panel. The display panel may be a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active-matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), a flexible light-emitting diode (flex light-emitting diode, FLED), a mini-LED, a micro-LED, a micro-OLED, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device <NUM> may include one or N displays <NUM>, where N is a positive integer greater than <NUM>.

The electronic device <NUM> may implement a photographing function through the ISP, the camera <NUM>, the video codec, the GPU, the display <NUM>, the application processor, and the like.

The ISP is configured to process data fed back by the camera <NUM>. For example, during photographing, a shutter is turned on, and light is transmitted to a photosensitive element of the camera through a lens. An optical signal is converted into an electrical signal, the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and the electrical signal is converted into an image that can be seen. The ISP may further optimize an algorithm for noise, brightness, and complexion of an image. The ISP may further optimize parameters such as exposure and a color temperature of a shooting scenario. In some embodiments, the ISP may be disposed in the camera <NUM>.

The camera <NUM> is configured to capture a static image or a video. An optical image of an object is generated through the lens, and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the optical signal into the electrical signal, and then transmits the electrical signal to the ISP to convert the electrical signal into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard image signal in a format such as RGB or YUV. In some embodiments, the electronic device <NUM> may include one or N cameras <NUM>, where N is a positive integer greater than <NUM>.

The digital signal processor is configured to process a digital signal. In addition to the digital image signal, the digital signal processor may further process another digital signal. For example, when the electronic device <NUM> selects a frequency, the digital signal processor is configured to perform Fourier transformation and the like on frequency energy.

The video codec is configured to compress or decompress a digital video. The electronic device <NUM> may support one or more video codecs. Therefore, the electronic device <NUM> may play or record videos in a plurality of coding formats, for example, moving picture experts group (moving picture experts group, MPEG)-<NUM>, MPEG-<NUM>, MPEG-<NUM>, and MPEG-<NUM>.

The NPU is a neural-network (neural-network, NN) computing processor that rapidly processes input information by referring to a structure of a biological neural network, for example, by referring to a transfer mode between human brain neurons, and can further perform self-learning continuously. The NPU can implement applications such as intelligent cognition of the electronic device <NUM>, such as image recognition, facial recognition, speech recognition, and text understanding.

The external memory interface <NUM> may be configured to connect to an external memory card, for example, a micro SD card, to extend a storage capability of the electronic device <NUM>. The external memory card communicates with the processor <NUM> through the external memory interface <NUM>, to implement a data storage function. For example, files such as music and a video are stored in the external storage card.

The internal memory <NUM> may be configured to store one or more computer programs, where the one or more computer programs include instructions. The processor <NUM> may run the instructions stored in the internal memory <NUM>, so that the electronic device <NUM> performs the notification message preview method provided in some embodiments of this application, various function applications, data processing, and the like. The internal memory <NUM> may include a program storage area and a data storage area. The program storage area may store an operating system. The program storage area may further store one or more applications (for example, gallery and contacts), and the like. The data storage area may store data (for example, a photo and a contact) created during use of the electronic device <NUM>, and the like. In addition, the internal memory <NUM> may include a high-speed random access memory, or may include a nonvolatile memory, for example, one or more magnetic disk storage devices, a flash memory device, or a universal flash storage (universal flash storage, UFS). In some other embodiments, the processor <NUM> runs the instructions stored in the internal memory <NUM> and/or the instructions stored in the memory disposed in the processor, so that the electronic device <NUM> performs the notification message preview method provided in the embodiments of this application, various function applications, and data processing.

The electronic device <NUM> may implement audio functions, for example, music playing and recording, by using the audio module <NUM>, the speaker 170A, the receiver 170B, the microphone 170C, the headset jack 170D, the application processor, and the like.

The audio module <NUM> is configured to convert digital audio information into an analog audio signal output, and is further configured to convert an analog audio input into a digital audio signal. The audio module <NUM> may be further configured to code and decode an audio signal. In some embodiments, the audio module <NUM> may be disposed in the processor <NUM>, or some function modules of the audio module <NUM> are disposed in the processor <NUM>.

The speaker 170A, also referred to as a "horn", is configured to convert an audio electrical signal into a sound signal. The electronic device <NUM> may listen to music or answer a hands-free call by using the speaker 170A.

The receiver 170B, also referred to as an "earpiece", is configured to convert an audio electrical signal into a sound signal. When the electronic device <NUM> answers a call or receives voice information, the receiver 170B may be placed near a human ear to listen to a voice.

The microphone 170C, also referred to as a "mike" or a "voice transmitter", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user may make a sound near the microphone 170C by the mouth of the user, to input the sound signal to the microphone 170C. One or more microphones 170C may be disposed in the electronic device <NUM>. In some other embodiments, two microphones 170C may be disposed in the electronic device <NUM>, to collect a sound signal and implement a noise reduction function. In some other embodiments, three, four, or more microphones 170C may alternatively be disposed in the electronic device <NUM>, to collect a sound signal, reduce a noise, identify a sound source, implement a directional recording function, and the like.

The headset jack 170D is configured to connect to a wired headset. The headset jack 170D may be the USB interface <NUM>, or a <NUM> open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (cellular telecommunications industry association of the USA, CTIA) standard interface.

The sensor module <NUM> may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor <NUM>, a fingerprint sensor <NUM>, a temperature sensor 180J, a touch sensor <NUM>, an ambient light sensor <NUM>, a bone conduction sensor <NUM>, and the like.

In addition, the electronic device may further include one or more components such as a button <NUM>, a motor <NUM>, an indicator <NUM>, and a SIM card interface <NUM>. This is not limited in the embodiments of this application.

A software system of the electronic device <NUM> may use a layered architecture, an event-driven architecture, a microkernel architecture, a micro service architecture, or a cloud architecture. In the embodiments of this application, an Android system with a layered architecture is used as an example to describe a software structure of the electronic device <NUM>.

<FIG> is a block diagram of the software structure of the electronic device <NUM> according to an embodiment of this application.

In the layered architecture, software is divided into several layers, and each layer has a clear role and task. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers: an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer from top to bottom.

The application layer may include a series of applications.

As shown in <FIG>, the applications may include applications (application, APP) such as Phone, Contacts, Camera, Gallery, Calendar, Map, Navigation, Bluetooth, Music, Video, and Messages.

In the embodiments of this application, the application package may further include systemUI, which is a core application of the Android system. Generally, the systemUI runs in the Android system as an application. That is, an APK file is generated when the systemUI module is compiled. A source code path of the systemUI is frameworks/base/packages/systemUI/, and an installation path is system/priv-app/-systemUI.

The systemUI can be used to manage a plurality of modules displayed on the electronic device, such as a status bar (status bar), a navigation bar (navigation bar), a notification panel (notification panel), recents (a recent task interface), and keyguard (a lock screen).

The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications at the application layer. The application program framework layer includes some predefined functions.

The modules in the systemUI typically reside at the application framework layer as services (services) when running. For example, when the lock screen is displayed, the systemUI can start a keyguard service to display a notification message on the lock screen. When the notification panel is displayed, the systemUI can start a systembars service to display a notification message in the notification panel.

As shown in <FIG>, the application framework layer may include a notification manager (notification manager). The notification manager enables an application to display notification information in the status bar or the notification panel. The notification information may convey a notification-type message, and may automatically disappear after being displayed for a short period of time. For example, the notification manager is configured to notify download completion, provide a message notification, and the like.

A WeChat app is used as an example. If the WeChat app running in the background receives a chat message <NUM> sent by a contact A, a notification object (notification object) may be first instantiated. For example, the notification object may include information such as a profile picture of the contact A, a name of the contact A, and content and receiving time of the chat message <NUM>. The information is used as content that needs to be displayed in a notification message of the chat message <NUM>. Further, the WeChat app may invoke a related interface (for example, a notify() interface) of the notification manager to transfer the created notification object as a parameter to the notification manager.

In addition, a notification panel service in the systemUI can listen for changes to notification objects in the notification manager. When a new notification object is detected in the notification manager, the notification panel service may generate a notification message corresponding to the chat message <NUM>. Further, the notification panel service may display the notification message in the notification panel or the lock screen by using the system application: systemUI.

In the embodiments of this application, the systemUI may display a plurality of notification messages in a form of a message group. The message group may include the plurality of notification messages. For example, a plurality of notification messages from a same application may be set as a message group. For another example, a plurality of notification messages of a same type (for example, an advertisement type or a social type) may be set as a message group.

For example, the message group may be in three display states: a collapsed state, a preview state, and an expanded state.

As shown in <FIG>, after detecting an operation performed by the user to open a notification panel, the systemUI may display a first interface <NUM>. The first interface <NUM> includes a notification panel <NUM>, the notification panel <NUM> includes a message group <NUM> of a WeChat app, and the message group <NUM> includes three notification messages from the WeChat app. In this case, the message group <NUM> is in a collapsed state. The message group <NUM> in the collapsed state means that only one notification message in the message group <NUM> is displayed on a card <NUM>, and other notification messages in the message group <NUM> are hidden. For example, still as shown in <FIG>, the card <NUM> includes only a notification message that is recently received by the WeChat app from a contact Sam. Certainly, an unread indicator <NUM> may be further set in the message group <NUM>, and the unread indicator <NUM> may indicate that there are two hidden notification messages in the message group <NUM>.

If it is detected that the user enters a first operation to the message group <NUM>, as shown in <FIG>, the systemUI may display the message group <NUM> in a preview state. The message group <NUM> in the preview state means that a plurality of notification messages in the message group <NUM> are displayed on one card (for example, a card <NUM>), and the card <NUM> includes the notification message displayed by the systemUI in the collapsed state. Still as shown in <FIG>, the card <NUM> may include one notification message that is received by the WeChat app from the contact Sam and two notification messages that are received by the WeChat app from a contact Jack. The user may quickly view the plurality of notification messages in the message group <NUM> on the card <NUM>, and the user may centrally manage the plurality of notification messages in the message group <NUM> on the card <NUM>. For example, the systemUI may display, on the card <NUM>, names of contacts, profile pictures of contacts, message content summaries, and the like corresponding to the notification messages in the message group <NUM>.

When the message group <NUM> is displayed in the preview state, if it is detected that the user enters a second operation to the message group <NUM>, as shown in <FIG>, the systemUI may display the message group <NUM> in the expanded state. The message group <NUM> in the expanded state means that each notification message in the message group <NUM> is correspondingly displayed on one card. Still as shown in <FIG>, after the message group <NUM> of the WeChat app is expanded, the systemUI may display a card <NUM> to a card <NUM>, where the card <NUM> includes one notification message from the contact Sam, the card <NUM> includes one notification message from the contact Jack, and the card <NUM> includes the other notification message from the contact Jack. The user may manage a corresponding notification message on each card, for example, expand the notification message, delete the notification message, or mark the notification message as read. In addition, detailed content such as receiving time of the corresponding notification message may be further displayed on each card.

It should be noted that a display state of the message group <NUM> may be randomly switched between the collapsed state, the preview state, and the expanded state.

For example, when the message group <NUM> is displayed in the expanded state, the user may further enter a third operation to switch the message group <NUM> from the expanded state to the collapsed state. Alternatively, when the message group <NUM> is displayed in the expanded state, the user may further enter a fourth operation to switch the message group <NUM> from the expanded state to the preview state. Alternatively, when the message group <NUM> is displayed in the preview state, the user may enter a fifth operation to switch the message group <NUM> from the preview state to the collapsed state. Alternatively, when the message group <NUM> is displayed in the collapsed state, the user may enter a sixth operation to switch the message group <NUM> from the collapsed state to the expanded state.

That is, when notification messages of a message group type are displayed, a new display state, namely, the preview state, is added between the collapsed state and the expanded state in the embodiments of this application. When the message group is in the collapsed state, the electronic device displays a content summary of only one notification message in the message group to the user. Alternatively, when the message group is in the preview state, the electronic device may display content summaries of the notification messages in the message group to the user by using the message group as a unit. Alternatively, when the message group is in the expanded state, the electronic device may display detailed content of the notification messages to the user by using each notification message as a unit.

In this way, when viewing the message group in the notification panel, the user may switch the message group to the preview state and quickly preview the plurality of notification messages in the message group without expanding each notification message in the message group to view and manage each notification message. This improves management efficiency and usage experience of the user on the message group.

Certainly, the application framework layer may further include an activity manager, a window manager, a content provider, a view system, a resource manager, an input method manager, and the like.

The activity manager can be configured to manage a life cycle of each application. An application usually runs in an operating system in a form of an activity. The activity manager can schedule an activity process of an application to manage the life cycle of each application. The window manager is configured to manage a window program. The window manager may obtain a size of a display, determine whether there is a status bar, lock a screen, take a screenshot, and the like. The content provider is configured to store and obtain data, and enable the data to be accessed by an application. The data may include a video, an image, audio, calls that are made and answered, a browsing history and a bookmark, a phone book, and the like. The view system includes visual controls such as a control for displaying a text and a control for displaying a picture. The view system may be configured to construct an application. The display interface may include one or more views. For example, a display interface including an SMS message notification icon may include a view for displaying a text and a view for displaying a picture. The resource manager provides various resources for an application, such as a localized character string, an icon, a picture, a layout file, and a video file.

The kernel library includes two parts: a function that needs to be invoked by the Java language and a kernel library of Android.

The application program layer and the application program framework layer run on the virtual machine. The virtual machine executes a Java file at the application program layer and the application program framework layer as a binary file. The virtual machine is configured to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

The system library may include a plurality of function modules, for example, a surface manager (surface manager), media libraries (Media Libraries), a three-dimensional graphics processing library (for example, OpenGL ES), and a 2D graphics engine (for example, SGL).

The surface manager is configured to manage a display subsystem, and provide fusion of 2D and 3D layers for a plurality of applications. The media library supports playback and recording in a plurality of commonly used audio and video formats, static image files, and the like. The media library may support a plurality of audio and video coding formats such as MPEG-<NUM>, H. <NUM>, MP3, AAC, AMR, JPG, and PNG.

The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and the like. This is not limited in the embodiments of this application.

For example, a mobile phone is an electronic device. The following describes in detail the notification message preview method provided in the embodiments of this application with reference to the accompanying drawings.

Generally, there may be a plurality of entrances in the mobile phone that can display a notification message. For example, as shown in <FIG>, the mobile phone may set a notification panel <NUM> (which may also be referred to as a message center, a notification panel, or the like) in a drop-down menu <NUM>. The mobile phone may display notification messages of applications in the notification panel <NUM>. For another example, as shown in <FIG>, the mobile phone may display the notification messages of the applications on a lock screen <NUM>. Alternatively, as shown in <FIG>, the mobile phone may further display the notification messages of the applications in a menu <NUM> on a leftmost screen. Display positions of the notification messages are not limited in the embodiments of this application.

The notification messages displayed in the notification panel <NUM> are used as examples. When the mobile phone receives the plurality of notification messages, the plurality of notification messages may be displayed in the notification panel <NUM> in a form of a message group. For example, the mobile phone may set a plurality of notification messages of a same application as a message group. Alternatively, the mobile phone may set notification messages of a same type as a message group. For example, the mobile phone may set all notification messages of unread chat messages as a message group, and set all notification messages of version updates as another message group.

As shown in <FIG>, after receiving a plurality of notification messages from a WeChat app, the mobile phone may display a message group <NUM> of the WeChat app in the notification panel <NUM>. In addition, the notification panel <NUM> further includes a notification message <NUM> of a Weather app and a notification message <NUM> of a Phone app.

In the embodiments of this application, when the message group <NUM> is displayed, the message group <NUM> may be in three display states: a collapsed state, a preview state, or an expanded state. The mobile phone can switch the message group between the three display states.

Still as shown in <FIG>, the mobile phone may display the message group <NUM> in the collapsed state by default when the user opens the notification panel <NUM>. When the message group <NUM> is in the collapsed state, the mobile phone may display only one notification message in the message group <NUM> on a card <NUM>. For example, the mobile phone may display, on the card <NUM>, a notification message <NUM> recently received by the WeChat app from a contact (for example, Sam). The mobile phone may further display a profile picture of the contact Sam corresponding to the notification message <NUM>, receiving time of the notification message <NUM>, and the like. In addition, the mobile phone may further display, on the card <NUM>, a quantity of remaining notification messages that are hidden in the message group <NUM>. For example, in addition to the notification message <NUM> from the contact Sam, the message group <NUM> shown in <FIG> further includes four remaining notification messages that are hidden.

It should be noted that, when displaying the notification message <NUM> on the card <NUM>, the mobile phone may display, in the notification message <NUM>, all chat content sent by the contact Sam, or some chat content sent by the contact Sam. For example, if the chat content sent by the contact Sam in the WeChat app is "Let's play ball tonight. I'll wait for you on the basketball court", the mobile phone may display the first <NUM> characters of the chat content (that is, "Let's play ball tonight") in the notification message <NUM>.

When the message group <NUM> is in the collapsed state, the user may manage the message group <NUM> by using the message group <NUM> as a unit.

For example, as shown in <FIG>, the user may enter a swipe right operation to the card <NUM> on which the message group <NUM> is located. As shown in <FIG>, after detecting the swipe right operation performed by the user on the card <NUM>, the mobile phone may delete the message group <NUM> in the notification panel <NUM>. In this case, the message group <NUM> is no longer displayed in the notification panel <NUM>. It may be understood that the user deletes only five notification messages from the WeChat app in the notification panel <NUM>, and the user may still find five unread chat messages corresponding to the five notification messages in the WeChat app.

For another example, as shown in <FIG>, the user may enter a swipe left operation to the card <NUM> on which the message group <NUM> is located. After detecting the swipe left operation performed by the user on the card <NUM>, the mobile phone may display a management button <NUM>. If the mobile phone detects that the user selects the management button <NUM>, as shown in <FIG>, the mobile phone may display a management menu <NUM> of the message group <NUM>. The management menu <NUM> may include an option of deleting the message group <NUM>, an option of marking the message group <NUM> as read, an option of expanding the message group <NUM>, and the like. That is, in the collapsed state, the user may manage, by using the management menu <NUM>, the plurality of notification messages in the message group <NUM> by using the message group <NUM> as a unit.

Certainly, if the mobile phone detects that the user taps the management button <NUM>, the mobile phone may also display a setting interface for notification management in a Settings app. The user may manually set, in the setting interface, options related to the notification messages, such as display positions, display modes, and display rules of the notification messages in the notification panel.

In some embodiments, when the message group <NUM> is in the collapsed state, in response to a first operation performed by the user on the message group <NUM>, the mobile phone may switch the message group <NUM> from the collapsed state to the preview state. For example, the first operation may be any gesture such as a touch and hold operation, a double-tap operation, a press operation, or a knock operation. This is not limited in the embodiments of this application.

For example, the first operation is the touch and hold operation. As shown in <FIG>, the user may enter the touch and hold operation to the message group <NUM> (namely, the card <NUM>) in the collapsed state. After the mobile phone detects the touch and hold operation performed by the user on the card <NUM>, as shown in <FIG>, the mobile phone may expand the card <NUM> in the notification panel <NUM>, and centrally display the plurality of notification messages in the message group <NUM> on the expanded card <NUM>. The expanded card <NUM> includes the notification message <NUM> displayed when the card <NUM> is collapsed. For example, the mobile phone may display, on the expanded card <NUM>, all notification messages (for example, a notification message <NUM> to a notification message <NUM>) in the message group <NUM> from the WeChat app. In this case, the message group <NUM> is in the preview state. Still as shown in <FIG>, when expanding the card <NUM>, the mobile phone may simultaneously move a notification message <NUM> of the Weather app and a notification message <NUM> of the Phone app downwards. That is, in the preview state, the card <NUM> on which the message group <NUM> is located and cards on which other notification messages are located may be located in a same interface.

When the message group <NUM> is in the preview state, still as shown in <FIG>, the user may preview, on the card <NUM>, the notification message <NUM> and the notification message <NUM> from the contact Sam, the notification message <NUM> from the contact Jack, and the notification message <NUM> and the notification message <NUM> from a contact Alice, namely, the five notification messages included in the message group <NUM>. For example, the mobile phone may display the five notification messages on the card <NUM> from earliest to latest. Certainly, the mobile phone may alternatively sort the five notification messages based on a category of the contacts or content of the notification messages. This is not limited in the embodiments of this application.

For example, when the message group <NUM> is in the preview state, to save display space, the mobile phone may display a content summary of each notification message on the card <NUM>. For example, the mobile phone may display content in the first line of each of the notification messages <NUM> to <NUM>. That is, the notification content displayed in the notification message <NUM> to the notification message <NUM> may be incomplete. Certainly, the mobile phone may further display information such as a profile picture and a nickname of a contact corresponding to each notification message.

In some other embodiments, as shown in <FIG> and <FIG>, after the mobile phone detects the touch and hold operation performed by the user on the card <NUM>, the mobile phone may recreate a card <NUM> over the notification panel <NUM>, and display, on the card <NUM>, the five notification messages in the message group <NUM> from the WeChat app. In this case, the notification panel <NUM> is located in an interface under the card <NUM>, and content and a position of each card in the notification panel <NUM> do not change. The card <NUM> is similar to the card <NUM> shown in <FIG>. In this case, the message group <NUM> is also in the preview state.

For example, when the message group <NUM> is in the preview state shown by the card <NUM>, the mobile phone may dim, blur, or hide the display interface (namely, the drop-down menu in which the notification panel <NUM> is located) under the card <NUM>. This prompts the user to focus on reading each notification message on the card <NUM>.

In other words, the embodiments of this application provide two display modes of the message group <NUM> in the preview state. Certainly, a person skilled in the art may set the display modes of the message group in the preview state based on actual experience or an actual application scenario. This is not limited in the embodiments of this application.

It can be learned that, when the message group is in the collapsed state, by using one touch and hold operation, the user may switch the message group from the collapsed state to the preview state. In the preview state, the mobile phone can display the content of the plurality of notification messages in the message group to the user. This facilitates the user to quickly preview the notification messages in the message group and simplifies an operation process of viewing related notification messages in the message group by the user.

The expanded card <NUM> is still used as an example. After the plurality of notification messages in the message group <NUM> are displayed on the card <NUM> by using the touch and hold operation that is performed by the user, the user may continue to perform the touch and hold operation. As shown in <FIG>, before detecting that the finger of the user leaves the screen of the mobile phone (that is, the touch and hold operation ends), the mobile phone may continuously display the message group <NUM> in the preview state. After detecting that the finger of the user leaves the screen of the mobile phone (that is, the touch and hold operation ends), as shown in <FIG>, the mobile phone may switch the message group <NUM> back to the collapsed state. In this way, by using only one touch and hold operation, the user may trigger the mobile phone to switch the message group <NUM> from the collapsed state to the preview state, and switch the message group <NUM> from the preview state back to the collapsed state. This simplifies an operation process of switching the message group between the plurality of display states by the user.

In addition, the expanded card <NUM> is still used as an example. A size of the expanded card <NUM> may be dynamically set according to a quantity of notification messages in the message group <NUM>. Alternatively, the mobile phone may set the expanded card <NUM> to a fixed size. When the size of the expanded card <NUM> is fixed, as shown in <FIG> and <FIG>, if the quantity of notification messages in the message group <NUM> is relatively large, all notification messages cannot be completely displayed on the card <NUM>. In this case, while performing the touch and hold operation, the user may further enter a swipe operation by using another finger or a stylus. In this case, in response to the swipe operation, the mobile phone may display, on the card <NUM> in scrolling mode, other notification messages in the message group <NUM> that are not displayed.

Alternatively, when the notification messages in the message group <NUM> cannot be completely displayed on the expanded card <NUM>, the mobile phone may automatically display the notification messages in the message group <NUM> in scrolling mode on the card <NUM>. This is not limited in the embodiments of this application. Alternatively, the mobile phone may set a specific policy to use a plurality of notification messages in the message group <NUM> as notification messages that need to be displayed in the preview state. For example, the mobile phone may set to use a plurality of notification messages that are received within the last hour as notification messages that need to be displayed in the preview state. In this case, after detecting that the user enters the touch and hold operation to the message group <NUM> that is in the collapsed state, the mobile phone may expand the card <NUM>, and display, on the card <NUM>, the plurality of notification messages that are received within the latest hour.

In some embodiments, when the message group <NUM> is in the preview state, the user may still manage the notification messages in the message group <NUM> by using the message group <NUM> as a unit.

For example, as shown in <FIG>, after the plurality of notification messages in the message group <NUM> are displayed on the card <NUM> by using the touch and hold operation that is performed by the user, the finger of the user does not need to leave the screen, and may continue to enter a swipe right operation to the expanded card <NUM>. As shown in <FIG>, after detecting that the user swipes the expanded card <NUM> rightwards, the mobile phone may delete the card <NUM> in the notification panel <NUM>. In this case, all the notification messages on the card <NUM> are deleted.

For another example, as shown in <FIG>, after the plurality of notification messages in the message group <NUM> are displayed on the card <NUM> by using the touch and hold operation that is performed by the user, the finger of the user does not need to leave the screen, and may continue to enter a swipe left operation to the expanded card <NUM>. After detecting that the user swipes the expanded card <NUM> leftwards, the mobile phone may display a management button <NUM>. If the mobile phone detects that the user selects the management button <NUM>, as shown in <FIG>, the mobile phone may display a management menu <NUM> of the message group <NUM>. The management menu <NUM> may include an option of deleting the message group <NUM>, an option of marking the message group <NUM> as read, an option of expanding the message group <NUM>, and the like. That is, in the preview state, the user may manage, by using the management menu <NUM>, the plurality of notification messages in the message group <NUM> by using the message group <NUM> as a unit.

In some other embodiments, when the message group <NUM> is in the preview state, the user may further perform an operation on one notification message in the message group <NUM>.

For example, as shown in <FIG>, after the plurality of notification messages in the message group <NUM> are displayed on the card <NUM> by using the touch and hold operation that is performed by the user, the finger of the user does not need to leave the screen. If the mobile phone detects that time spent by the finger of the user on one notification message on the card <NUM> exceeds preset time. For example, after the mobile phone detects that the finger of the user stays on the notification message <NUM> for more than <NUM> seconds, as shown in <FIG>, the mobile phone may display detailed content <NUM> of the notification message <NUM>. For example, the mobile phone may expand the notification message <NUM> on the card <NUM>, to display the detailed content <NUM> of the notification message <NUM>. For another example, the mobile phone may also create a card on the card <NUM> to display the detailed content <NUM> of the notification message <NUM>. This is not limited in the embodiments of this application.

Alternatively, after the mobile phone displays the plurality of notification messages in the message group <NUM> on the card <NUM>, if the mobile phone detects that the finger of the user performs a press operation on one notification message on the card <NUM>, as shown in <FIG>, the mobile phone may also display the detailed content <NUM> of the notification message <NUM>. That is, after switching the message group to the preview state for previewing, the user may further select one notification message in the message group to view detailed content of this notification message. In this way, the user may quickly view detailed content of one notification message in the message group without expanding the entire message group.

In some embodiments, when the message group <NUM> is in the preview state, in response to a second operation performed by the user on the message group <NUM>, the mobile phone may switch the message group <NUM> from the preview state to the expanded state. The second operation may be any operation different from the first operation.

For example, the second operation may be a swipe up operation or a swipe down operation. The expanded card <NUM> is still used as an example. After the plurality of notification messages in the message group <NUM> are displayed on the card <NUM> by using the touch and hold operation that is performed by the user, if the mobile phone detects that the finger of the user continues to touch and hold the screen of the mobile phone, the mobile phone may continue to display the expanded card <NUM>. After the card <NUM> is expanded, as shown in <FIG>, if the mobile phone detects that the finger of the user enters the swipe down operation on the screen of the mobile phone, the mobile phone may switch the message group <NUM> from the preview state to the expanded state.

For example, as shown in <FIG>, when the message group <NUM> is in the expanded state, the mobile phone may display, in the notification panel <NUM>, each notification message in the message group <NUM> in a form of a card. That the message group <NUM> includes five notification messages from the WeChat app is still used as an example. After expanding the message group <NUM>, the mobile phone may delete the card <NUM> that is displayed when the message group <NUM> is in the expanded state, and generate a card <NUM> to a card <NUM>. The mobile phone may display each notification message in the message group <NUM> on each of the card <NUM> to the card <NUM>. In addition, the mobile phone may display detailed content of each notification message on a corresponding card. For example, the detailed content on each card may include specific time at which a contact sends a chat message, specific content of a chat message, a name and a profile picture of a contact, and the like.

It can be learned that, when the message group <NUM> is in the collapsed state, by using the touch and hold operation, the user may trigger the mobile phone to switch the message group <NUM> from the collapsed state to the preview state. Further, the finger of the user does not need to leave the screen of the mobile phone, and may continue to enter a swipe down operation to trigger the mobile phone to switch the message group <NUM> from the preview state to the expanded state. In this case, for the user, in an operation process from touching the screen of the mobile phone to leaving the screen of the mobile phone by the finger, the user may control the mobile phone to switch the message group <NUM> in the three display states: the collapsed state, the preview state, and the expanded state. This simplifies an operation process of switching the message group between the plurality of display states by the user, and improves user experience.

When the message group <NUM> is in the expanded state, the mobile phone may manage the plurality of notification messages in the message group <NUM> by using each notification message as a unit.

For example, as shown in <FIG>, after the message group <NUM> is expanded, each notification message in the message group may be displayed on each of the card <NUM> to the card <NUM>. If the mobile phone detects that the user swipes the card <NUM> rightwards, the mobile phone may delete the card <NUM> and the notification message on the card <NUM>. In this case, the remaining four notification messages in the message group <NUM> are still displayed on the card <NUM> to the card <NUM>.

For another example, as shown in <FIG>, if the mobile phone detects that the user swipes the card <NUM> leftwards, the mobile phone may display a management button <NUM> of the card <NUM>. If the mobile phone detects that the user selects the management button <NUM>, the mobile phone may display a management menu <NUM> corresponding to the card <NUM>. The management menu <NUM> may include an option of deleting the card <NUM>, an option of marking the notification message on the card <NUM> as read, and the like. That is, in the expanded state, the user may manage each notification message in the message group <NUM> by using the management menu <NUM> of each notification message.

In addition, the user may switch the message group <NUM> from the expanded state to the collapsed state or the preview state. For example, as shown in <FIG>, after the mobile phone expands the message group <NUM>, each notification message in the group is displayed on each of the card <NUM> to the card <NUM>. The mobile phone may display a collapse button <NUM> near the card <NUM> that is located at the top (or the card <NUM> that is located at the bottom). If the mobile phone detects that the user touches and holds the collapse button <NUM>, the mobile phone may switch the message group <NUM> to the preview state. In this case, the mobile phone may display the message group <NUM> as the card <NUM> shown in <FIG> or the card <NUM> shown in <FIG>.

Correspondingly, if the mobile phone detects that the user taps the collapse button <NUM>, as shown in <FIG>, the mobile phone may switch the message group <NUM> to the collapsed state. In this case, the mobile phone displays only one notification message in the message group <NUM>. Similarly, as shown in <FIG>, when the message group <NUM> is in the collapsed state, the mobile phone may set an expand button <NUM> corresponding to the message group <NUM>. If the mobile phone detects that the user taps the expand button <NUM>, the mobile phone may switch the message group <NUM> to the expanded state. In this case, the mobile phone may display the message group <NUM> as the interface shown in <FIG>.

It can be learned that, when the mobile phone displays the notification messages of the message group type, a display mode, namely, the preview state, is added between the collapsed state and the expanded state. In the preview state, the mobile phone can display the plurality of notification messages in the message group to the user, so that the user can quickly preview the notification messages in the message group. In addition, in the preview state, the user may further manage all the notification messages in the entire message group at a granularity of a message group. This improves management efficiency and usage experience of the user on the message group.

The embodiments of this application disclose a chip system. As shown in <FIG>, the chip system includes at least one processor <NUM> and at least one interface circuit <NUM>. The processor <NUM> and the interface circuit <NUM> may be interconnected through a line. For example, the interface circuit <NUM> may be configured to receive a signal from another apparatus (for example, a memory). For another example, the interface circuit <NUM> may be configured to send a signal to another apparatus (for example, the processor <NUM>). For example, the interface circuit <NUM> may read instructions stored in the memory, and send the instructions to the processor <NUM>. When the instructions are executed by the processor <NUM>, the electronic device is enabled to perform the steps in the foregoing embodiments. Certainly, the chip system may further include another discrete device. This is not specifically limited in the embodiments of this application.

The embodiments of this application disclose an electronic device, including a processor, and a memory, an input device, and an output device that are connected to the processor. The input device and the output device may be integrated into one device. For example, a touch-sensitive surface may be used as the input device, a display may be used as the output device, and the touch-sensitive surface and the display may be integrated into a touchscreen.

In this case, as shown in <FIG>, the electronic device may include a touchscreen <NUM>. The touchscreen <NUM> includes a touch-sensitive surface <NUM>, a display <NUM>, one or more processors <NUM>, a memory <NUM>, one or more application programs (not shown), and one or more computer programs <NUM>. The foregoing devices may be connected through one or more communications buses <NUM>. The one or more computer programs <NUM> are stored in the memory <NUM> and are configured to be executed by the one or more processors <NUM>. The one or more computer programs <NUM> include instructions, and the instructions may be used to perform the steps in the foregoing embodiments. All related content of the steps in the foregoing method embodiments may be cited in function descriptions of corresponding physical devices.

For example, the processor <NUM> may be specifically the processor <NUM> shown in <FIG>, the memory <NUM> may be specifically the internal memory <NUM> and/or the external memory <NUM> shown in <FIG>, and the display <NUM> may be specifically the display <NUM> shown in <FIG>, and the touch-sensitive surface <NUM> may be specifically the touch sensor <NUM> in the sensor module <NUM> shown in <FIG>. This is not limited in the embodiments of this application.

The foregoing descriptions about implementations allow a person skilled in the art to understand that, for the purpose of convenient and brief description, division of the foregoing function modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or some of the functions described above. For a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.

Function units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

Claim 1:
A notification message preview method, comprising:
displaying, by an electronic device (<NUM>), one notification message in a message group (<NUM>) on a first card (<NUM>), wherein the message group (<NUM>) comprises N notification messages (<NUM>-<NUM>), and other notification messages in the message group (<NUM>) are hidden;
receiving, by the electronic device (<NUM>), a touch and hold operation that is entered by a user to the first card (<NUM>); and
in response to the touch and hold operation, displaying, by the electronic device (<NUM>), M notification messages in the message group (<NUM>) on a second card (<NUM>), wherein the M notification messages are M of the N notification messages (<NUM>-<NUM>), and the M notification messages comprise the one notification message, wherein <NUM> < M ≤ N, and both M and N are integers;
detecting, by the electronic device (<NUM>), that a finger of the user does not leave a touchscreen (<NUM>) after the user performs the touch and hold operation, and detecting that the user enters a first swipe operation to the second card (<NUM>); and displaying, by the electronic device (<NUM>), the N notification messages (<NUM>-<NUM>) on the second card (<NUM>) in scrolling mode;
detecting, by the electronic device (<NUM>), that a finger of the user leaves a touchscreen (<NUM>) after the user performs the touch and hold operation; and redisplaying, by the electronic device (<NUM>), the one notification message in the message group on the first card (<NUM>).