CN112947808B - Unread message display method and device and electronic equipment - Google Patents

Unread message display method and device and electronic equipment Download PDF

Info

Publication number
CN112947808B
CN112947808B CN202110120413.3A CN202110120413A CN112947808B CN 112947808 B CN112947808 B CN 112947808B CN 202110120413 A CN202110120413 A CN 202110120413A CN 112947808 B CN112947808 B CN 112947808B
Authority
CN
China
Prior art keywords
icon
background
input
application
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110120413.3A
Other languages
Chinese (zh)
Other versions
CN112947808A (en
Inventor
李玉华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110120413.3A priority Critical patent/CN112947808B/en
Publication of CN112947808A publication Critical patent/CN112947808A/en
Priority to PCT/CN2022/073203 priority patent/WO2022161279A1/en
Application granted granted Critical
Publication of CN112947808B publication Critical patent/CN112947808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method and a device for displaying unread messages and electronic equipment, belongs to the technical field of communication, and can solve the problem of large waste of display space of a display screen of the electronic equipment. The method for displaying the unread message comprises the following steps: receiving a first message or a first input under the condition that a first application icon is displayed; the first application icon includes an icon background and an icon body, the icon background including a first background portion; updating the area ratio of the first background part in the icon background; the area ratio of the first background portion in the icon background is associated with the number of unread messages of a target application program, the target application program corresponding to the first application icon. The method for displaying the unread message provided by the embodiment of the application can be applied to a process that the electronic equipment prompts the unread message in the application program to the user.

Description

Unread message display method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a method and a device for displaying unread messages and electronic equipment.
Background
Typically, when an electronic device displays an application icon of an application in the electronic device, the electronic device may prompt the user for the number of unread messages of the application by displaying a corner mark.
Specifically, the electronic device may display a numerical corner mark on an icon of the application program, where the numerical corner mark corresponds to a number for indicating the number of unread messages of the application program. Thus, when a message is received through the application program, the electronic device can increase the number corresponding to the digital corner mark according to the number of the message, or after the user views the unread message in the application program, the electronic device can decrease the number corresponding to the digital corner mark according to the number of the unread message viewed by the user, so as to prompt the user of the number of the unread message of the application program.
However, since the electronic device displays the digital corner mark on the icon of the application, the area of the display space corresponding to the icon of the application may be increased, and thus, the display space of the display screen of the electronic device may be wasted greatly.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for displaying unread messages and electronic equipment, which can solve the problem of larger waste of display space of a display screen of the electronic equipment.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a method for displaying an unread message, where the method includes: receiving a first message or a first input under the condition that a first application icon is displayed; the first application icon includes an icon background and an icon body, the icon background including a first background portion; updating the area ratio of the first background part in the icon background; the area ratio of the first background portion in the icon background is associated with the number of unread messages of a target application program, the target application program corresponding to the first application icon.
In a second aspect, an embodiment of the present application provides a display apparatus for an unread message, where the display apparatus for an unread message: a receiving module and an updating module. The receiving module is used for receiving a first message or a first input under the condition that the first application icon is displayed; the first application icon includes an icon background and an icon body, the icon background including a first background portion. An updating module for updating the area ratio of the first background part in the icon background; the area ratio of the first background portion in the icon background is associated with the number of unread messages of a target application program, the target application program corresponding to the first application icon.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, under the condition that the electronic device displays the first application icon, the electronic device can update the area ratio of the first background part of the icon background in the first application icon according to the received first message or the first input, and the area ratio of the first background part in the icon background is related to the number of unread messages of the target application program corresponding to the first application icon. The area ratio of the first background part of the first application icon in the icon background is related to the number of unread messages of the target application program corresponding to the first application icon; in this way, in the case that the electronic device receives the message through the target application program, the electronic device may update the area ratio of the first background portion of the icon background in the icon background based on the number of unread messages of the target application program after receiving the message, or in the case that the electronic device receives the first input, the electronic device may update the area ratio of the first background portion of the icon background in the icon background based on the number of unread messages of the target application program after receiving the first input, so as to prompt the user about the number of unread messages of the target application program, without displaying the digital corner mark on the first application icon, thereby avoiding an increase in the area of the display space corresponding to the first application icon, and thus saving the display space of the display screen of the electronic device.
Drawings
FIG. 1 is a schematic diagram of a method for displaying an unread message according to an embodiment of the present application;
Fig. 2 is an example schematic diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a second example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 4 is a third exemplary diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 5 is a second diagram illustrating a method for displaying an unread message according to an embodiment of the present application;
FIG. 6 is a third diagram illustrating a method for displaying an unread message according to an embodiment of the present application;
FIG. 7 is a diagram illustrating an example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a method for displaying an unread message according to an embodiment of the present application;
FIG. 9 is a fifth exemplary diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 10 is a diagram illustrating an example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 11 is a diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 12 is a diagram illustrating an example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 13 is a fifth schematic diagram of a method for displaying unread messages according to an embodiment of the present application;
FIG. 14 is a diagram illustrating a ninth example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 15 is a schematic diagram of a display device for unread messages according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 17 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method for displaying the unread message provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The method for displaying the unread message provided by the embodiment of the application can be applied to the scene that the electronic equipment prompts the unread message in the application program to the user.
It is assumed that the electronic device receives N messages through the application 1, where N is a positive integer, and in the related art, the electronic device may display a numerical corner mark N on an icon of the application 1, where the numerical corner mark N corresponds to a number (i.e., N) for indicating the number of unread messages of the application 1. Thus, when receiving M messages, the electronic device may increase the number corresponding to the number corner mark N according to the number M of the messages, that is, the increased number corner mark is n+m, or after the user views M messages in the application 1, the electronic device may decrease the number corresponding to the number corner mark N according to the number M of unread messages that the user views, that is, the decreased number corner mark is N-M, so as to prompt the user of the number of unread messages of the application. However, since the electronic device displays the numerical corner mark N on the icon of the application 1 to present the number of unread messages of the application 1 to the user, the area of the display space corresponding to the icon of the application 1 may be increased.
However, in the embodiment of the present application, the icon of the application 1 displayed by the electronic device includes an icon background and an icon body, the icon background includes a background portion 1 therein, and the area ratio of the background portion 1 in the icon background is associated with the number of unread messages of the application 1. Therefore, when the electronic device receives M messages through the application 1, the electronic device may update the area ratio of the background portion 1 of the icon background in the icon background based on the number of unread messages of the application 1 after receiving the messages, or in the case that the electronic device receives the first input, the electronic device may update the area ratio of the background portion 1 of the icon background in the icon background based on the number of unread messages of the application 1 after receiving the first input, so as to prompt the user of the number of unread messages of the application 1 without displaying a digital corner mark on the icon of the application 1, so that an increase in the area of the display space corresponding to the icon of the application 1 can be avoided.
Fig. 1 shows a flowchart of a method for displaying an unread message according to an embodiment of the present application. As shown in fig. 1, the method for displaying an unread message according to the embodiment of the present application may include the following steps 101 and 102.
Step 101, in the case of displaying a first application icon, a first message or a first input is received.
Optionally, in the embodiment of the present application, in a case where the target page is displayed and the target page includes the first application icon, the display device of the unread message receives the first message or the first input.
Optionally, in the embodiment of the present application, when a click input of an application icon of the "set" application by a user is detected, the display device of the unread message may display a "set" interface, where the "set" interface includes an "unread notification water droplet reminding mode" option, so that when a selection input of the "unread notification water droplet reminding mode" option by the user is detected, the display device of the unread message may turn on the "unread notification water droplet reminding mode" function. Then, if the user input to the display device of the unread message (for example, input to the Home key) is detected while the display device of the unread message is in the unlocked state, the display device of the unread message may display a target page, where the target page includes the first application icon.
Optionally, in an embodiment of the present application, the target page may be: one page of the desktop of the display device that does not read the message. For example: the first page of the desktop.
In an embodiment of the present application, the first application icon includes an icon background and an icon body, where the icon background includes a first background portion, and an area ratio of the first background portion in the icon background is related to a number of unread messages of a target application program, and the target application program corresponds to the first application icon.
Optionally, in an embodiment of the present application, the icon background may specifically be: background color area of the first application icon. The icon main body may specifically be: a brand (logotype, logo), name, etc. of the target application indicated by the first application icon.
Further optionally, in an embodiment of the present application, a display level corresponding to the icon main body is located above a display level corresponding to the icon background.
Further optionally, in the embodiment of the present application, the display device for the unread message may first establish a preset coordinate axis according to a pixel point of the target page, and obtain a coordinate point of the first application icon based on the preset coordinate axis, so that the display device for the unread message may obtain a background color feature, such as an RGB color value, of the first application icon based on the coordinate point of the first application icon, and separate the first application icon by using an image separation algorithm based on the background color feature of the first application icon, so as to obtain an icon background and an icon main body.
It should be noted that, for the description of the image separation algorithm, reference may be made to the specific description in the related art, and the embodiments of the present application are not repeated here.
The preset coordinate axis may specifically be: and taking the lower left corner of the display screen as the origin of the coordinate axis, taking the left edge line of the display screen as the Y axis, and taking the lower edge line of the display screen as the coordinate axis of the X axis. The coordinate point of the first application icon may specifically be a coordinate point corresponding to a midpoint of a lower edge line of the first application icon.
Optionally, in an embodiment of the present application, the display parameter of the first background portion is different from the display parameters of other background portions. Wherein, this other background part is: a background portion of the icon background other than the first background portion; the display parameters may include at least one of: transparency, color, brightness, etc.
For example, fig. 2 shows a schematic diagram of an application icon in an embodiment of the present application. As shown in fig. 2, the first application icon 10 includes an icon background 11 and an icon main body 12, and a display level corresponding to the icon main body 12 is located above a display level corresponding to the icon background 11. The icon background 11 includes a first background portion 13 (illustrated by a hatched area in the figure), and the display parameters of the first background portion 13 are different from the display parameters (e.g., transparency) of the other background portions 14.
It will be appreciated that the area ratio of the first background portion in the icon background is used to characterize: the number of unread messages for the target application.
Optionally, in the embodiment of the present application, P graduation lines may be further disposed on one edge line (for example, a right edge line) of the icon background of the first application icon. Wherein, the number of graduation marks P is: the number of unread messages corresponding to each tick mark (i.e., unread messages in the application presence indicated by the first application icon) determined based on a certain threshold (e.g., a preset threshold in the embodiments described below) is: based on a certain threshold value, e.g. a preset threshold value in the embodiments described below.
For example, in connection with fig. 2, as shown in fig. 3, P graduation marks 16 are further disposed on one edge line (for example, the right edge line 15) of the first application icon 10, and each graduation mark corresponds to the number of unread messages.
It will be appreciated that the user can estimate the number of unread messages for the target application based on the first background portion, and the P tick marks.
Optionally, in an embodiment of the present application, the display device of the unread message may receive the first message through the target application.
In the embodiment of the present application, the display device for triggering the unread message by the first input updates the area ratio of the first background portion in the icon background.
Optionally, in an embodiment of the present application, the first input may be: the user toggles and shakes the input to the display device for unread messages.
It should be noted that, the above "flip and shake input" can be understood as: the user turns the display of the unread message over a certain angle, for example 180 °, and shakes the display of the unread message for another angle.
Further optionally, in an embodiment of the present application, the first input may specifically be: the user turns the display device of the unread message over a certain angle on the first plane, and then shakes the display device of the unread message for another angle on the first plane.
Further alternatively, in an embodiment of the present application, the first plane may specifically be: the plane of the display screen of the display device of the unread message.
Step 102, updating the area ratio of the first background part in the icon background.
In the embodiment of the present application, the area ratio of the first background portion in the icon background is related to the number of unread messages of the target application program, where the target application program corresponds to the first application icon.
Optionally, in the embodiment of the present application, in a case where the display device of the unread message receives the first message, the display device of the unread message may adjust an area ratio of the first background portion in the icon background to update the area ratio of the first background portion in the icon background, and increase the number of unread messages of the target application program.
Further optionally, in the embodiment of the present application, when the display device of the unread message receives the first message through the target application, if the display device of the unread message does not process the first message, the display device of the unread message may increase the area ratio of the first background portion in the icon background, so as to update the area ratio of the first background portion in the icon background, and adopt a preset prompting mode to prompt the unread message to the user.
Specifically, in the embodiment of the present application, the preset prompting manner may specifically be: text prompting mode, control prompting mode, animation prompting mode, etc.
It should be noted that, the "text prompting mode" can be understood as follows: the display device of the unread message may display prompt text to prompt the user. The "control prompting mode" can be understood as follows: the display of unread messages may display a prompt control to prompt the user. The above "animation prompt mode" can be understood as: the display device of the unread message may display a prompt animation to prompt the user.
Optionally, in the embodiment of the present application, in a case where the display device of the unread message receives the first input, the display device of the unread message may adjust an area ratio of the first background portion in the icon background to update the area ratio of the first background portion in the icon background, and mark a certain number of unread messages in the target application program as the read messages.
Further alternatively, in the embodiment of the present application, in the case where the display device of the unread message receives the first input, the display device of the unread message may determine a certain number corresponding to the input parameter according to the input parameter of the first input, and based on the certain number, adjust an area ratio of the first background portion in the icon background, and mark a certain number of unread messages in the target application as the read messages.
Specifically, in the embodiment of the present application, the input parameters may include at least one of the following: input duration, input trajectory, input direction, etc.
Specifically, in the embodiment of the present application, the display device for unread messages may sort the unread messages in the target application program according to the time when the messages are received from near to far, and mark a certain number of unread messages in the sorted unread messages as read messages.
In the embodiment of the application, under the condition of displaying the first application icon, if the display device of the unread message receives the first message through the target application program indicated by the first application icon, the display device of the unread message can increase the area ratio of the first background part in the icon background so as to prompt the number of the unread messages of the target application program to the user. Or in the case of displaying the first application icon, if the display device of the unread message receives the first input of the user, the display device of the unread message may adjust the area ratio of the first background portion in the icon background to cancel the number of unread messages prompting the target application program.
According to the method for displaying the unread message, under the condition that the first application icon is displayed by the display device of the unread message, the display device of the unread message can update the area ratio of the first background part of the icon background in the first application icon according to the received first message or the first input, and the area ratio of the first background part in the icon background is related to the number of the unread messages of the target application program corresponding to the first application icon. The area ratio of the first background part of the first application icon in the icon background is related to the number of unread messages of the target application program corresponding to the first application icon; in this way, in the case that the display device of the unread message receives the message through the target application program, the display device of the unread message may update the area ratio of the first background portion of the icon background in the icon background based on the number of the unread messages of the target application program after receiving the message, or in the case that the display device of the unread message receives the first input, the display device of the unread message may update the area ratio of the first background portion of the icon background in the icon background based on the number of the unread messages of the target application program after receiving the first input, so as to prompt the user of the number of the unread messages of the target application program, without displaying the digital corner mark on the first application icon, thereby avoiding the increase of the area of the display space corresponding to the first application icon, and thus saving the display space of the display screen of the display device of the unread message.
The display means of the unread message will be illustrated below as to how the first background portion of the first application icon is displayed when the message is received by the target application.
Optionally, in the embodiment of the present application, before the step 101, the method for displaying an unread message provided in the embodiment of the present application may further include the following steps 201 and 202.
Step 201, in the case of displaying the first application icon, in the case of receiving K unread messages through the target application program, reducing the transparency value of the icon background of the first application icon.
In the embodiment of the application, K is a positive integer.
In the embodiment of the application, before the display device of the unread message receives K unread messages through the target application program, the unread messages do not exist in the first application.
Further optionally, in the embodiment of the present application, when detecting the selection input of the "unread notification water drop alert mode" option by the user, the display device of the unread message may start the "unread notification water drop alert mode" function, and reduce the transparency value of the icon background of the first application icon when receiving K unread messages through the target application.
Further optionally, in the embodiment of the present application, in the case that K unread messages are received, the display device for the unread messages may identify application names corresponding to the K unread messages through a system background to determine an application program indicated by the application names (i.e., a target application program), so that the display device for the unread messages may determine, according to a coordinate point of the first application icon, a position of the first application icon, so as to reduce a transparency value of an icon background of the first application icon.
Further optionally, in the embodiment of the present application, the display device of the unread message may adjust the current transparency value of the icon background of the first application icon to a target transparency value, so as to reduce the transparency value of the icon background of the first application icon.
It is understood that the target transparency value is less than the current transparency value of the icon background of the first application icon.
Further alternatively, in the embodiment of the present application, the target transparency value may be a transparency value preset by a user in a display device of an unread message.
For example, after the display device of the unread message starts the "unread notification water drop reminding mode" function, the display device of the unread message may display a transparency setting control, where the transparency setting control includes an adjustment control and at least one adjustment node, and each adjustment node corresponds to one transparency value, so that a user may drag and input the adjustment control and one adjustment node, so that the display device of the unread message may determine one transparency value corresponding to the one adjustment node as the target transparency value.
For example, a mobile phone will be described as an example of a display device for unread messages. As shown in fig. 4 (a), after the handset turns on the "unread notification drop alert mode" function, the handset may display a transparency setting control including an adjustment control 17 and at least one adjustment node (e.g., adjustment node 18, adjustment node 19, and adjustment node 20), the adjustment node 18 corresponding to one transparency value (e.g., 10%), the adjustment node 19 corresponding to another transparency value (e.g., 30%), and the adjustment node 20 corresponding to yet another transparency value (e.g., 100%), so that a user may drag input the adjustment control 17 and one adjustment node (e.g., adjustment node 19); as shown in fig. 4 (B), after the user performs the drag input, the mobile phone may determine another transparency value (i.e., 30%) corresponding to the adjustment node 19 as the target transparency value.
Further optionally, in the embodiment of the present application, after the transparency value of the icon background of the first application icon is reduced, the display device of the unread message may perform a tracing process (for example, a process of tracing the edge line of the icon background of the first application icon by 2 pixel values), and adjust the color of the edge line of the icon background of the first application icon, where the color of the edge line of the icon background of the adjusted first application icon is different from the color of the icon background of the first application icon before adjustment.
Step 202, determining the size of the first background portion of the first application icon according to the number K of unread messages and the target ratio, so as to determine the area ratio of the first background portion in the icon background, and increasing the transparency value of the first background portion.
In the embodiment of the application, the target ratio is as follows: the ratio of the size of the icon background of the first application icon to a preset threshold value; the preset threshold is: and when the size of the first background part is equal to the size of the icon background of the first application icon, the number of unread messages of the target application program.
Further optionally, in the embodiment of the present application, the display device for an unread message may determine a target ratio according to the size of the icon background of the first application icon and a preset threshold, and then determine the size of the first background portion of the first application icon according to the number K of unread messages and the target ratio, and increase the transparency value of the first background portion.
Further optionally, in an embodiment of the present application, the size of the icon background of the first application icon may specifically be: the distance between two non-adjacent edge lines of the icon background or the area of the display area corresponding to the icon background.
Further alternatively, in the embodiment of the present application, the preset threshold may be a value preset by a user in a display device of an unread message.
For example, after the display device of the unread message turns on the "unread notification water drop alert mode" function, the display device of the unread message may display a threshold setting control, so that a user may input the threshold setting control, so that the display device of the unread message may determine a preset threshold according to the input of the user.
It should be noted that, for the description of determining the preset threshold value for the display device of the unread message, reference may be made to the specific description of determining the target transparency value for the display device of the unread message in the above embodiment, and the embodiments of the present application are not repeated here.
Illustratively, the icon background of the first application icon has the following dimensions: the distance between two non-adjacent edge lines of the icon background is illustrated as an example.
Assume that the distance between two non-adjacent edge lines of the icon background of the first application icon is: 150 dots per inch (dpi), the preset threshold is 40 (i.e., when the size of the first background portion of the first application icon is equal to the size of the icon background of the first application icon, the number of unread messages of the target application program is 40), then the target ratio is 150:40=3.75.
Further optionally, in the embodiment of the present application, after determining the target ratio, the display device for an unread message may determine a distance between two non-adjacent edge lines of the first background portion according to a product of the number K of unread messages and the target ratio, so as to determine a size of the first background portion of the first application icon, so as to determine an area ratio of the first background portion in the icon background.
It can be appreciated that the size of the icon background at the first application icon is: in the case of the distance between two non-adjacent edge lines of the icon background, the size of the first background portion of the first application icon is: the distance between two non-adjacent edge lines of the first background portion.
Further alternatively, in the embodiment of the present application, after determining the area ratio of the first background portion in the icon background, the display device of the unread message may restore the transparency value of the first background portion of the first application icon to the transparency value of the icon background before the lowering, so as to raise the transparency value of the first background portion of the first application icon.
Further optionally, in the embodiment of the present application, after the transparency value of the first background portion of the first application icon is increased, if the user triggers the display device of the unread message to display the interface of the target application program and views some unread messages in the K unread messages in the interface, the display device of the unread message may execute the step 201 and the step 202 again based on the number of unread messages in the target application program (that is, the number of unread messages in the K unread messages, except for some unread messages), so as to increase the size of the first background portion of the first application icon again, and increase the transparency value of the first background portion of the first application icon.
Further optionally, in the embodiment of the present application, after the transparency value of the first background portion of the first application icon is increased, the display device for the unread message may determine, according to a preset threshold, the number P of scale lines by using a preset algorithm, and display P scale lines on one edge line of the icon background of the first application icon.
The preset algorithm may specifically be: Wherein Z is a preset threshold.
Assuming that the preset threshold is 40, thenThat is, on one edge line of the icon background of the first application icon, 3 tick marks are displayed.
In the embodiment of the application, after a user triggers a display device of an unread message to start an 'unread notification water drop reminding mode', and sets a target transparency value and a preset threshold in the display device of the unread message, when the display device of the unread message receives K unread messages through a target application program, the display device of the unread message can adjust the current transparency value of the icon background of the first application icon to the target transparency value, and according to the number K of the unread messages and a target ratio (the target ratio is determined based on the preset threshold), determine the size of the first background part of the first application icon, and restore the transparency value of the first background part of the first application icon to the transparency value of the icon background before the adjustment.
As can be seen from this, when the display device of the unread message receives the unread message through the target application program, the transparency of the icon background of the first application icon can be reduced, the size of the first background portion can be determined based on the number of unread messages, and the transparency value of the first background portion can be increased.
The scene in which the display device of the unread message receives the first message will be taken as an example, to illustrate how the display device of the unread message updates the area ratio of the first background portion in the icon background.
Alternatively, in an embodiment of the present application, as shown in fig. 5 in conjunction with fig. 1, the above step 101 may be specifically implemented by the following step 101a, and the above step 102 may be specifically implemented by the following step 102 a.
Step 101a, receiving a first message in case of displaying a first application icon.
It will be appreciated that the display device of the unread message may receive the first message via the target application.
Step 102a, updating the number of unread messages of the target application program from the second number to the third number, and updating the area ratio of the first background part in the icon background from the third duty ratio to the fourth duty ratio under the condition that the first message is not processed.
Further optionally, in the embodiment of the present application, the display device of the unread message may determine a coordinate point of the first application icon according to the first message, and then update, according to the coordinate point of the first application icon, the number of the unread messages of the target application program from the second number to the third number, and update, according to the coordinate point of the first application icon, the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio, where the display device of the unread message does not process the first message.
Specifically, in the embodiment of the present application, under the condition that the first message is received, the display device of the unread message may identify, through the system background, an application name corresponding to the first message to determine an application program (i.e., a target application program) corresponding to the application name, so that the display device of the unread message may determine, according to the target application program, a first application icon to determine a coordinate point of the first application icon.
In the embodiment of the present application, the third duty ratio is: the area ratio of the first background portion on the icon background before receiving the first message; the third duty cycle is associated with a difference of the fourth duty cycle and a difference of the second number and the third number.
It will be appreciated that the third duty cycle is less than the fourth duty cycle. The second number may specifically be the number of unread messages of the target application before receiving the first message. The third number may specifically be the number of unread messages of the target application program after receiving the first message.
Further alternatively, in the embodiment of the present application, the display device for an unread message may determine the target size according to the difference between the second number and the third number and the target ratio, then determine the fifth duty ratio according to the target size, and adjust the third duty ratio to the fourth duty ratio according to the fifth duty ratio. Wherein the fifth duty cycle is: the difference between the third and fourth duty cycles.
Specifically, in the embodiment of the present application, the display device of the unread message may determine the target size according to the product of the difference between the second number and the third number and the target ratio, so as to determine the fifth duty ratio.
In the embodiment of the present application, if the display device of the unread message does not process the first message, it may be considered that the user may not want to view the first message at present, so that the number of unread messages of the target application program is updated from the second number to the third number, and the area ratio of the first background portion in the icon background is updated from the third duty ratio to the fourth duty ratio.
As can be seen, if the display device of the unread message does not process the first message, the display device of the unread message can update the number of the unread messages of the target application from the second number to the third number, and increase the area ratio of the first background portion in the icon background, so as to prompt the user of the number of the unread messages of the target application, without displaying the digital corner mark on the first application icon.
In the following, it will be exemplified how the display device of the unread message adopts a control prompting mode to prompt the unread message to the user.
Optionally, in an embodiment of the present application, as shown in fig. 6 in conjunction with fig. 5, before the area ratio of the first background portion in the icon background is updated from the third duty ratio to the fourth duty ratio in the step 102a, the method for displaying the unread message provided in the embodiment of the present application may further include the following step 301 and step 302, and the step 102a may be specifically implemented by the following step 102a 1.
Step 301, updating the number of unread messages of the target application program from the second number to the third number without processing the first message, and displaying a target control corresponding to the first message.
Further optionally, in the embodiment of the present application, a target page is displayed on a display device of an unread message, where the target page includes a first application icon and a notification message corresponding to the first message, and the display device of the unread message displays a target control corresponding to the first message when the display device of the unread message does not process the first message within a first preset duration.
Further alternatively, in an embodiment of the present application, the display device of the unread message may display the target control in the first display area in an animated display manner. The first display area may specifically be: and a display area corresponding to the first application icon in the display area of the notification message corresponding to the first message.
Specifically, in the embodiment of the present application, the display device for the unread message may change the notification message corresponding to the first message into a "water drop" control, that is, a target control, in an animation display manner, so as to display the target control.
Specifically, in the embodiment of the present application, the first display area may specifically be: and a display area corresponding to the coordinate point of the first application icon in the display area of the notification message corresponding to the first message. For example, in the display area of the notification message corresponding to the first message, the coordinate point of the first application icon is directly above.
For example, as shown in fig. 7, the mobile phone displays a target page, such as a desktop 21, where the desktop 21 includes a first application icon 22 and a notification message 23 corresponding to the first message, and in a case where the mobile phone does not process the first message within a first preset duration (for example, 5 seconds), the mobile phone may display the target control 25 in the first display area 24 in an animation display manner.
And 302, updating the display position of the target control.
Further optionally, in the embodiment of the present application, the display device for an unread message may control the target control to move at a preset speed to the coordinate point of the first application icon, so as to update the display position of the target control.
Step 102a1, updating the number of unread messages of the target application from the second number to the third number when the display position is at least partially coincident with the display position of the first application icon.
It will be appreciated that the display of the unread message may control the "drop" control (i.e., the target control) to make a drop motion, and in the event that the "drop" control drops into the first application icon, the display of the unread message updates the area ratio of the first background portion in the icon background.
Therefore, the display device of the unread message can display and update the display position of the target control, and the number of the unread messages of the target application program is updated from the second number to the third number under the condition that the display positions of the target control and the first application icon are at least partially overlapped, so that the variety of unread message prompts of the display device of the unread message can be improved, and the use experience of a user can be improved.
Alternatively, in an embodiment of the present application, as shown in fig. 8 in conjunction with fig. 1, the above step 101 may be specifically implemented by the following step 101b, and the above step 102 may be specifically implemented by the following step 102 b.
Step 101b, receiving a first input in case of displaying a first application icon.
For example, as shown in fig. 9 (a), the mobile phone displays a target page (e.g., page 26), and the page 26 includes a first application icon 27 therein, where the first application icon 27 indicates a target application program, so that the user can make a first input (e.g., flip and shake input) to the mobile phone; as shown in fig. 9 (B), the user may flip the mobile phone 180 ° (shown by using the flipped position of the mobile phone as a dotted line in the drawing), and shake the mobile phone 60 ° to perform the first input.
Step 102b, in response to the first input, updates the area ratio of the first background portion in the icon background from the first duty cycle to the second duty cycle and marks the first number of unread messages as a read state.
Wherein, the first duty ratio is: prior to receiving the first input, an area ratio of the first background portion at the icon background; the first duty cycle is associated with a difference of the second duty cycle and a first amount.
Further optionally, in the embodiment of the present application, when the display device of the unread message is in a preset state and the input parameter of the first input meets a third preset condition, the display device of the unread message responds to the first input, updates the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio, and marks the first number of unread messages as the read state.
Specifically, in the embodiment of the present application, after the display device of the unread message starts the "unread notification water drop reminding mode" function, the display device of the unread message may acquire, in real time, measurement data detected by the measurement sensor of the display device of the unread message, so as to determine, according to the measurement data, whether the display device of the unread message is in a preset state, and whether the input parameter of the first input meets a third preset condition.
Specifically, in an embodiment of the present application, the measurement sensor may include at least one of the following: gyroscopes and acceleration sensors. The measurement data may include at least one of: rotation angle value, rotation acceleration value and shaking amplitude. Wherein, this rotation angle value is: the angle value of the unread message display device rotating in any direction is as follows: the acceleration value of the unread message is rotated in any direction by the display device.
For example, the display device of the unread message may determine whether the display device of the unread message is in a preset state according to a rotation angle value of the display device of the unread message detected by the gyroscope and a rotation acceleration value of the display device of the unread message detected by the acceleration sensor.
For example, in the case where the rotation angle value is greater than or equal to the preset angle value, the display device of the unread message may determine that the display device of the unread message is in an inverted state, and in the case where the rotation acceleration value is greater than or equal to the preset acceleration value, the display device of the unread message may determine that the display device of the unread message is in a shaking state, so that the display device of the unread message may determine that the display device of the unread message is in the preset state.
It is understood that the preset state may be an inverted and shaking state.
Specifically, in the embodiment of the present application, the display device for the unread message may determine whether the input parameter of the first input meets the third preset condition according to the shake amplitude of the display device for the unread message, which is detected by the gyroscope.
Specifically, in the embodiment of the present application, in the case where the shake amplitude of the first input is greater than or equal to the preset amplitude (for example, 120 °), the display device of the unread message may determine that the input parameter of the first input meets the third preset condition.
It will be appreciated that the input parameters of the first input are: and turning over and swinging to input corresponding swinging amplitude. The third preset condition is: the shaking amplitude is larger than or equal to a preset amplitude.
Further optionally, in the embodiment of the present application, when it is determined that the display device of the unread message is in a preset state and the input parameter of the first input meets a third preset condition, the display device of the unread message may display the first prompt information, and after a second preset period of time, update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio, and mark the first number of unread messages as the read state.
It will be appreciated that the first duty cycle is greater than the second duty cycle.
Specifically, in the embodiment of the present application, the display device for unread messages may determine, according to a first input parameter, a first number corresponding to the input parameter, and based on the first number, adjust an area ratio of the first background portion in the icon background, and mark the unread messages of the first number in the target application as the read messages.
It should be noted that, based on the first number, the display device for the unread message adjusts the area ratio of the first background portion in the icon background, which may refer to the specific description in the above embodiment, and the detailed description in the embodiment of the present application is omitted here.
Specifically, in the embodiment of the present application, the first prompt information may include any one of the following: text prompt information, video prompt information and animation prompt information.
For example, in conjunction with (B) in fig. 9, as shown in fig. 10, in the case where it is determined that the mobile phone is in an inverted and shake state and the shake magnitude is greater than or equal to the preset magnitude, the mobile phone may display a first alert message (e.g., "purging" the alert message 28), and after a second preset period (e.g., 3 seconds), update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio, and mark the first number of unread messages of the target application program as the read state.
Therefore, the display device of the unread messages can directly update the area ratio of the first background part in the icon background from the first duty ratio to the second duty ratio according to the first input of the user, and directly mark the first number of unread messages of the target application program into the read state without multiple operations of the user, so that the efficiency of marking the messages by the display device of the unread messages can be improved.
Optionally, in an embodiment of the present application, the target application has a first state. Specifically, the above step 102b may be specifically implemented by the following step 102b 1.
Step 102b1, in response to the first input, updating the area ratio of the first background portion in the icon background from the first duty cycle to the second duty cycle with the target application in the first state, and marking the first number of unread messages as read.
It can be appreciated that the first state may specifically be: an unlocked state. That is, when the target application is in the unlocked state, the display device of the unread messages may update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio, and mark the first number of unread messages as the read state.
Therefore, the display device of the unread message can update the area ratio of the first background part in the icon background from the first duty ratio to the second duty ratio under the condition that the target application program is in the first state, and marks the first number of unread messages of the target application program as the read state instead of directly marking the first number of unread messages of the target application program as the read state, so that misoperation caused by false touch of a user can be avoided, and the accuracy of marking the message by the display device of the unread message can be improved.
Optionally, in an embodiment of the present application, the target application has a second state. Specifically, the above step 102b may be replaced by the following step 102c.
Step 102c, keeping the area ratio of the first background part on the icon background unchanged under the condition that the target application program is in the second state.
It can be appreciated that the second state may specifically be: a locked state. That is, when the target application is in the locked state, the display device of the unread messages does not update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio, and marks the first number of unread messages of the target application as the read state.
Therefore, the display device of the unread message can keep the area ratio of the first background part on the icon background unchanged under the condition that the target application program is in the second state, namely, the unread message of the target application program is not marked as the read state, so that misoperation caused by the false touch of a user can be avoided, and the accuracy of marking the message by the display device of the unread message can be improved.
Optionally, in the embodiment of the present application, before the step 102c, the method for displaying an unread message provided in the embodiment of the present application may further include the following steps 401 and 402.
Step 401, receiving a second input of a user to the first application icon.
Further optionally, in the embodiment of the present application, when the user's selection input of the "unread notification water droplet alert mode" option is detected, the display device of the unread message may turn on the "unread notification water droplet alert mode" function, so that when the target page is displayed and includes the first application icon in the target page, the user may perform the second input.
In an embodiment of the present application, the second input is used to trigger a display device of the unread message to control the application to be in the second state.
Further optionally, in an embodiment of the present application, the second input may include a first sub-input and a second sub-input, where the first sub-input is a pressing input (for example, a long press input, a click input, a double click input, etc.) of the first application icon by a user, the first sub-input is used to trigger a display device of the unread message to display a first window, where the first window includes a "lock" control, and the second sub-input is a pressing input (for example, a click input) of the "lock" control by the user, where the display device of the second sub-input is used to control the application to be in a locked state.
For example, as shown in fig. 11 (a), the mobile phone displays a target page (e.g., page 29), and the page 29 includes a first application icon 30, so that the user can make a first sub-input (e.g., long press input) to the first application icon 30; as shown in fig. 11 (B), after the user makes a long press input, the handset may display a first window (e.g., window 31) including a "lock" control 32 in the window 31 so that the user can make a second sub-input (e.g., click input) to the "lock" control 32.
Step 402, in case the second input meets the first preset condition, the display device of the unread message responds to the second input to adjust the target application program from the first state to the second state.
It will be appreciated that in the event that the second sub-input is a user click input to the "lock" control, the display of the unread message adjusts the target application from the first state to the second state in response to the second input.
Further optionally, in the embodiment of the present application, after the display device of the unread message adjusts the target application program from the first state to the second state, the display device of the unread message may display the target identifier on the first application icon.
Further alternatively, in an embodiment of the present application, the target identifier may be any one of the following: text, numbers, pictures, etc.
For example, in connection with (B) of fig. 11, as shown in fig. 12, after the user makes the second sub-input, the mobile phone may control the target application to be in the second state and display the target identification (e.g., the "lock" picture 33) on the first application icon 30.
Therefore, the display device of the unread message can adjust the target application program from the first state to the second state according to the second input of the user to the first application icon, so that the area ratio of the first background part on the icon background can be kept unchanged, misoperation caused by the false touch of the user can be avoided, and the accuracy of marking the message by the display device of the unread message can be improved.
Optionally, in the embodiment of the present application, as shown in fig. 13 in conjunction with fig. 1, after step 102, the method for displaying an unread message provided in the embodiment of the present application may further include the following steps 501 and 502.
Step 501, receiving a third input from the user.
Further optionally, in the embodiment of the present application, when the user's selection input of the "unread notification water droplet alert mode" option is detected, the display device of the unread message may turn on the "unread notification water droplet alert mode" function, so that when the target page is displayed and the target page includes the first application icon, the user may perform the third input.
In the embodiment of the present application, the third input is used to trigger the display device of the unread message to display content.
Further optionally, in an embodiment of the present application, the third input may specifically be: the user rotates the display device of the unread message on the first plane by an input of a further angle.
Step 502, in case the third input meets the second preset condition, the first content is displayed in response to the third input.
Further optionally, in the embodiment of the present application, after the display device of the unread message starts the "unread notification water drop reminding mode" function, the display device of the unread message may acquire measurement data detected by a measurement sensor of the display device of the unread message in real time, adjust a shape of a first background portion of the first application icon according to the measurement data, and determine whether an input parameter of the third input meets a second preset condition according to the measurement data.
Specifically, the display device of the unread message may determine a shape corresponding to the rotation angle value (i.e., a shape of the first background portion of the first application icon) according to the rotation angle value of the display device of the unread message detected by the gyroscope, and update the current shape of the first background portion of the first application icon to a shape corresponding to the rotation angle value. Wherein one edge line (e.g., an upper edge line) of the updated first background portion of the first application icon is parallel to the horizontal plane.
It can be understood that the display device of the unread message can adjust the shape of the first background portion of the first application icon in real time according to the rotation angle value of the display device of the unread message, so that the first background portion of the first application icon is like "water" and is inclined along with the angle change of the display device of the unread message, thereby improving the interest.
Specifically, the display device of the unread message may determine whether the input parameter of the third input meets the second preset condition according to the rotation angle value of the display device of the unread message detected by the gyroscope.
For example, in the case where the rotation angle value of the third input is greater than or equal to a preset value (for example, 30 °), the display device of the unread message may determine that the input parameter of the third input satisfies the second preset condition.
It will be appreciated that the input parameters for the third input are: and the third input corresponds to the rotation angle value. The second preset condition is: the rotation angle value is greater than or equal to a preset value.
In the embodiment of the present application, the first content is used to indicate the number of unread messages of the target application program.
Further alternatively, in an embodiment of the present application, the first content may be a number corresponding to the number of unread messages in one application.
Further alternatively, in the embodiment of the present application, the display device of the unread message may update the application name of the target application program to the first content, so as to display the first content.
For example, as shown in fig. 14 (a), the mobile phone displays a target page (e.g., page 35), where the page 35 includes a first application icon 36, so that the user can make a third input to the mobile phone (shown by using the rotated position of the mobile phone as a dashed line); as shown in fig. 14 (B), after the user performs the third input, in the case where the rotation angle value corresponding to the third input is greater than or equal to the preset value, the mobile phone may update the application name corresponding to the first application icon 36 to the first content 37, where the content 37 is used to indicate the number of unread messages of the target application.
In the embodiment of the application, when the user wants to determine the number of the unread messages of the target application program, the user can directly input the third input to the unread message display device, so that the unread message display device can directly update the application name of the target application program to the number of the unread messages of the target application program under the condition that the rotation angle value of the third input is greater than or equal to the preset value, and the user can directly check the number of the unread messages.
Therefore, the display device of the unread message can display the number of the unread messages of the target application program according to the third input of the user under the condition that the input parameter of the third input meets the second preset condition, so as to prompt the user about the number of the unread messages of the target application program, and a digital corner mark is not required to be displayed on the first application icon, so that the display space of the display screen of the display device of the unread messages can be saved.
Fig. 15 shows a schematic diagram of a possible structure of a display device for unread messages according to an embodiment of the present application. As shown in fig. 15, the display device 60 of the unread message may include: a receiving module 61 and an updating module 62.
Wherein, the receiving module 61 is configured to receive a first message or a first input in a case where the first application icon is displayed; the first application icon includes an icon background and an icon body, the icon background including a first background portion. An updating module 62, configured to update an area ratio of the first background portion in the icon background; the area ratio of the first background portion in the icon background is associated with the number of unread messages of a target application program, the target application program corresponding to the first application icon.
In a possible implementation manner, the receiving module 61 is specifically configured to receive the first input in a case where the first application icon is displayed. The updating module 62 is specifically configured to update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio in response to the first input received by the receiving module 61, and mark the first number of unread messages as a read status. Wherein, the first duty ratio is: prior to receiving the first input, an area ratio of the first background portion at the icon background; the first duty cycle is associated with a difference of the second duty cycle and a first amount.
In a possible implementation manner, the receiving module 61 is specifically configured to receive the first message when the first application icon is displayed. The updating module 62 is specifically configured to update the number of unread messages of the target application from the second number to the third number, and update the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio without processing the first message. Wherein the third duty ratio is: the area ratio of the first background portion on the icon background before receiving the first message; the third duty cycle is associated with a difference of the fourth duty cycle and a difference of the second number and the third number.
In one possible implementation, the target application has a first state. The updating module 62 is specifically configured to update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio when the target application is in the first state.
In one possible implementation, the target application has a second state. The updating module 62 is further configured to keep the area ratio of the first background portion on the icon background unchanged when the target application is in the second state.
In a possible implementation manner, the receiving module 61 is further configured to receive a second input from the user on the first application icon. The display device 60 for unread messages provided in the embodiment of the present application may further include: and an adjustment module. Wherein, the adjusting module is configured to adjust the target application from the first state to the second state in response to the second input if the second input received by the receiving module 61 meets the first preset condition.
In a possible implementation, the receiving module 61 is further configured to receive a third input from the user. The display device 60 for unread messages provided in the embodiment of the present application may further include: and a display module. Wherein the display module is configured to, in response to the third input received by the receiving module 61 when the third input meets the second preset condition, display first content, where the first content is used to indicate the number of unread messages of the target application.
In one possible implementation manner, the display device 60 for unread messages provided in the embodiment of the present application may further include: and a display module. The display module is used for displaying a target control corresponding to the first message. The updating module 62 is further configured to update a display position of the target control displayed by the display module. The updating module 62 is specifically configured to update the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio when the display position at least partially coincides with the display position of the first application icon.
According to the display device for the unread messages, the area ratio of the first background part of the first application icon in the icon background is related to the number of the unread messages of the target application program corresponding to the first application icon; in this way, in the case that the display device of the unread message receives the message through the target application program, the display device of the unread message may update the area ratio of the first background portion of the icon background in the icon background based on the number of the unread messages of the target application program after receiving the message, or in the case that the display device of the unread message receives the first input, the display device of the unread message may update the area ratio of the first background portion of the icon background in the icon background based on the number of the unread messages of the target application program after receiving the first input, so as to prompt the user of the number of the unread messages of the target application program, without displaying the digital corner mark on the first application icon, thereby avoiding the increase of the area of the display space corresponding to the first application icon, and thus saving the display space of the display screen of the display device of the unread message.
The display device of the unread message in the embodiment of the application can be a device, and also can be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (NetworkAttached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The display device of the unread message in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The display device for unread messages provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 14, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 16, the embodiment of the present application further provides an electronic device 70, which includes a processor 72, a memory 71, and a program or an instruction stored in the memory 71 and capable of running on the processor 72, where the program or the instruction implements each process of the above embodiment of the method for displaying unread messages when executed by the processor 72, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 17 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 17 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in the drawings, or may combine some components, or may be arranged in different components, which will not be described in detail herein.
The radio frequency unit 101 is configured to receive a first message when the first application icon is displayed. Or a user input unit 107 for receiving a first input in case of displaying a first application icon. The first application icon includes an icon background and an icon body, the icon background including a first background portion.
A processor 110 for updating an area ratio of the first background portion in the icon background; the area ratio of the first background portion in the icon background is associated with the number of unread messages of a target application program, which corresponds to the first application icon.
According to the electronic device provided by the embodiment of the application, the area ratio of the first background part of the first application icon in the icon background is related to the number of unread messages of the target application program corresponding to the first application icon; in this way, in the case that the electronic device receives the message through the target application program, the electronic device may update the area ratio of the first background portion of the icon background in the icon background based on the number of unread messages of the target application program after receiving the message, or in the case that the electronic device receives the first input, the electronic device may update the area ratio of the first background portion of the icon background in the icon background based on the number of unread messages of the target application program after receiving the first input, so as to prompt the user about the number of unread messages of the target application program, without displaying the digital corner mark on the first application icon, thereby avoiding an increase in the area of the display space corresponding to the first application icon, and thus saving the display space of the display screen of the electronic device.
Optionally, in an embodiment of the present application, the user input unit 107 is specifically configured to receive the first input in a case where the first application icon is displayed.
The processor 110 is specifically configured to update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio in response to the first input, and mark the first number of unread messages as a read state.
Wherein, the first duty ratio is: prior to receiving the first input, an area ratio of the first background portion at the icon background; the first duty cycle is associated with a difference of the second duty cycle and a first amount.
Therefore, the electronic device can directly update the area ratio of the first background part in the icon background from the first duty ratio to the second duty ratio according to the first input of the user, and directly mark the first number of unread messages of the target application program into the read state without multiple operations of the user, so that the efficiency of marking the messages by the electronic device can be improved.
Optionally, in the embodiment of the present application, the user input unit 107 is specifically configured to receive the first message in a case where the first application icon is displayed.
The processor 110 is specifically configured to update the number of unread messages of the target application from the second number to the third number, and update the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio without processing the first message.
Wherein the third duty ratio is: the area ratio of the first background portion on the icon background before receiving the first message; the third duty cycle is associated with a difference of the fourth duty cycle and a difference of the second number and the third number.
Therefore, if the electronic device does not process the first message, the electronic device can update the number of the unread messages of the target application program from the second number to the third number, and increase the area ratio of the first background part in the icon background, so as to prompt the user of the number of the unread messages of the target application program, without displaying the digital corner mark on the first application icon.
Optionally, in an embodiment of the present application, the target application has a first state.
The processor 110 is specifically configured to update the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio when the target application is in the first state.
Therefore, the electronic device can update the area ratio of the first background part in the icon background from the first duty ratio to the second duty ratio under the condition that the target application program is in the first state, and mark the first number of unread messages of the target application program as the read state instead of directly marking the first number of unread messages of the target application program as the read state, so that misoperation caused by false touch of a user can be avoided, and the accuracy of marking the messages by the electronic device can be improved.
Optionally, in an embodiment of the present application, the target application has a second state.
The processor 110 is further configured to keep the area ratio of the first background portion on the icon background unchanged in the case that the target application is in the second state.
Therefore, the electronic device can keep the area ratio of the first background part on the icon background unchanged under the condition that the target application program is in the second state, namely, the unread message of the target application program is not marked as the read state, so that misoperation caused by the mistaken touch of a user can be avoided, and the accuracy of the marking message of the electronic device can be improved.
Optionally, in an embodiment of the present application, the user input unit 107 is further configured to receive a second input of the first application icon by the user.
The processor 110 is further configured to, in response to the second input, adjust the target application from the first state to the second state if the second input satisfies the first preset condition.
Therefore, the electronic device can adjust the target application program from the first state to the second state according to the second input of the user to the first application icon, so that the electronic device can keep the area ratio of the first background part on the icon background unchanged, misoperation caused by the false touch of the user can be avoided, and the accuracy of the electronic device marking message can be improved.
Optionally, in an embodiment of the present application, the user input unit 107 is further configured to receive a third input from the user.
And a display unit 106 for displaying, in response to the third input, first content indicating the number of unread messages of the target application program, in case the third input satisfies the second preset condition.
Therefore, the electronic device can display the number of the unread messages of the target application program according to the third input of the user when the input parameters of the third input meet the second preset condition, so as to prompt the user about the number of the unread messages of the target application program, and a digital corner mark is not required to be displayed on the first application icon, so that the display space of the display screen of the electronic device can be saved.
Optionally, in the embodiment of the present application, the display unit 106 is further configured to display a target control corresponding to the first message.
The processor 110 is further configured to update a display position of the target control, and update the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio when the display position at least partially coincides with the display position of the first application icon.
Therefore, the electronic device can display and update the display position of the target control, and update the area ratio of the first background part in the icon background from the third duty ratio to the fourth duty ratio under the condition that the display positions of the target control and the first application icon are at least partially overlapped, so that the variety of unread message prompts of the electronic device can be improved, and the use experience of a user can be improved.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (graphics processing unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned embodiment of the method for displaying unread messages, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the embodiment of the method for displaying the unread message can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A method of displaying an unread message, the method comprising:
Receiving a first message or a first input under the condition that a first application icon is displayed; the first application icon comprises an icon background and an icon main body, wherein the icon background comprises a first background part;
Updating the area ratio of the first background part in the icon background; the area ratio of the first background portion in the icon background is associated with the number of unread messages of a target application program, the target application program corresponding to a first application icon;
The display parameters of the first background part are different from those of other background parts, and the other background parts are background parts except the first background part in the icon background;
receiving a third input from the user; the third input is input that the user rotates the display device of the unread message by an angle on the first plane;
Responding to the third input, adjusting the shape of the first background part according to the input parameters of the third input, and updating the application name of the target application program into first content under the condition that the third input meets a second preset condition; the first content is for indicating a number of unread messages for the target application.
2. The method of claim 1, wherein receiving a first message or first input with the first application icon displayed comprises:
receiving the first input under the condition that the first application icon is displayed;
The updating the area ratio of the first background portion in the icon background comprises:
Updating an area ratio of the first background portion in the icon background from a first duty cycle to a second duty cycle in response to the first input, and marking a first number of unread messages as read;
Wherein the first duty cycle is: prior to receiving the first input, an area ratio of the first background portion at the icon background; the first duty cycle is associated with a difference of the second duty cycle and the first amount.
3. The method of claim 1, wherein receiving a first message or first input with the first application icon displayed comprises:
Receiving a first message under the condition that the first application icon is displayed;
The updating the area ratio of the first background portion in the icon background comprises:
updating the number of unread messages of a target application program from the second number to the third number without processing the first message, and updating the area ratio of the first background part in the icon background from the third duty ratio to the fourth duty ratio;
wherein the third duty cycle is: the area ratio of the first background portion on the icon background before receiving the first message; the third duty cycle is associated with a difference of the fourth duty cycle and a difference of the second number and a third number.
4. The method of claim 2, wherein the target application has a first state;
the updating the area ratio of the first background portion in the icon background from the first duty ratio to the second duty ratio comprises:
Updating the area ratio of the first background portion in the icon background from a first duty ratio to a second duty ratio with the target application in the first state;
The target application also has a second state;
And when the target application program is in the second state, keeping the area ratio of the first background part on the icon background unchanged.
5. The method of claim 4, wherein the maintaining the first background portion is prior to the area ratio of the icon background being unchanged with the target application in the second state, the method further comprising:
receiving a second input of the user to the first application icon;
And in the case that the second input meets a first preset condition, responding to the second input, and adjusting the target application program from the first state to the second state.
6. A method according to claim 3, wherein the updating the area ratio of the first background portion in the icon background from a third duty cycle to a fourth duty cycle is preceded by:
Displaying a target control corresponding to the first message;
Updating the display position of the target control;
The updating the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio comprises:
And updating the area ratio of the first background part in the icon background from a third duty ratio to a fourth duty ratio under the condition that the display position at least partially coincides with the display position of the first application icon.
7. A display device for unread messages, the display device for unread messages comprising: a receiving module and an updating module;
the receiving module is used for receiving a first message or a first input under the condition that a first application icon is displayed; the first application icon comprises an icon background and an icon main body, wherein the icon background comprises a first background part;
The updating module is used for updating the area ratio of the first background part in the icon background; the area ratio of the first background portion in the icon background is related to the number of unread messages of a target application program, and the target application program corresponds to a first application icon;
The display parameters of the first background part are different from those of other background parts, and the other background parts are background parts except the first background part in the icon background;
the receiving module is further used for receiving a third input of a user; the third input is input that the user rotates the display device of the unread message by an angle on the first plane;
The updating module is further configured to adjust a shape of the first background portion according to an input parameter of the third input in response to the third input received by the receiving module, and update an application name of the target application program to first content if the third input meets a second preset condition; the first content is for indicating a number of unread messages for the target application.
8. The apparatus according to claim 7, wherein the receiving module is configured to receive a first message when the first application icon is displayed;
The updating module is specifically configured to update, without processing the first message, the number of unread messages of the target application from the second number to the third number, and update the area ratio of the first background portion in the icon background from the third duty ratio to the fourth duty ratio;
Wherein the third duty cycle is: the area ratio of the first background part on the icon background before receiving the first message; the third duty cycle is associated with a difference of the fourth duty cycle and a difference of the second number and a third number.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the method of displaying unread messages according to any of claims 1 to 6.
10. A readable storage medium, wherein a program or instructions are stored on the readable storage medium, which when executed by a processor, implement the steps of the method for displaying unread messages according to any one of claims 1 to 6.
CN202110120413.3A 2021-01-28 2021-01-28 Unread message display method and device and electronic equipment Active CN112947808B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110120413.3A CN112947808B (en) 2021-01-28 2021-01-28 Unread message display method and device and electronic equipment
PCT/CN2022/073203 WO2022161279A1 (en) 2021-01-28 2022-01-21 Method and apparatus for displaying unread message, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110120413.3A CN112947808B (en) 2021-01-28 2021-01-28 Unread message display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112947808A CN112947808A (en) 2021-06-11
CN112947808B true CN112947808B (en) 2024-05-10

Family

ID=76238888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110120413.3A Active CN112947808B (en) 2021-01-28 2021-01-28 Unread message display method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN112947808B (en)
WO (1) WO2022161279A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947808B (en) * 2021-01-28 2024-05-10 维沃移动通信有限公司 Unread message display method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996045B1 (en) * 2007-11-09 2011-08-09 Google Inc. Providing interactive alert information
CN102520839A (en) * 2010-10-22 2012-06-27 微软公司 Notification group touch gesture dismissal techniques
KR20150094057A (en) * 2014-02-10 2015-08-19 엘지전자 주식회사 Method for controlling mobile terminal
CN105426043A (en) * 2015-11-05 2016-03-23 青岛海信移动通信技术股份有限公司 Display method of message prompt, and mobile terminal
CN106227409A (en) * 2016-07-25 2016-12-14 珠海市魅族科技有限公司 Method for information display and device
CN107678614A (en) * 2017-09-05 2018-02-09 努比亚技术有限公司 A kind of method, equipment and computer-readable recording medium for realizing information alert
CN108509541A (en) * 2018-03-19 2018-09-07 广东欧珀移动通信有限公司 A kind of message read method, message reading device and mobile terminal
WO2020238698A1 (en) * 2019-05-31 2020-12-03 北京字节跳动网络技术有限公司 Unread message reminding method, device, terminal apparatus and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100763195B1 (en) * 2006-01-20 2007-10-04 삼성전자주식회사 Apparatus and method for displaying communication log using gui image
CN107092416A (en) * 2017-03-30 2017-08-25 联想(北京)有限公司 A kind of icon display method and electronic equipment
CN111885258B (en) * 2020-07-22 2021-11-16 维沃移动通信有限公司 Unread message display method and device, electronic equipment and storage medium
CN112947808B (en) * 2021-01-28 2024-05-10 维沃移动通信有限公司 Unread message display method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996045B1 (en) * 2007-11-09 2011-08-09 Google Inc. Providing interactive alert information
CN102520839A (en) * 2010-10-22 2012-06-27 微软公司 Notification group touch gesture dismissal techniques
KR20150094057A (en) * 2014-02-10 2015-08-19 엘지전자 주식회사 Method for controlling mobile terminal
CN105426043A (en) * 2015-11-05 2016-03-23 青岛海信移动通信技术股份有限公司 Display method of message prompt, and mobile terminal
CN106227409A (en) * 2016-07-25 2016-12-14 珠海市魅族科技有限公司 Method for information display and device
CN107678614A (en) * 2017-09-05 2018-02-09 努比亚技术有限公司 A kind of method, equipment and computer-readable recording medium for realizing information alert
CN108509541A (en) * 2018-03-19 2018-09-07 广东欧珀移动通信有限公司 A kind of message read method, message reading device and mobile terminal
WO2020238698A1 (en) * 2019-05-31 2020-12-03 北京字节跳动网络技术有限公司 Unread message reminding method, device, terminal apparatus and storage medium

Also Published As

Publication number Publication date
WO2022161279A1 (en) 2022-08-04
CN112947808A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN109002243B (en) Image parameter adjusting method and terminal equipment
CN110750188A (en) Message display method and electronic equipment
CN113141293B (en) Message display method and device and electronic equipment
CN112286412A (en) Notification message management method and device
WO2022247744A1 (en) Icon display method and apparatus, and electronic device
CN111104038B (en) Application function processing method and electronic equipment
CN112911147B (en) Display control method, display control device and electronic equipment
KR20230156127A (en) Screen capture methods, devices, electronic devices and readable storage media
CN114356168A (en) Message reminding method and device
CN113709306B (en) Session processing method and device and electronic equipment
CN112947808B (en) Unread message display method and device and electronic equipment
CN112148167A (en) Control setting method and device and electronic equipment
CN112162808A (en) Interface display method and device and electronic equipment
CN111651106A (en) Unread message prompting method, unread message prompting device, unread message prompting equipment and readable storage medium
CN110209324B (en) Display method and terminal equipment
CN111124231A (en) Picture generation method and electronic equipment
CN112764611B (en) Application program control method and device and electronic equipment
CN113282359A (en) Application reminding method and device and electronic equipment
CN112929734A (en) Screen projection method and device and electronic equipment
CN111104533A (en) Picture processing method and electronic equipment
CN111163347A (en) Bullet screen information processing method and electronic equipment
WO2023001252A1 (en) Application reminder method and apparatus, and electronic device
CN112995506B (en) Display control method, display control device, electronic device, and medium
CN114895815A (en) Data processing method and electronic equipment
CN113703636A (en) Parameter adjusting method, parameter adjusting device and touch device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant