CN113835574A - Application notification message processing method, device, storage medium and program product - Google Patents

Application notification message processing method, device, storage medium and program product Download PDF

Info

Publication number
CN113835574A
CN113835574A CN202111098217.7A CN202111098217A CN113835574A CN 113835574 A CN113835574 A CN 113835574A CN 202111098217 A CN202111098217 A CN 202111098217A CN 113835574 A CN113835574 A CN 113835574A
Authority
CN
China
Prior art keywords
application
frame
icon
message
display
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.)
Pending
Application number
CN202111098217.7A
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202111098217.7A priority Critical patent/CN113835574A/en
Publication of CN113835574A publication Critical patent/CN113835574A/en
Pending legal-status Critical Current

Links

Images

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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application relates to the technical field of terminal equipment, and provides a processing method, equipment, a storage medium and a program product of an application notification message, which are used for solving the problem that the application notification message on an ink screen cannot be clearly displayed. According to the method and the device, firstly, display parameters of the notification message of the target application are obtained, if the display parameters comprise display positions, sizes and fillet radiuses, then a display frame of the notification message is constructed based on the display parameters, for example, the notification message of the target application is a fillet rectangle, the constructed display frame is also a fillet rectangle, and after the display frame of the notification message is constructed, the notification message is finally displayed in the display frame. In summary, the embodiment of the application can highlight the content of the notification message by a method of constructing a display frame for the notification message of the target application, can efficiently, reasonably and clearly display the content of the notification message of the target application for the user, and can also improve the user experience.

Description

