CN107544796A - A kind of informing message display method, device and user terminal - Google Patents

A kind of informing message display method, device and user terminal Download PDF

Info

Publication number
CN107544796A
CN107544796A CN201610503546.8A CN201610503546A CN107544796A CN 107544796 A CN107544796 A CN 107544796A CN 201610503546 A CN201610503546 A CN 201610503546A CN 107544796 A CN107544796 A CN 107544796A
Authority
CN
China
Prior art keywords
component
informing
text
title
display properties
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.)
Granted
Application number
CN201610503546.8A
Other languages
Chinese (zh)
Other versions
CN107544796B (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer 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 Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201610503546.8A priority Critical patent/CN107544796B/en
Publication of CN107544796A publication Critical patent/CN107544796A/en
Application granted granted Critical
Publication of CN107544796B publication Critical patent/CN107544796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present invention provides a kind of informing message display method, device and user terminal.Informing message display method is applied to the software client installed in user terminal, and methods described includes:First, according to the new informing component of already present informing building component in user terminal operations systematic difference Program Interfaces.Then, the text display properties of the text component in the new informing component is extracted.Receive the informing message that the background server of the software client is sent.Text display properties setting is carried out to the Custom Notification column at the informing interface of the user terminal operations system according to the text display properties.Finally, the informing message is included on the Custom Notification column.Using informing message display method, device and the user terminal, the informing message that software client is shown by Custom Notification column can reliably be compatible with user terminal operations system.

Description

A kind of informing message display method, device and user terminal
Technical field
The present invention relates to application software technology field, in particular to a kind of informing message display method, device and User terminal.
Background technology
With the development of electronic equipment, more and more user terminals for supporting different operating system version and type are ground Hair, use.As increasing application program (Application, App) proceeds by personalized customization, for example, it is self-defined Informing display format, cause the resource pattern that operating system provides can not meet all Custom Notification column display formats, The display abnormal conditions such as unclear and background coincidence are shown so as to informing content occur.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of informing message display method, device and user Terminal, all Custom Notification columns can not be met to improve the resource pattern that user terminal operations system provides in the prior art Display demand, informing content is caused to show the problem of abnormal.
The embodiment of the present invention provides a kind of informing message display method, applied to the software client installed in user terminal End, methods described include:
Lead to according to already present informing building component in user terminal operations systematic difference Program Interfaces is new Know column component;
Extract the text display properties of the text component in the new informing component;
Receive the informing message that the background server of the software client is sent;
Custom Notification column according to the text display properties to the informing interface of the user terminal operations system Carry out text display properties setting;
The informing message is included on the Custom Notification column.
Preferably, the step of text display properties of the text component in the extraction new informing component wraps Include:
Identify the title component and content components included by the text component in the new informing component;
Different marks is set to the title component included by the text component and content components;
View container is created, tagged title component and content components will be set to be added in the view container;
The text component institute in the new informing component is found out from the view container according to the mark of setting Including title component and content components;
Title display properties is extracted from the title component, content display category is extracted from the content components Property, obtain the text display properties of the text component.
Preferably, the mark according to setting is found out from the view container in the new informing component The step of title component and content components included by text component, including:
According to view container described in the mark recursive traversal of setting, the group of text in the new informing component is found out Title component and content components included by part.
Another preferred embodiment of the present invention provides a kind of informing message display device, applied to installed in user terminal Software client, the informing message display device include:
Informing building component unit, for according to existing in user terminal operations systematic difference Program Interfaces The new informing component of informing building component;
Text display properties extraction unit, the text for extracting the text component in the new informing component are shown Attribute;
Informing message reception units, the informing that the background server for receiving the software client is sent disappear Breath;
Text display properties setting unit, for according to the text display properties to the user terminal operations system The Custom Notification column at informing interface carries out text display properties setting;
Informing message display unit, for the informing message to be included on the Custom Notification column.
Preferably, the text display properties extraction unit includes:
Component recognition subelement, for identifying the set of titles included by the text component in the new informing component Part and content components;
Mark sets subelement, different for being set to the title component included by the text component and content components Mark;
View container creates subelement, for creating view container, will set tagged title component and content components It is added in the view container;
Component searches subelement, and the new informing is found out from the view container for the mark according to setting Title component and content components included by text component in component;
Attributes extraction subelement, for extracting title display properties from the title component, from the content components In extract content display properties, obtain the text display properties of the text component.
Preferably, the component searches subelement, for view container described in the mark recursive traversal according to setting, searches The title component and content components included by text component gone out in the new informing component.
Another preferred embodiment of the present invention provides a kind of user terminal, including:
Memory;
Processor;And
The software client that is installed in the memory and shown applied to the informing message of the software client Device, the informing message display device includes one or more SFU software functional units by the computing device, described Informing message display device includes:
Informing building component unit, for according to existing in user terminal operations systematic difference Program Interfaces The new informing component of informing building component;
Text display properties extraction unit, the text for extracting the text component in the new informing component are shown Attribute;
Informing message reception units, the informing that the background server for receiving the software client is sent disappear Breath;
Text display properties setting unit, for according to the text display properties to the user terminal operations system The Custom Notification column at informing interface carries out text display properties setting;
Informing message display unit, for the informing message to be included on the Custom Notification column.
Compared with prior art, informing message display method, device and user terminal provided in an embodiment of the present invention, peace New informing component can be created mounted in the software client of user terminal, the new informing component is grasped according to user terminal Make already present informing building component in systematic difference Program Interfaces, thus, using from new informing component In the text display properties of text component that extracts to the self-defined logical of the informing interface of the user terminal operations system After knowing that column carries out text display properties setting, use can be reliably compatible with by being shown in the informing message on the Custom Notification column Family terminal operating system, it effectively prevent the abnormal situation of informing content display and occur.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is that user terminal and a server communication that present pre-ferred embodiments provide interacts schematic diagram.
Fig. 2 is a kind of block diagram of user terminal shown in Fig. 1.
Fig. 3 is a kind of functional unit block diagram of informing message display device shown in Fig. 2.
Fig. 4 is a kind of flow chart for informing message display method that present pre-ferred embodiments provide.
Fig. 5 is the schematic diagram for the sub-step that step S402 includes.
Main element symbol description
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, it is that at least user terminal 100 that present pre-ferred embodiments provide communicates with server 200 Interaction schematic diagram.The user terminal 100 can be communicated by network 300 with the server 200, to enter row data communication Or interaction.The server 200 can provide at least one software client 110 suitable for various operating systems, such as apply The installation kit of program (Application, APP) is downloaded for the user terminal 100.The user terminal 100 passes through the net After network 300 accesses the server 200, it can be downloaded by the network 300 from server 200 and be applied to the user terminal 100 Operating system software client 110 and installed.
In the present embodiment, the server 200 may be, but not limited to, web site server, ftp (file Transfer protocol, FTP) server etc..The user terminal 100 may be, but not limited to, personal electricity Brain (personal computer, PC), tablet personal computer, smart mobile phone, personal digital assistant (personal digital Assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..The network 300 can be, But it is not limited to, cable network or wireless network.The operating system of the user terminal 100 may be, but not limited to, Android (Android) system, IOS systems, Windows phone systems etc..Preferably, in the present embodiment, the user terminal 100 Operating system is Android system.
As shown in Fig. 2 it is the block diagram of the user terminal 100 shown in Fig. 1.The user terminal 100 includes software Client 110, informing message display device 120, memory 101, storage control 102, processor 103, Peripheral Interface 104th, input-output unit 105, audio unit 106, display unit 107 and radio frequency unit 108.
The memory 101, storage control 102, processor 103, Peripheral Interface 104, input-output unit 105, sound Frequency unit 106, display unit 107 and 108 each element of radio frequency unit are directly or indirectly electrically connected between each other, to realize The transmission or interaction of data.For example, these elements can realize electricity by one or more communication bus or signal wire between each other Property connection.The informing message display device 120 can be deposited including at least one in the form of software or firmware (firmware) The software function module for being stored in the memory 101 or being solidificated in the software client 110.The memory 101 is deposited Contain the software client 110 that the user terminal 100 is downloaded and installed from the server 200, the informing message Display device 120 is applied to software client 110.The processor 103 is used to perform holding of storing in the memory 101 Row module, such as software function module included by the informing message display device 120 and computer program etc..
Wherein, the memory 101 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 101 is used for storage program, the processor 103 after execute instruction is received, Perform described program.The processor 103 and other access of possible component to memory 101 can be in the storage controls Carried out under the control of device 102.
The processor 103 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned processor can To be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), application specific integrated circuit (ASIC), ready-made programmable gate Array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware components.Can be real Now or perform the embodiment of the present invention in disclosed each method, step and logic diagram.General processor can be microprocessor Device or the processor can also be any conventional processors etc..
Various input/output devices are coupled to the processor 103 and the memory by the Peripheral Interface 104 101.In certain embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be real in one single chip It is existing.In some other example, they can be realized by independent chip respectively.
The input-output unit 105 is used to be supplied to user input data to realize user and the user terminal 100 Interaction.The input-output unit 105 may be, but not limited to, mouse and keyboard etc..
The audio unit 106 provides a user COBBAIF, its may include one or more microphones, one or more Individual loudspeaker and voicefrequency circuit.
The display unit 107 provided between the user terminal 100 and user an interactive interface (such as user behaviour Make interface) or for display image data.In the present embodiment, the display unit 107 can be liquid crystal display or touch-control Display.If touch control display, it can be the capacitance type touch control screen or electric resistance touch-control for supporting single-point and multi-point touch operation Screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense the one or more on the touch control display Touch control operation caused by opening position, and the touch control operation that this is sensed transfers to processor 103 to be calculated and handled.
The radio frequency unit 108 be used for receive and send radio wave signal (such as electromagnetic wave), realize radio wave with The mutual conversion of electric signal, it is logical between the user terminal 100 and the network 300 or other communication equipments so as to realize Letter.
It is appreciated that structure shown in Fig. 2 is only to illustrate, user terminal 100 may also include it is more more than shown in Fig. 2 or Less unit block, or there is the configuration different from shown in Fig. 2.Each unit component shown in Fig. 2 can use hardware, Software or its combination are realized.
Referring to Fig. 3, it is the notice applied to software client 110 shown in Fig. 2 of present pre-ferred embodiments offer The functional unit block diagram of column message display device 120.The informing message display device 120 includes informing building component list Member 121, text display properties extraction unit 122, informing message reception units 123, the and of text display properties setting unit 124 Informing message display unit 125.
The informing building component unit 121 is used to be connect according to the application programming of the operating system of user terminal 100 The new informing group of already present informing building component in mouth (Application Programming Interface, API) Part.
There is the informing component that system is supported in the operating system of user terminal 100, the informing component includes using The operating system of family terminal 100 supports the informing message display properties of display.Each software client 110 is installed to user terminal After 100, the informing component supported by API Calls operating system, and the informing component supported according to operating system A new informing component is created, the informing that the new informing component includes the support of the operating system of user terminal 100 disappears Cease display properties.
The text display properties extraction unit 122 is used for the text for extracting the text component in the new informing component This display properties.
Generally, informing message includes icon (icon), title (title) and content (message).Wherein, Title and content are mainly text, and in the prior art when carrying out the display of informing message, what can not normally be shown is usually text This message, such as title and content.The text display properties of text component in new informing component is that user terminal 100 operates What system was supported, thus, the text display properties that text display properties extraction unit 122 extracts is that user terminal 100 operates What system was supported.
Wherein, text display properties can include the color of text and the size of text, can also include the font of text With word special efficacy etc..
The background server 200 that the informing message reception units 123 are used to receive the software client 110 is sent Informing message.
When software client 110 needs to show customized informing message, server 200 can send display informing Event, it would be desirable to which the informing message of displaying is sent to informing message reception units 123.
The text display properties setting unit 124 is used for according to the text display properties to the user terminal 100 The Custom Notification column at the informing interface of operating system carries out text display properties setting.
The informing message display unit 125 is used to include the informing message on the Custom Notification column.
The text display properties that text display properties setting unit 124 extracts according to text display properties extraction unit 122 Text display properties setting is carried out to Custom Notification column, Custom Notification column then can be according to literary defined in text display properties The display informing message such as this color and the size of text.Because the text that text display properties extraction unit 122 extracts shows It is that the operating system of user terminal 100 is supported to show attribute, thus informing message can be normally displayed, and is not in display The display abnormal conditions such as unclear and background coincidence.
In use, the operating system of user terminal 100 may defines the difference of title and content in informing message Display properties, accordingly, the text component in informing component include title component and content components.Title is shown in order to realize Show the extraction of attribute and content display properties, in the present embodiment, the text display properties extraction unit 122 includes component recognition Subelement 1221, mark set subelement 1222, view container to create subelement 1223, component lookup subelement 1224 and attribute Extract subelement 1225.
The component recognition subelement 1221 is used to identify included by the text component in the new informing component Title component and content components.
Included text component and the informing group deposited in the operating system of user terminal 100 in new informing component Included text component is consistent in part.Different, the group according to the informing Element format defined in the operating system of user terminal 100 Part identification subelement 1221 can take various forms the title included by the text component identified in new informing component Component and content components.Such as:If title component defines title display properties, content using setContenttitle () function Component defines content display properties using setContentmessage () function, then, component recognition subelement 1221 can lead to Cross keyword to search, identify title component and content components, such as use " title " to find out title component as keyword, " message " is used to find out content components as keyword.
The mark sets subelement 1222 to be used to set the title component included by the text component and content components Put different marks.It is convenient, rapidly search and identify title component and content components with subsequent applications.
The view container creates subelement 1223 and is used to create view container, will set tagged title component and interior Hold component to be added in the view container.
It is described new for being found out according to the mark of setting from the view container that the component searches subelement 1224 Informing component in text component included by title component and content components.
Alternatively, the component searches the view container according to the mark recursive traversal of setting of subelement 1224, searches The title component and content components included by text component gone out in the new informing component.
The attributes extraction subelement 1225 is used to extract title display properties from the title component, from described interior Hold in component and extract content display properties, obtain the text display properties of the text component.Correspondingly, text display properties Setting unit 124 leads to according to the title display properties and content display properties of extraction to the operating system of user terminal 100 Know that the Custom Notification column at column interface carries out text display properties setting, so that Custom Notification column is shown by the title of setting Show the title in attribute display informing message, the content in informing message is shown according to content display properties.
In order that the scheme for obtaining the embodiment of the present invention is apparent, now carry out illustrated below.
Illustrated so that the operating system of user terminal 100 is Android android system as an example.When software client 110 After being attached to user terminal 100, API Calls android system that informing building component unit 121 passes through android system Already present informing component (Notification) itself, and created newly according to the already present Notification Notification.Component recognition subelement 1221 is identified included by the text component in the new Notification Title component and content components.Mark sets subelement 1222 to set the title component included by text component and content components Different marks.View container creates subelement 1223 and creates view container, will set tagged title component and content group Part is added in view container.Component searches mark recursive traversal view container of the subelement 1224 according to setting, finds out new Informing component in text component included by title component and content components.Attributes extraction subelement 1225 is from set of titles Title display properties is extracted in part, content display properties is extracted from content components.When the backstage of software client 110 takes When business device 200 issues the informing message for needing to show, the event of display informing, informing message reception units 123 are sent The informing message that then the reception server 200 is sent.Text display properties setting unit 124 is according to title display properties and content Display properties carries out display properties setting to the Custom Notification column at the informing interface of the operating system of user terminal 100.Notice Informing message then is included making by oneself by column message display unit 125 according to the title display properties of setting and content display properties Adopted informing.So that the informing message of software client 110 can be shown in and be compatible with the self-defined of android system Informing, realize the reliable displaying to informing message.
The characteristics of in order to which the embodiment of the present invention is expanded on further, illustrated with another embodiment.In the embodiment, software Client 110 is UC browsers, support the first user terminal of different operating system and second user terminal to be respectively mounted UC clear Looking at device, the already present Notification of API of the first user terminal operations system define text display properties as green, the The already present Notification of API of two user terminal operations systems define text display properties as blueness.UC browsers After being installed to the first user terminal, it can be created according to the already present Notification of API of the first user terminal operations system New Notification, the text display properties extracted are green, when the server 200 of UC browsers sends display notice During column event, Custom Notification column can be shown in green by informing message.After UC browsers are installed to second user terminal, meeting New Notification is created according to the already present Notification of the API of second user terminal operating system, extracted Text display properties for blueness, when the server 200 of UC browsers send display informing event when, the meeting of Custom Notification column Informing message is shown as blueness.It is arranged such, software client 110 is attached to the user terminal 100 or branch of different type of machines After holding the user terminal 100 of different operating system, informing message can be included being compatible with different type of machines and operation system The Custom Notification column of system.
Referring to Fig. 4, it is a kind of informing message applied to software client 110 that present pre-ferred embodiments provide The flow chart of display methods.Method and step defined in the relevant flow of methods described can be realized by the processor 103.Under The idiographic flow shown in Fig. 4 will be described in detail for face.
Step S401:According to already present informing group in the application programming interface of the operating system of user terminal 100 Part creates new informing component.It should be noted that in other embodiments, the step S401 creates new informing group The step of part, can also omit, and flow is directly entered step S402.Such as:Software client 110 is being attached to user terminal 100 Afterwards, it can only carry out once new informing building component, in subsequent process, display only need to be extracted from new informing component Attribute is simultaneously applied.
In the present embodiment, step S401 can be performed by Fig. 3 informing building component unit 121.
Step S402:Extract the text display properties of the text component in the new informing component.
Generally, informing message includes icon (icon), title (title) and content (message).Wherein, Title and content are mainly text, and in the prior art when carrying out the display of informing message, what can not normally be shown is usually text This message, such as title and content.The text display properties of text component in new informing component is that user terminal 100 operates What system was supported, thus, the text display properties of software client extraction is that the operating system of user terminal 100 is supported.
Wherein, text display properties can include the color of text and the size of text, can also include the font of text With word special efficacy etc..
In the present embodiment, step S402 can be performed by Fig. 3 text display properties extraction unit 122.
Step S403:Receive the informing message that the background server 200 of the software client 110 is sent.Work as software When client 110 needs to show customized informing message, server 200 can send display notice to software client 110 Column event.
In the present embodiment, step S403 can be performed by Fig. 3 informing message reception units 123.
Step S404:According to the text display properties to the informing interface of the operating system of user terminal 100 Custom Notification column carries out text display properties setting.
In the present embodiment, step S404 can be performed by Fig. 3 text display properties setting unit 124.
Step S405:The informing message is included on the Custom Notification column.
In the present embodiment, step S405 can be performed by Fig. 3 informing message display unit 125.
Software client 110 can carry out text display properties to Custom Notification column according to the text display properties of extraction and set Put, Custom Notification column then can show informing according to the color of text and the size of text etc. defined in text display properties Message.By the text display properties that software client 110 extracts is that the operating system of user terminal 100 is supported, thus it is logical Know that column message can be normally displayed, be not in the display abnormal conditions such as display is unclear and background overlaps.
In use, the operating system of user terminal 100 may defines the difference of title and content in informing message Display properties, accordingly, the text component in informing component include title component and content components.Title is shown in order to realize Show the reliable extraction of attribute and content display properties, in the present embodiment, as shown in figure 5, step S402:Extract the new notice The step of text display properties of text component in column component, can include sub-step S501, sub-step S502, sub-step S503, sub-step S504 and sub-step S505.
Sub-step S501:Identify the title component and content included by the text component in the new informing component Component.
Included text component and the informing group deposited in the operating system of user terminal 100 in new informing component Included text component is consistent in part.It is different according to the informing Element format defined in the operating system of user terminal 100, can Title component and content components included by text component in new informing component are identified to take various forms.Example Such as:If title component defines title display properties using setContenttitle () function, content components use SetContentmessage () function defines content display properties, then, it can be searched by keyword and identify title component And content components, such as use " title " to find out title component as keyword, use " message " to be searched as keyword Go out content components.
In the present embodiment, step S501 can be performed by Fig. 3 component recognition subelement 1221.
Sub-step S502:Different marks is set to the title component included by the text component and content components.With It is convenient, rapidly search and identify title component and content components in subsequent applications.
In the present embodiment, step S502 can set subelement 1222 to perform by Fig. 3 mark.
Sub-step S503:View container is created, tagged title component and content components will be set to be added to described regard In figure container.
In the present embodiment, step S503 can create subelement 1223 by Fig. 3 view container and perform.
Sub-step S504:Found out according to the mark of setting from the view container in the new informing component Title component and content components included by text component.
Alternatively, during implementation can according to the mark recursive traversal of setting view container, find out described new logical Know title component and the content components included by the text component in column component.
In the present embodiment, step S504 can search subelement 1224 by Fig. 3 component and perform.
Sub-step S505:Title display properties is extracted from the title component, is extracted from the content components Content display properties, obtain the text display properties of the text component.Correspondingly, software client 110 can be according to extraction The Custom Notification column of title display properties and content display properties to the informing interface of the operating system of user terminal 100 Text display properties setting is carried out, so that Custom Notification column is shown in informing message by the title display properties set Title, according to content display properties show informing message in content.
In the present embodiment, step S505 can be performed by Fig. 3 attributes extraction subelement 1225.
In the embodiment of the present invention, software client 110 can be according to the already present notices of operating system API of user terminal 100 The new informing component of column building component one, and by the title component included by the text component in new informing component and interior Hold the upper different identification of component binding.Then a view container is established, tagged title component and content components will be set to add It is added in view container, then recursive traversal container Views tree, by the mark set before, finds title component and content group The display properties of part, such as color, size, the result of traversal is stored afterwards, facilitate follow-up Custom Notification column to make With by the display properties found by informing message including on Custom Notification column.It is arranged such, realize informing can By compatibility so that the informing message of software client 110 can be normally displayed, and be not in show unclear and background weight The display abnormal conditions such as conjunction.Improving the operating system customizingization of user terminal 100 in the prior art, seriously caused informing is not Compatibling problem.The embodiment of the present invention provides unification solution for the different type of machines of user terminal 100 and different operating system, It is simple efficient, effectively increase the reliability that informing message is shown.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed apparatus and method, also may be used To realize by another way.Apparatus and method embodiment described above is only schematical, for example, in accompanying drawing Flow chart and block diagram show the device of multiple embodiments according to the present invention, the possibility of method and computer program product is realized Architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a program A part for section or code, a part for the module, program segment or code include one or more and are used to realize defined patrol Collect the executable instruction of function.It should also be noted that at some as the function of in the implementation replaced, being marked in square frame Can be with different from the order marked in accompanying drawing generation.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or The combination of each square frame and block diagram in flow chart and/or the square frame in flow chart, function or dynamic as defined in performing can be used The special hardware based system made is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server 200, or equipment of network 300 etc.) perform all or part of each embodiment methods described of the present invention Step.And foregoing storage medium includes:It is USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random Access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Jie of store program codes Matter.It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Include so that process, method, article or equipment including a series of elements not only include those key elements, but also Including the other element being not expressly set out, or also include for this process, method, article or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Other identical element also be present in the process of element, method, article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (11)

  1. A kind of 1. informing message display method, applied to the software client installed in user terminal, it is characterised in that described Method includes:
    According to the new informing of already present informing building component in user terminal operations systematic difference Program Interfaces Component;
    Extract the text display properties of the text component in the new informing component;
    Receive the informing message that the background server of the software client is sent;
    The Custom Notification column at the informing interface of the user terminal operations system is carried out according to the text display properties Text display properties is set;
    The informing message is included on the Custom Notification column.
  2. 2. informing message display method according to claim 1, it is characterised in that the extraction new informing The step of text display properties of text component in component, includes:
    Identify the title component and content components included by the text component in the new informing component;
    Different marks is set to the title component included by the text component and content components;
    View container is created, tagged title component and content components will be set to be added in the view container;
    Found out according to the mark of setting from the view container included by the text component in the new informing component Title component and content components;
    Title display properties is extracted from the title component, content display properties is extracted from the content components, is obtained To the text display properties of the text component.
  3. 3. informing message display method according to claim 2, it is characterised in that the mark according to setting is from institute State and title component and content components included by text component in the new informing component are found out in view container Step, including:
    According to view container described in the mark recursive traversal of setting, the text component institute in the new informing component is found out Including title component and content components.
  4. 4. informing message display method according to claim 1, it is characterised in that the text display properties includes text This color and size text.
  5. A kind of 5. informing message display device, applied to the software client installed in user terminal, it is characterised in that described Informing message display device includes:
    Informing building component unit, for according to already present logical in user terminal operations systematic difference Program Interfaces Know the new informing component of column building component;
    Text display properties extraction unit, the text for extracting the text component in the new informing component show category Property;
    Informing message reception units, the informing message that the background server for receiving the software client is sent;
    Text display properties setting unit, for the notice according to the text display properties to the user terminal operations system The Custom Notification column at column interface carries out text display properties setting;
    Informing message display unit, for the informing message to be included on the Custom Notification column.
  6. 6. informing message display device according to claim 5, it is characterised in that the text display properties extraction is single Member includes:
    Component recognition subelement, for identify title component included by the text component in the new informing component and Content components;
    Mark sets subelement, for setting different marks to the title component included by the text component and content components Know;
    View container creates subelement, for creating view container, tagged title component and content components will be set to add Into the view container;
    Component searches subelement, finds out the new informing component from the view container for the mark according to setting In text component included by title component and content components;
    Attributes extraction subelement, for extracting title display properties from the title component, carried from the content components Content display properties is taken out, obtains the text display properties of the text component.
  7. 7. informing message display device according to claim 6, it is characterised in that the component searches subelement, uses In view container described in the mark recursive traversal according to setting, the text component found out in the new informing component is wrapped The title component and content components included.
  8. 8. informing message display device according to claim 5, it is characterised in that the text display properties includes text This color and size text.
  9. A kind of 9. user terminal, it is characterised in that including:
    Memory;
    Processor;And
    The software client being installed in the memory and the informing message display device applied to the software client, The informing message display device includes one or more SFU software functional units by the computing device, the informing Message display device includes:
    Informing building component unit, for according to already present logical in user terminal operations systematic difference Program Interfaces Know the new informing component of column building component;
    Text display properties extraction unit, the text for extracting the text component in the new informing component show category Property;
    Informing message reception units, the informing message that the background server for receiving the software client is sent;
    Text display properties setting unit, for the notice according to the text display properties to the user terminal operations system The Custom Notification column at column interface carries out text display properties setting;
    Informing message display unit, for the informing message to be included on the Custom Notification column.
  10. 10. user terminal according to claim 9, it is characterised in that the text display properties extraction unit includes:
    Component recognition subelement, for identify title component included by the text component in the new informing component and Content components;
    Mark sets subelement, for setting different marks to the title component included by the text component and content components Know;
    View container creates subelement, for creating view container, tagged title component and content components will be set to add Into the view container;
    Component searches subelement, finds out the new informing component from the view container for the mark according to setting In text component included by title component and content components;
    Attributes extraction subelement, for extracting title display properties from the title component, carried from the content components Content display properties is taken out, obtains the text display properties of the text component.
  11. 11. user terminal according to claim 10, it is characterised in that the component searches subelement, is set for basis View container described in the mark recursive traversal put, find out the title included by the text component in the new informing component Component and content components.
