Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
Referring to fig. 1, which is a schematic flowchart of a method for displaying a notification message according to an embodiment of the present invention, as shown in fig. 1, the method may include the following steps:
step S101, if a notification message is received, displaying a preset identifier on an icon of an application program corresponding to the notification message, wherein the preset identifier is used for identifying that the application program has an unread notification message.
In this embodiment, the preset identifier may be a user-defined mark, and the mark may be displayed at any position on the icon.
Preferably, in a specific implementation example, the step S101 specifically includes:
and if the notification message is received, displaying a corner mark used for marking the unread notification message on an icon of the application program corresponding to the notification message, wherein the number of the unread notification messages is marked in the corner mark. The notification message may be a notification message pushed by a server of an application program, or may be a notification message generated by the application program during running.
In this embodiment, the display position of the corner mark can be set according to the use habit of the user, for example: the icon is displayed in the upper right corner of the icon, in the lower right corner of the icon, in the upper left corner of the icon, or in the lower left corner of the icon. The size and the shape of the corner mark can be set by a user, and the number of unread notification messages can be displayed in the corner mark. In addition, in order to prompt the user that the application program includes an unread notification message, highlighting of the display color of the corner mark may be performed, for example: displaying a color different from the icon itself or setting the color of the corner mark to a striking red color.
Step S102, if it is detected that the user executes a preset touch operation on the icon of the application program, sending a request for browsing the unread notification message to the application program.
In this embodiment, the preset touch operation includes, but is not limited to, detecting an operation of a user clicking a preset mark on the icon, or detecting an operation of a user pressing the icon of the application program for a long time. Wherein the long press means that the icon of the application program is continuously touched for a preset time.
And step S103, displaying the unread notification message according to the request for browsing the unread notification message and a preset display rule.
In this embodiment, step S103 specifically includes:
acquiring the display position of the icon of the application program according to the request for browsing the unread notification message;
and determining a display area of the unread notification message according to the display position of the icon of the application program, and displaying the unread notification message in the display area.
In this embodiment, after the application receives the request for browsing the unread notification message, the terminal may control the application to automatically identify a display position of its icon on the screen, for example: icons are displayed in the lower left corner of the screen, icons are displayed in the upper left corner of the screen, and so on. The unread notification message is displayed in a form of a newly added window, and after the application program obtains the display position of the icon, the display position of the newly added window is determined according to the display position of the icon, for example: if the icon of the application program is displayed at the lower left corner of the screen, the position of the newly added window is displayed at the upper right of the icon; and if the icon of the application program is displayed at the upper left corner of the screen, displaying the position of the newly added window at the lower left of the icon, and then displaying the unread notification message in the newly added window.
Preferably, in this embodiment, before determining the display area of the unread notification message according to the display position of the icon of the application, the method may further include:
and automatically adjusting the display position of the icon of the application program according to a preset strategy. Specifically, the method comprises the following steps: after the application program obtains the display position of the icon of the application program, if the icon is displayed in the middle area of the screen, the display position of the icon is adjusted according to the relative position relation between the current position of the icon and the center of the screen. Wherein, the adjusting the display position of the icon according to the relative position relationship between the current position of the icon and the screen center specifically includes:
if the current position of the icon is at the lower left of the center of the screen, adjusting the display position of the icon to the lower left corner of the screen;
if the current position of the icon is at the upper left of the center of the screen, adjusting the display position of the icon to the upper left corner of the screen;
if the current position of the icon is at the lower right of the center of the screen, adjusting the display position of the icon to the lower right corner of the screen;
if the current position of the icon is at the upper right of the center of the screen, adjusting the display position of the icon to the upper right corner of the screen;
if the current position of the icon is in the center of the screen, the icon can be adjusted to any one position of the upper right corner, the lower right corner, the upper left corner or the lower left corner of the screen.
In the embodiment, the position of the icon is adjusted before the display position before the unread notification message is determined, so that the problem that when the icon is located in the middle area, the display window of the unread communication message is too small to facilitate browsing of a user is solved, and the experience of the user can be further improved.
As can be seen from the above, in the method for displaying a notification message provided in this embodiment, if a notification message is received, a preset identifier is displayed on an icon of an application program corresponding to the notification message, where the preset identifier is used to identify that the application program has an unread notification message; if the fact that a user executes preset touch operation on the icon of the application program is detected, a request for browsing the unread notification message is sent to the application program; and displaying the unread notification message according to the request for browsing the unread notification message and a preset display rule, so that the coupling between the application and a terminal operating system can be isolated, the application program can manage the notification messages, the operation of a user is facilitated, the efficiency of looking up the notification message by the user is improved, and the user experience is improved.
Fig. 2 is a schematic flow chart of a method for displaying a notification message according to another embodiment of the present invention. Referring to fig. 2, a method for displaying a notification message provided in this embodiment includes:
step S201, if a notification message is received, displaying a preset identifier on an icon of an application program corresponding to the notification message, where the preset identifier is used to identify that the application program has an unread notification message.
Step S202, if it is detected that the user performs a preset touch operation on the icon of the application program, sending a request for browsing the unread notification message to the application program.
Step S203, displaying the unread notification message according to the request for browsing the unread notification message and a preset display rule.
It should be noted that, in this embodiment, the specific implementation manner of step S201 to step S203 is completely the same as the implementation manner of step S101 to step S103 in the previous embodiment, and therefore, no further description is given here.
Step S204, blurring the display area of the unread notification message and other screen display areas except the icon of the application program.
In this embodiment, the display area of the unread notification message and the display areas of the screens other than the icons of the application programs are ghosted, so that interference caused by other display contents on the screens when the user browses the unread notification message can be eliminated, and the user experience can be further improved. A schematic diagram of displaying the unread notification message after the blurring process is shown in fig. 3.
Step S205, disabling the application program corresponding to the icon in the other screen display area.
In this embodiment, after blurring the content of the other area of the screen, the application program corresponding to the icon in the other area of the screen is further disabled, so that the user may perform a misoperation when browsing the unread notification message. Further, in this embodiment, a cancel button is provided on the browse window of the unread notification message, and when the user cancels the browse window of the unread notification message of the application program through the cancel button, both the blurring process of the screen and the disabled application program will automatically return to the original state, and the display position of the icon of the application program will also automatically return to the original position.
As can be seen from the above, the method for displaying notification messages provided by this embodiment can also isolate the coupling between the application and the terminal operating system, so that the application program itself manages the respective notification messages, thereby facilitating the user operation, improving the efficiency of the user for looking up the notification messages, and improving the user experience; in addition, compared with the previous embodiment, the method can also eliminate the interference brought by other display contents on the screen to the user when browsing the unread notification message, and prevent the misoperation of the user.
Fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention, and only a part related to the embodiment is shown for convenience of description.
Referring to fig. 4, the present embodiment provides a terminal 100, including:
an unreadmessage identification unit 1, configured to display a preset identifier on an icon of an application program corresponding to a notification message if the notification message is received, where the preset identifier is used to identify that the application program has an unread notification message;
the touchoperation detection unit 2 is configured to send a request for browsing an unread notification message to the application program if it is detected that a user performs a preset touch operation on an icon of the application program;
and the unreadmessage display unit 3 is configured to display the unread notification message according to a preset display rule according to the request for browsing the unread notification message.
Optionally, the unreadmessage identification unit 1 is specifically configured to:
and if the notification message is received, displaying a corner mark used for marking the unread notification message on an icon of the application program corresponding to the notification message, wherein the number of the unread notification messages is marked in the corner mark.
Optionally, the unreadmessage display unit 3 is specifically configured to:
acquiring the display position of the icon of the application program according to the request for browsing the unread notification message;
and determining a display area of the unread notification message according to the display position of the icon of the application program, and displaying the unread notification message in the display area.
Optionally, referring to fig. 5, in another embodiment, the terminal 100 further includes:
and a blurring processing unit 4, configured to perform blurring processing on the display area of the unread notification message and the other screen display areas except for the icon of the application program.
Optionally, the terminal 100 further includes:
and the icon disablingcontrol unit 5 is used for disabling the application program corresponding to the icon in the other screen display area.
It should be noted that, since each unit in the terminal provided in the embodiment of the present invention is based on the same concept as that of the embodiment of the method of the present invention, the technical effect brought by the unit is the same as that of the embodiment of the method of the present invention, and specific contents may refer to descriptions in the embodiment of the method of the present invention, and are not described herein again.
Referring to fig. 6, a schematic block diagram of a terminal according to still another embodiment of the present invention is shown. The terminal in the present embodiment shown in fig. 6 may include: one ormore processors 601; one ormore input devices 602, one ormore output devices 603, andmemory 604. Theprocessor 601, theinput device 602, theoutput device 603, and thememory 604 are connected by a bus 605. Thememory 602 is used to store instructions and theprocessor 601 is used to execute instructions stored by thememory 602. Wherein theprocessor 601 is configured to:
if a notification message is received, displaying a preset identifier on an icon of an application program corresponding to the notification message, wherein the preset identifier is used for identifying that the application program has an unread notification message;
if the fact that a user executes preset touch operation on the icon of the application program is detected, a request for browsing the unread notification message is sent to the application program;
and displaying the unread notification message according to the request for browsing the unread notification message and a preset display rule.
Theprocessor 601 is further configured to:
and if the notification message is received, displaying a corner mark used for marking the unread notification message on an icon of the application program corresponding to the notification message, wherein the number of the unread notification messages is marked in the corner mark.
Theprocessor 601 is further configured to:
acquiring the display position of the icon of the application program according to the request for browsing the unread notification message;
and determining a display area of the unread notification message according to the display position of the icon of the application program, and displaying the unread notification message in the display area.
Theprocessor 601 is further configured to:
blurring the display area of the unread notification message and other screen display areas except the icon of the application program.
Theprocessor 601 is further configured to:
and disabling the application program corresponding to the icon in the other screen display area.
It should be understood that, in the embodiment of the present invention, theProcessor 601 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Theinput device 602 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and theoutput device 603 may include a display (LCD, etc.), a speaker, etc.
Thememory 604 may include both read-only memory and random access memory, and provides instructions and data to theprocessor 601. A portion of thememory 604 may also include non-volatile random access memory. For example, thememory 604 may also store device type information.
In a specific implementation, theprocessor 601, theinput device 602, and theoutput device 603 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the method provided in this embodiment of the present invention, and may also execute the implementation manner of the terminal described in this embodiment of the present invention, which is not described herein again.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.