Application notification message processing method, device, storage medium and program product
Technical Field
The present application relates to the field of terminal device technologies, and in particular, to a method, a device, a storage medium, and a program product for processing an application notification message.
Background
With the development of internet and mobile communication technology, electronic devices such as smart phones have become indispensable in people's lives, and provide users with various functions and services.
With the continuous abundance of electronic devices in functionality, users are required to receive a large number of application notification messages every day, and with the development of electronic ink screen technology, such screens that are closer to natural reading and energy-saving are beginning to be used more and more by different types of electronic devices.
The notification message of the electronic device needs to be displayed on both the color screen and the ink screen. For example, when an instant messaging message is running in the background, if the message is received, the instant messaging message is notified in the screen, and if a short message is received, the instant messaging message is also notified in the screen.
However, the ink screen has the problem of inevitably low refresh rate due to its operation principle, which puts higher demands on the display design of the application notification message. Therefore, how to efficiently, reasonably and clearly show the application notification message content to the user becomes a problem to be solved.
Disclosure of Invention
The application aims to provide a processing method, equipment, a storage medium and a program product of an application notification message, which are used for solving the problem that the application notification message on an ink screen cannot be clearly displayed.
In a first aspect, the present application provides a method for processing an application notification message, which is applied to an ink-wash screen, and the method includes:
acquiring display parameters of a notification message of a target application;
constructing a display frame of the notification message based on the display parameters;
and displaying the notification message in the display frame.
In some embodiments, the display parameters include a display location, a size, and a corner radius;
the constructing a display frame of the notification message based on the display parameters includes:
and constructing a frame layer at the display position, and constructing a display frame of the notification message in the frame layer based on the size and the fillet radius.
In some embodiments, said displaying said notification message within said display border comprises:
searching an application icon of the target application in a prestored application icon set; each application icon in the application icon set is provided with a frame;
if the application icon of the target application is not found, acquiring the application icon of the target application;
adding a frame to the application icon of the target application to obtain the application icon with the frame of the target application;
displaying an application icon of a target application having a border and the notification message of the target application within the display border.
In some embodiments, after the obtaining the application icon of the target application and before adding a border to the application icon of the target application, the method further comprises:
and if the size of the application icon of the target application does not meet the preset size requirement, carrying out scaling processing on the application icon of the target application based on the preset size requirement.
In some embodiments, the adding a border to the application icon of the target application to obtain an application icon of the target application with a border includes:
constructing a first icon frame, wherein the size of the first icon frame meets the preset size requirement, and the fillet radius of the first display frame is the same as that of the application icon of the target application;
constructing a second icon frame based on the frame width requirement, wherein the geometric center of the second icon frame is the same as that of the first icon frame, the second icon frame is nested inside the first icon frame, and the fillet radius of the second icon frame is the same as that of the application icon of the target application;
filling border colors in the area between the first icon border and the second icon border to obtain border patterns;
and combining the application icon of the target application with the frame pattern to obtain the application icon with the frame of the target application.
In some embodiments, if the notification message and the other notification messages form a message packet for display, the constructing a display frame of the notification message based on the display parameter includes:
if the notification message is the first message in the message group, the outline of the display frame constructed based on the display parameters is the outline of the frame corresponding to the type of the first message;
if the notification message is an intermediate message of the message packet, the outer contour of the display frame constructed based on the display parameters is a frame outer contour corresponding to the type of the intermediate message;
and if the notification message is the last message of the message packet, the outer contour of the display frame constructed based on the display parameters is the frame outer contour corresponding to the last message type.
In some embodiments, the outline of the border corresponding to the first message type, the outline of the border corresponding to the middle message type, and the outline of the border corresponding to the middle message type are obtained by decomposing the outline of the outer border of the message packet.
In some embodiments, the outline of the border corresponding to the first message type has four contour lines connected end to end, the upper left corner and the upper right corner are rounded corners, and the lower left corner and the lower right corner are right corners;
the middle edge and the upper edge of the outline of the frame corresponding to the middle message type are open, and the middle edge and the upper edge of the outline of the frame are provided with three contour lines which are connected end to end, and the left lower corner and the right lower corner are right angles;
and the middle edge and the upper edge of the outline of the frame corresponding to the end message type are open, and the outline is provided with three contour lines connected end to end, and the lower left corner and the lower right corner are all round corners.
In some embodiments, multiple messages of the target application share the same application icon in the message packet, and each message notification content of the target application is presented side-by-side.
In a second aspect, the present application further provides a terminal device, including:
a display for displaying a user interface of a target application;
a memory for storing executable instructions of the processor;
a processor for executing the executable instructions to implement any of the methods as provided in the first aspect of the application.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where instructions, when executed by a processor of a terminal device, enable an electronic device to perform any one of the methods as provided in the first aspect of the present application.
In a fourth aspect, an embodiment of the present application provides a computer program product comprising a computer program that, when executed by a processor, performs any of the methods as provided in the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
based on the processing method of the application notification message, a user provides a clearer display effect for the user by adding the frame of the application notification message in the electronic equipment using the ink screen, so that the user can more effectively identify the notification content, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application. On the basis of the common knowledge in the field, the above preferred conditions can be combined randomly to obtain the preferred embodiments of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a software architecture of a terminal device according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a method for processing an application notification message according to an embodiment of the present application;
fig. 4 is a schematic flowchart of acquiring an application icon of a target application with a preset size according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a process of acquiring an application icon with a border according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a first icon frame and a second icon frame provided in the present embodiment;
fig. 7 is a schematic diagram of a frame pattern provided in an embodiment of the present application;
fig. 8 is a flowchart illustrating notification at different positions in the same group of notification messages configured with different frames according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating an effect of a first message type according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating an effect of an intermediate message type according to an embodiment of the present application;
fig. 11 is a schematic diagram illustrating an effect of a last message type according to an embodiment of the present application;
fig. 12 is a schematic diagram of an effect of combining and displaying three frame types according to an embodiment of the present application
Fig. 13 is a schematic flowchart of a method for processing an application notification message according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. The embodiments described are some, but not all embodiments of the present application. 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 application.
Also, in the description of the embodiments of the present application, "/" indicates or means, for example, a/B may indicate a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, "a plurality" means two or more unless otherwise indicated.
In order to solve the problem that the notification message cannot be clearly displayed for the ink screen application, the inventor conducted research and analysis on the working principle of the ink screen and the principle of the application function notification message. In view of the research and analysis that the notification message can be made clearer by framing the notification message, embodiments of the present application provide a method, an apparatus, a storage medium, and a program product for processing an application notification message to solve the problem that the notification message cannot be clearly displayed for an ink screen application.
The instant messaging message processing method provided by the present application will be described with reference to the following embodiments.
The inventive concept of the present application can be summarized as follows: the method comprises the steps of obtaining display parameters of a notification message of a target application, wherein the display parameters comprise a display position, a size and a fillet radius, constructing a display frame of the notification message based on the display parameters, for example, if the notification message of the target application is a fillet rectangle, the constructed display frame is also the fillet rectangle, and displaying the notification message in the display frame after the display frame of the notification message is constructed. In summary, the embodiment of the application can highlight the content of the notification message by a method of constructing a display frame for the notification message of the target application, can efficiently, reasonably and clearly display the content of the notification message of the target application for the user, and can also improve the user experience.
After the main inventive concepts of the embodiments of the present application are introduced, some simple descriptions are provided below for application scenarios to which the technical solutions of the embodiments of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiments of the present application and are not limited. In specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
First, fig. 1 shows a schematic configuration diagram of a terminal device 100.
The following specifically describes the embodiment by taking the terminal device 100 as an example. It should be understood that the terminal device 100 shown in fig. 1 is only an example, and the terminal device 100 may have more or less components than those shown in fig. 1, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a terminal device 100 according to an exemplary embodiment is exemplarily shown in fig. 1. As shown in fig. 1, the terminal device 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (Wi-Fi) module 170, a processor 180, a bluetooth module 181, and a power supply 190.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 performs various functions of the terminal device 100 and data processing by executing software programs or data stored in the memory 120. The memory 120 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 120 stores an operating system that enables the terminal device 100 to operate. The memory 120 may store an operating system and various application programs, and may also store program codes for performing the methods described in the embodiments of the present application.
The display unit 130 may be used to receive input numeric or character information, generate signal input related to user settings and function control of the terminal device 100, and specifically, the display unit 130 may include a touch screen 131 disposed on the front surface of the terminal device 100, and may collect touch operations of a user thereon or nearby, for example, sliding the screen to implement page turning, sliding an application notification message, dragging a scroll box, and the like.
The display unit 130 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal apparatus 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front surface of the terminal device 100. The display screen 132 may be an ink screen. The display unit 130 may be configured to display a notification message in the present application, display a user interface of an instant messaging tool, display a picture of an opposite party during an audio/video call, and the like.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the terminal device 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera 140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The terminal device 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The terminal device 100 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The terminal device 100 may also be provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and outputs the audio data to the RF circuit 110 to be transmitted to, for example, another terminal device, or outputs the audio data to the memory 120 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to a short-distance wireless transmission technology, and the terminal device 100 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband internet access for the user.
The processor 180 is a control center of the terminal device 100, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. In the present application, the processor 180 may run an operating system, an application program, a user interface display, and a touch response, and the processing method described in the embodiments of the present application. Further, the processor 180 is coupled with the display unit 130.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the terminal device 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) having a bluetooth module via the bluetooth module 181, so as to perform data interaction.
The terminal device 100 also includes a power supply 190 (such as a battery) for powering the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The terminal device 100 may further be configured with a power button for powering on and off the terminal device, and locking the screen.
Fig. 2 is a block diagram of a software configuration of the terminal device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer, from top to bottom, respectively.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (APl) and a programming framework for an application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, short messages, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying a picture.
The phone manager is used to provide the communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources, such as localized strings, icons, pictures, layout files, video files, etc., to the application.
The notification manager allows the application to display notification information (e.g., message digest of short message, message content) in the floating window, can be used to convey notification-type messages, and can automatically disappear after a short dwell without user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A 2D (an animation mode) graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The terminal device 100 in the embodiment of the present application may be an electronic device with an ink screen, such as a mobile phone, a tablet computer, and a wearable device.
A flowchart of a processing method for an application notification message provided in an embodiment of the present application is shown in fig. 3, and includes the following steps:
in step 301, display parameters of a notification message of a target application are acquired.
In some embodiments, the display parameters primarily include display location, size, and corner radius. The original notification of the target application is uniformly configured with attributes such as size, background color, character color and the like by the operating system, but there are some cases that the application program can freely define the appearance form of the notification. The method mainly obtains the original notification of the target application and the parameter information of the application icon, and comprises the display position, the external dimension and the corner type of the original notification, if the original notification is a rounded rectangle, the corner radius needs to be obtained, and also comprises the external dimension and the corner type of the application icon, and if the application icon is a rounded rectangle, the corner radius needs to be obtained. The display parameters are not limited to the above, but also include the current screen resolution. One of the purposes of acquiring the screen resolution is to determine the display size of an application icon of a target application. The display sizes of the application icons of the devices of the same model are the same, and the display sizes of the devices of different models can be different.
After obtaining the display parameters of the notification message of the target application, in step 302, a display frame of the notification message is constructed based on the display parameters.
In some embodiments, constructing a display frame for the notification message based on the display parameters may be implemented as: and constructing a frame layer at the display position of the original notification of the target application, and constructing a display frame of the notification message in the frame layer based on the size and the fillet radius. For example, the width and height of the notification message are x and y, respectively, if the corner type is a rounded rectangle, the radius of the rounded corner is r, and if the corner type is a right-angled rectangle, r may be regarded as 0. According to the data, a new picture layer which is completely consistent with the original notification shape size is drawn, and a rectangular or rounded rectangular frame with a specific thickness is drawn at the edge of the new picture layer, namely the display frame. The thickness of the frame needs to be determined according to the current screen resolution and the original notification size to obtain the best display effect.
In step 303, a notification message of the target application is displayed within the built display frame.
In some embodiments, the content that needs to be displayed on the display screen includes: the constructed display frame, the content of the notification message of the target application, and the content comprises the application icon of the target application and the message content.
In order to clearly display the application icon of the target application, in the embodiment of the application, not only the notification message needs to be added with a frame, but also the application icon of the target application is added with a frame. Therefore, when the notification message is displayed, the frame can be added to the icon before the notification message is displayed.
In order to avoid adding a border to an application icon of a target application every time the application icon is displayed, which results in repeatedly executing the same operation, in this embodiment of the present application, an application icon set may be set, where the application icon set is used to store the application icon of each application after the border is added. Therefore, when the notification message of the target application is displayed, the application icons can be obtained from the application icon set, resource consumption caused by repeatedly adding frames to the application icons is avoided, and the speed of obtaining the application icons is increased. As shown in fig. 4, may be implemented as:
in step 401, searching an application icon of a target application in a pre-stored application icon set; as described above, each application icon in the set of application icons has a border.
And if the application icon of the target application is found, displaying by adopting the application icon.
In step 402, if the application icon of the target application is not found, the application icon of the target application is obtained.
In step 403, a border is added to the application icon of the target application, so as to obtain an application icon with a border of the target application.
In order to enable the application icon of the target application to obtain a better display effect, after the application icon of the target application is obtained and before a frame is added to the application icon of the target application, whether the size of the application icon is proper or not is judged, and if the size of the application icon of the target application does not meet a preset size requirement (namely the display size required by displaying the notification message), the application icon of the target application is subjected to scaling processing based on the preset size requirement.
For example, if the width and height of the application icon of the target application are Ws and Hs, respectively, the width and height required in the preset size requirement to be displayed are Wd and Hd, respectively, and Wd is usually Hd. If Wd is less than Ws or Hd is less than Hs, the application icon of the target application is too large, and the compression processing needs to be carried out on the application icon; if Wd > Ws and Hd > Hs, the application icon of the target application is too small, and needs to be amplified. The scaled dimensions Ws2 and Hs2 are calculated as follows:
1) and if Ws is more than or equal to Hs, namely the width of the application icon is more than or equal to the height, the compression multiplying factor r is Wd/Ws, Ws2 is Ws r, and Hs2 is Hs r and Hd.
2) And if Ws is less than Hs, namely the width of the application icon is less than the height, the compression ratio r is Hd/Hs, Ws2 is Ws r and Wd, and Hs2 is Hs r and Hd.
Obviously, since Hd2 ≦ Hd, Wd2 ≦ Wd, i.e., the scaled application icon size is always less than or equal to the preset size, the scaled application icon can be displayed in its entirety and without stretching in the application icon area of the notification message of the target application.
And scaling the application icon obtained in the step 402 according to the compression ratio r to form the application icon of the target application required in the step 403.
Further, after the application icon of the target application with the preset size is obtained, a border is added to the application icon of the target application to obtain an application icon with a border of the target application, which may be implemented as the steps shown in fig. 5:
in step 501, a first icon frame is constructed, the size of the first icon frame meets the preset size requirement, and the fillet radius of the first display frame is the same as the fillet radius of the application icon of the target application.
In step 502, a second icon frame is constructed based on the frame width requirement, the geometric center of the second icon frame is the same as that of the first icon frame, the second icon frame is nested inside the first icon frame, and the fillet radius of the second icon frame is the same as that of the application icon of the target application.
In step 503, the border color is filled in the area between the first icon border and the second icon border to obtain a border pattern.
In step 504, the application icon of the target application is merged with the border pattern to obtain an application icon with a border of the target application.
For example, as shown in fig. 6, the constructed first icon frame is a rounded rectangle e1, the width and height of the first icon frame are Wd and Hd respectively, that is, the preset size requirement is satisfied, the radius of the rounded corner is Rd, there is no filling color, and the line color is the frame color; the constructed second icon frame is a rounded rectangle e2, the frame width of the second icon frame is t, which can be predetermined according to the screen resolution and the application size, the width and height of the second icon frame are Wd-2t and Hd-2t, respectively, the rounded radius is Rd, no filling color is provided, the line color is also the frame color, e1 and e2 are combined together based on the same geometric center, the frame color is filled in the area between e1 and e2, and a frame pattern e is formed, as shown in fig. 7, it should be noted that the horizontal and vertical coordinate axes in fig. 7 are not displayed as the content of the pattern e. And finally, combining the application icon of the target application with the frame pattern e to obtain the application icon with the frame of the target application.
In step 404, an application icon of the target application having a border and a notification message of the target application are displayed within the display border.
In other embodiments, in some cases, it may be desirable to merge several application notification messages into a group that is displayed separately from other notification messages as a whole. If the notification message and other notification messages form a message packet for displaying, a display frame of the notification message is constructed based on the display parameters, and at this time, if a rounded rectangular frame is used, a rectangular frame needs to be configured for the middle notification, that is, different frames need to be configured for notifications at different positions in a group, and the specific steps may be implemented as shown in fig. 8:
in step 801, if the notification message is the first message in the message packet, the outer contour of the display frame constructed based on the display parameters is the frame outer contour corresponding to the type of the first message.
As the assumption in the foregoing, if the width and height of the notification message are x and y, respectively, if the corner type is a rounded rectangle, the radius of the rounded corner is r, and if the corner type is a right-angled rectangle, it can be considered that r is 0, and a group includes n notifications, the embodiment of the present application exemplarily provides 3 types of frames: the first frame type corresponds to the first message type, and four contour lines connected end to end, the upper left corner and the upper right corner of the outline of the frame corresponding to the first message type are rounded corners, and the lower left corner and the lower right corner of the outline of the frame corresponding to the first message type are right corners. Correspondingly, the rounded corner is the first second quadrant of a circle with radius r, corresponding to the top left corner and the top right corner, the left and right sides have length y-r, the top side has length x-2r, the bottom side has length x, and the frame effect diagram of the first notification message is shown in fig. 9.
In step 802, if the notification message is an intermediate message of the message packet, the outer contour of the display frame constructed based on the display parameters is a frame outer contour corresponding to the type of the intermediate message.
And the second frame type corresponds to the middle message type, and the middle edge and the upper edge of the outer contour of the frame corresponding to the middle message type are open and provided with three contour lines which are connected end to end, and the lower left corner and the lower right corner are right angles. Correspondingly, the type of the intermediate message is used for displaying the 2 nd to n-1 th notifications in the packet, and is composed of a left right angle, a right angle, a left side and a right side, and a lower side, wherein the length of the left side and the right side is y, the length of the lower side is x, and a frame effect diagram of the intermediate message is shown in fig. 10.
In step 803, if the notification message is the last message of the message packet, the outer contour of the display frame constructed based on the display parameters is the outer contour of the frame corresponding to the type of the last message.
And the third frame type corresponds to the last message type, and the middle edge and the upper edge of the outer contour of the frame corresponding to the last message type are open and provided with three contour lines connected end to end, and the lower left corner and the lower right corner are all round corners. Correspondingly, the nth notification in the last message type for displaying the grouping is composed of a left rounded corner, a lower rounded corner, a right rounded corner, a left rounded corner, a right rounded corner and a lower rounded corner, the rounded corner is a third four-quadrant of a circle with the radius r, the length of the left edge and the right edge is y-r, the length of the lower edge is x-2r, a frame effect diagram of the last message is shown in fig. 11, and the combination and display effects of the three frame types are shown in fig. 12. As can be seen from fig. 12, a group of messages has a complete rounded rectangular border, visually characterizing a group of messages.
It should be noted that the outline of the border corresponding to the first message type, the outline of the border corresponding to the middle message type, and the outline of the border corresponding to the middle message type are obtained by decomposing the outline of the outer border of the message packet. Meanwhile, if a plurality of notification messages from the target application are received, the plurality of messages of the target application share the same application icon in the message grouping, and each message notification content of the target application is displayed side by side. As illustrated in fig. 12, messages within the same group of messages are tiled in a side-by-side presentation.
In another embodiment, to facilitate systematic understanding of the processing method of the application notification message provided in the embodiments of the present application, the following description with reference to fig. 13 may be implemented as follows:
in step 1301, display parameters of a notification message of a target application are acquired.
In step 1302, an application notification border layer is constructed based on the display parameters.
In step 1303, the application notification border layer and the original application notification border layer are merged to obtain an application notification containing a border.
In step 1304, based on the display parameters and the preset size requirement, the application icon of the target application is scaled to obtain an application icon with a border.
In step 1305, a border is drawn for the application icon.
In step 1306, the application icon is merged with the border of the application icon to obtain an application icon including the border, and a notification message of the target application is displayed.
By adopting the processing method of the application notification message, the function of clearly displaying the received application notification when the electronic equipment using the ink screen is used can be realized, the fuzzy boundary of the application notification is further avoided, and the notification content can be efficiently, reasonably and clearly displayed for the user.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
The embodiments provided in the present application are only a few examples of the general concept of the present application, and do not limit the scope of the present application. Any other embodiments extended according to the scheme of the present application without inventive efforts will be within the scope of protection of the present application for a person skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A processing method of an application notification message is applied to an ink screen, and the method comprises the following steps:
acquiring display parameters of a notification message of a target application;
constructing a display frame of the notification message based on the display parameters;
and displaying the notification message in the display frame.
2. The method of claim 1, wherein the display parameters include display location, size, and corner radius;
the constructing a display frame of the notification message based on the display parameters includes:
and constructing a frame layer at the display position, and constructing a display frame of the notification message in the frame layer based on the size and the fillet radius.
3. The method of claim 1, wherein said displaying the notification message within the display bezel comprises:
searching an application icon of the target application in a prestored application icon set; each application icon in the application icon set is provided with a frame;
if the application icon of the target application is not found, acquiring the application icon of the target application;
adding a frame to the application icon of the target application to obtain the application icon with the frame of the target application;
displaying an application icon of a target application having a border and the notification message of the target application within the display border.
4. The method of claim 3, wherein after the obtaining the application icon of the target application and before adding a border to the application icon of the target application, the method further comprises:
and if the size of the application icon of the target application does not meet the preset size requirement, carrying out scaling processing on the application icon of the target application based on the preset size requirement.
5. The method of claim 3, wherein the adding a border to the application icon of the target application to obtain the application icon of the target application with a border comprises:
constructing a first icon frame, wherein the size of the first icon frame meets the preset size requirement, and the fillet radius of the first display frame is the same as that of the application icon of the target application;
constructing a second icon frame based on the frame width requirement, wherein the geometric center of the second icon frame is the same as that of the first icon frame, the second icon frame is nested inside the first icon frame, and the fillet radius of the second icon frame is the same as that of the application icon of the target application;
filling border colors in the area between the first icon border and the second icon border to obtain border patterns;
and combining the application icon of the target application with the frame pattern to obtain the application icon with the frame of the target application.
6. The method according to any one of claims 1-5, wherein if the notification message and other notification messages form a message packet for presentation, the constructing a display frame of the notification message based on the display parameters comprises:
if the notification message is the first message in the message group, the outline of the display frame constructed based on the display parameters is the outline of the frame corresponding to the type of the first message;
if the notification message is an intermediate message of the message packet, the outer contour of the display frame constructed based on the display parameters is a frame outer contour corresponding to the type of the intermediate message;
and if the notification message is the last message of the message packet, the outer contour of the display frame constructed based on the display parameters is the frame outer contour corresponding to the last message type.
7. The method of claim 6, wherein the outline of the border corresponding to the first message type, the outline of the border corresponding to the middle message type, and the outline of the border corresponding to the middle message type are obtained by decomposing the outline of the outer border of the message packet.
8. The method of claim 6,
four contour lines which are connected end to end, round corners at the upper left corner and the upper right corner, and right corners at the lower left corner and the lower right corner are arranged in the outline of the frame corresponding to the first message type;
the middle edge and the upper edge of the outline of the frame corresponding to the middle message type are open, and the middle edge and the upper edge of the outline of the frame are provided with three contour lines which are connected end to end, and the left lower corner and the right lower corner are right angles;
and the middle edge and the upper edge of the outline of the frame corresponding to the end message type are open, and the outline is provided with three contour lines connected end to end, and the lower left corner and the lower right corner are all round corners.
9. The method according to claim 6, wherein a plurality of messages of the target application share the same application icon in the message packet, and each message notification content of the target application is presented side by side.
10. A terminal device, comprising:
a display for a user interface of a target application;
a memory for storing executable instructions of the processor;
a processor for executing the executable instructions to implement the method of processing an application notification message as claimed in any of claims 1 to 9.
CN202111098217.7A 2021-09-18 2021-09-18 Application notification message processing method, device, storage medium and program product Pending CN113835574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111098217.7A CN113835574A (en) 2021-09-18 2021-09-18 Application notification message processing method, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111098217.7A CN113835574A (en) 2021-09-18 2021-09-18 Application notification message processing method, device, storage medium and program product

Publications (1)

Publication Number Publication Date
CN113835574A true CN113835574A (en) 2021-12-24

Family

ID=78959910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111098217.7A Pending CN113835574A (en) 2021-09-18 2021-09-18 Application notification message processing method, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113835574A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317541A (en) * 2014-09-30 2015-01-28 广州三星通信技术研究有限公司 Method and Equipment for displaying remark information of pictures in terminal
CN106412339A (en) * 2016-11-29 2017-02-15 努比亚技术有限公司 Notification message processing method and apparatus
CN107086027A (en) * 2017-06-23 2017-08-22 青岛海信移动通信技术股份有限公司 Character displaying method and device, mobile terminal and storage medium
CN107688422A (en) * 2017-09-05 2018-02-13 广东欧珀移动通信有限公司 Notification message display methods and device
CN108803964A (en) * 2018-06-08 2018-11-13 Oppo广东移动通信有限公司 Buoy display methods, device, terminal and storage medium
CN109101147A (en) * 2018-06-28 2018-12-28 维沃移动通信有限公司 A kind of message notification display method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317541A (en) * 2014-09-30 2015-01-28 广州三星通信技术研究有限公司 Method and Equipment for displaying remark information of pictures in terminal
CN106412339A (en) * 2016-11-29 2017-02-15 努比亚技术有限公司 Notification message processing method and apparatus
CN107086027A (en) * 2017-06-23 2017-08-22 青岛海信移动通信技术股份有限公司 Character displaying method and device, mobile terminal and storage medium
CN107688422A (en) * 2017-09-05 2018-02-13 广东欧珀移动通信有限公司 Notification message display methods and device
CN108803964A (en) * 2018-06-08 2018-11-13 Oppo广东移动通信有限公司 Buoy display methods, device, terminal and storage medium
CN109101147A (en) * 2018-06-28 2018-12-28 维沃移动通信有限公司 A kind of message notification display method and terminal

Similar Documents

Publication Publication Date Title
JP2022531279A (en) Methods and related equipment for switching between parent and child pages
CN111225108A (en) Communication terminal and card display method of negative screen interface
CN113038141B (en) Video frame processing method and electronic equipment
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111031377B (en) Mobile terminal and video production method
CN114639358B (en) Ink screen refreshing method, terminal device, storage medium and program product
CN113934340B (en) Terminal equipment and progress bar display method
CN114489429B (en) Terminal equipment, long screen capturing method and storage medium
CN114546219B (en) Picture list processing method and related device
CN113360122B (en) Mobile terminal and text display method thereof
CN114063945B (en) Mobile terminal and image display method thereof
CN111163220B (en) Display method, communication terminal and computer storage medium
CN114067758B (en) Mobile terminal and image display method thereof
CN113835574A (en) Application notification message processing method, device, storage medium and program product
CN114449171A (en) Method for controlling camera, terminal device, storage medium and program product
CN113641431A (en) Method and terminal equipment for enhancing display of two-dimensional code
CN112363653A (en) Ink screen display method and terminal
CN115033199A (en) Mobile terminal and image display method thereof
CN113760164A (en) Display device and response method of control operation thereof
CN112351144A (en) Mobile terminal and state prompting method thereof
CN111182361B (en) Communication terminal and video previewing method
CN113253905B (en) Touch method based on multi-finger operation and intelligent terminal
CN115291789B (en) Handwriting fitting method, handwriting fitting device, terminal equipment and medium
CN113407082B (en) Font color control method and related device applied to terminal equipment
US20240095988A1 (en) Method and Apparatus for Animation Transition in Application

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