CN201610503546.8A 2016-06-28 2016-06-28 Notification bar message display method and device and user terminal Active CN107544796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610503546.8A CN107544796B (en) 2016-06-28 2016-06-28 Notification bar message display method and device and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610503546.8A CN107544796B (en) 2016-06-28 2016-06-28 Notification bar message display method and device and user terminal

Publications (2)

Publication Number Publication Date
CN107544796A true CN107544796A (en) 2018-01-05
CN107544796B CN107544796B (en) 2021-03-09

Family

ID=60966275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610503546.8A Active CN107544796B (en) 2016-06-28 2016-06-28 Notification bar message display method and device and user terminal

Country Status (1)

Country Link
CN (1) CN107544796B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873996A (en) * 2017-02-13 2017-06-20 广州优视网络科技有限公司 Adaptation application notifies method, device and the computing device of color under Android system
CN111245930A (en) * 2020-01-09 2020-06-05 深圳壹账通智能科技有限公司 Cross-platform message pushing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218115A (en) * 2013-03-06 2013-07-24 广东欧珀移动通信有限公司 Method and mobile terminal for realizing optimized display of notification bar
CN103699662A (en) * 2013-12-27 2014-04-02 贝壳网际(北京)安全技术有限公司 Method and device for displaying messages of notification bars

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218115A (en) * 2013-03-06 2013-07-24 广东欧珀移动通信有限公司 Method and mobile terminal for realizing optimized display of notification bar
CN103699662A (en) * 2013-12-27 2014-04-02 贝壳网际(北京)安全技术有限公司 Method and device for displaying messages of notification bars

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
隆中后生仔: "《Android自定义通知样式适配》", 《简书》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873996A (en) * 2017-02-13 2017-06-20 广州优视网络科技有限公司 Adaptation application notifies method, device and the computing device of color under Android system
CN111245930A (en) * 2020-01-09 2020-06-05 深圳壹账通智能科技有限公司 Cross-platform message pushing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107544796B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN106708496B (en) Processing method and device for label page in graphical interface
CN102541853B (en) Method and device which are capable of obtaining application information by utilizing browser address bar
CN105988665B (en) Information dubbing system, information duplicating method and electronic equipment
CN107038253A (en) Comment on content display method and device
CN102664925B (en) A kind of method of displaying searching result and device
CN106503111B (en) Webpage code-transferring method, device and client terminal
CN107135429A (en) Barrage message resolution method, device and electronic equipment
CN102033942A (en) Mobile communication equipment terminal-based tag display management method and system
US20070271240A1 (en) Method and system of accessing network from an embedded device
CN108021598A (en) Page extraction template matching process, device and server
CN110263007A (en) A kind of file naming method, system and electronic equipment and storage medium
CN107105428A (en) The method and device in quick completion end message storehouse
CN104063657A (en) Method and device for starting private browsing, browser and electronic equipment
CN104765746A (en) Data processing method and device for mobile communication terminal browser
CN107391360A (en) Application exception information processing method, device, server and user terminal
CN108255900A (en) Recommend news rendering method, equipment, browser and electronic equipment
CN105808642B (en) Recommendation method and device
CN112650905A (en) Anti-crawler method and device based on label, computer equipment and storage medium
CN107450811A (en) Touch area amplification display method and system
CN107544796A (en) A kind of informing message display method, device and user terminal
CN108073655A (en) A kind of data query method and device
CN111857466B (en) Message display method and device
CN111142989B (en) Object management method, device and storage medium
CN107943782A (en) A kind of character processing method and terminal
CN107908433A (en) Verify method, apparatus, equipment and the computer-readable recording medium of input content

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200619

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant