CN106371707A - Label processing method and device and terminal - Google Patents

Label processing method and device and terminal Download PDF

Info

Publication number
CN106371707A
CN106371707A CN201610925252.4A CN201610925252A CN106371707A CN 106371707 A CN106371707 A CN 106371707A CN 201610925252 A CN201610925252 A CN 201610925252A CN 106371707 A CN106371707 A CN 106371707A
Authority
CN
China
Prior art keywords
label
width
list
labels
equal
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
CN201610925252.4A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610925252.4A priority Critical patent/CN106371707A/en
Publication of CN106371707A publication Critical patent/CN106371707A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

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

Abstract

The invention relates to a label processing method and device and a terminal. The label processing method comprises the steps that when labels of search hot words are displayed on an application store search page, whether the width of current labels in a label list is greater than the residual width of a current row of a display zone or not is judged, wherein the label list includes at least one label arranged in sequence, if yes, it is determined that the width of the residual labels behind the current labels in the label list is smaller than or equal to the residual width, and the labels with the width smaller than or equal to the residual width are arranged in a label display list; all the processes are repeated till all the labels in the label list are processed. When the gap between the last label of a certain row and the right boundary of the display zone of the terminal is too large, the label which can be put at a current position is determined, so that the number of labels displayed in a fixed display zone is large, a label display mode can be regular by repeatedly utilizing the space of the display zone of the terminal, and a user can conveniently check labels.

Description

Label processing method, device and terminal
Technical field
It relates to field of terminal technology, more particularly, to label processing method, device and terminal.
Background technology
The recommendation of types of applications program can be carried out in the terminal, the title of application program can be shown in the form of a label In display area.According to the title of application program, the width of label differs, and can be carried out automatically according to the display area of terminal The displaying of line feed, the displaying area of the such as screen width according to terminal or recommendation software is shown.
In correlation technique, according to the search temperature of label, or the recommendation order according to label, each label is arranged Afterwards, it is illustrated in the display area of terminal, label can be entered a new line automatically simultaneously.
But in correlation technique, because the width of each label is incomplete same, when automatically being entered a new line displaying, meeting Last label of certain a line phenomenon excessive with the right margin space of the display area of terminal occurs, and then can make solid The label number shown in fixed display area is less, wastes the space of the display area of terminal, can make each label simultaneously Display form is more random, is not easy to user and checks each label.
Content of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of label processing method, device and terminal, is used for The label number solving to show in fixing display area is less, wastes the space of the display area of terminal, can make simultaneously The display form of each label is more random, is not easy to the problem that user checks each label.
According to the embodiment of the present disclosure in a first aspect, provide a kind of label processing method, comprising:
When applying the label of shop search page display search hot word, judge the width of the current label in list of labels, Whether it is more than the remaining width of the current line of display area, wherein, in described list of labels, there is at least one being arranged in order Label;
If more than it is determined that in remaining label after current label in list of labels, width is less than or equal to described remaining The label of remaining width, and width is less than or equal to the tagging arrangements of described residue width in label display list;
Repeat all of above process, until having processed all labels in described list of labels.
Further, methods described, also includes:
If being less than or equal to, by current label, it is aligned in described label display list.
Further, in the remaining label after the described current label determining in list of labels, width is less than or equal to institute State the label of remaining width, and width be less than or equal to the tagging arrangements of described residue width in label display list, comprising:
Determine in the remaining label after the current label in list of labels, width be less than or equal to described residue width and The label minimum with the width differential of described residue width;
Width is less than or equal to described residue width and the label minimum with the width differential of described residue width, arrangement To in label display list.
Further, in the remaining label after the described current label determining in list of labels, width is less than or equal to institute State the label of remaining width, and width be less than or equal to the tagging arrangements of described residue width in label display list, comprising:
Determine in the remaining label after the current label in list of labels, width be less than or equal to described residue width and The label nearest with the order of current label;
Width is less than or equal to described residue width and the label nearest with the order of current label, is aligned to label exhibition Show in list.
Further, described up to after all labels having processed in described list of labels, also include:
According to the ordering of each label in described label display list, by each label in described label display list It is illustrated in described display area.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect: by application shop search page During the label of display search hot word, judge the width of the current label in list of labels, if more than the current line of display area Remaining width;If more than it is determined that in remaining label after current label in list of labels, width is less than or equal to described The label of remaining width, and width is less than or equal to the tagging arrangements of described residue width in label display list;Repeat to hold The all of above process of row, until processed all labels in described list of labels.Thus occur certain a line last When label is excessive with the right margin space of the display area of terminal, determine the label that can put into current location, and then The label number shown in fixing display area can be made more, the space of the display area of recycling terminal, simultaneously The display form of each label can be made more regular, be easy to user and check each label.
According to the second aspect of the embodiment of the present disclosure, provide a kind of label processing device, comprising:
Judge module, is configured to, when applying the label of shop search page display search hot word, judge in list of labels Current label width, if more than the remaining width of the current line of display area, wherein, have in described list of labels according to At least one label of secondary arrangement;
First determining module, if be configured to more than it is determined that remaining label after current label in list of labels In, width is less than or equal to the label of described residue width, and width is less than or equal to the tagging arrangements of described residue width to mark Sign and show in list;
Replicated blocks, are configured to repeat all of above process, until having processed all in described list of labels Label.
Further, described device, also includes:
Second determining module, if being configured to be less than or equal to, by current label, is aligned to described label display list In.
Further, described first determining module, is specifically configured to:
If being more than, determine in the remaining label after the current label in list of labels, width is less than or equal to described residue Width and the label minimum with the width differential of described residue width;
Width is less than or equal to described residue width and the label minimum with the width differential of described residue width, arrangement To in label display list.
Further, described first determining module, is specifically configured to:
If being more than, determine in the remaining label after the current label in list of labels, width is less than or equal to described residue Width and the label nearest with the order of current label;
Width is less than or equal to described residue width and the label nearest with the order of current label, is aligned to label exhibition Show in list.
Further, described device, also includes:
Display module, is configured to after described replicated blocks have processed all labels in described list of labels, root According to the ordering of each label in described label display list, by each label display in described label display list described In display area.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect: by application shop search page During the label of display search hot word, judge the width of the current label in list of labels, if more than the current line of display area Remaining width;If more than it is determined that in remaining label after current label in list of labels, width is less than or equal to described The label of remaining width, and width is less than or equal to the tagging arrangements of described residue width in label display list;Repeat to hold The all of above process of row, until processed all labels in described list of labels.Thus occur certain a line last When label is excessive with the right margin space of the display area of terminal, determine the label that can put into current location, and then The label number shown in fixing display area can be made more, the space of the display area of recycling terminal, simultaneously The display form of each label can be made more regular, be easy to user and check each label.
According to the third aspect of the embodiment of the present disclosure, provide a kind of terminal, comprising:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: when applying the label of shop search page display search hot word, judges label The width of the current label in list, if more than the remaining width of the current line of display area, wherein, in described list of labels There is at least one label being arranged in order;If more than it is determined that in remaining label after current label in list of labels, Width is less than or equal to the label of described residue width, and width is less than or equal to the tagging arrangements of described residue width to label exhibition Show in list;Repeat all of above process, until having processed all labels in described list of labels.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect: by application shop search page During the label of display search hot word, judge the width of the current label in list of labels, if more than the current line of display area Remaining width;If more than it is determined that in remaining label after current label in list of labels, width is less than or equal to described The label of remaining width, and width is less than or equal to the tagging arrangements of described residue width in label display list;Repeat to hold The all of above process of row, until processed all labels in described list of labels.Thus occur certain a line last When label is excessive with the right margin space of the display area of terminal, determine the label that can put into current location, and then The label number shown in fixing display area can be made more, the space of the display area of recycling terminal, simultaneously The display form of each label can be made more regular, be easy to user and check each label.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and be used for explaining the principle of the present invention together with description.
Fig. 1 is a kind of flow chart of the label processing method embodiment one according to an exemplary embodiment;
Fig. 2 is showing of the list of labels in a kind of label processing method embodiment one according to an exemplary embodiment It is intended to;
Fig. 3 is the label display list in a kind of label processing method embodiment one according to an exemplary embodiment Schematic diagram one;
Fig. 4 is the label display list in a kind of label processing method embodiment one according to an exemplary embodiment Schematic diagram two;
Fig. 5 is a kind of flow chart of the label processing method embodiment two according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the label processing device embodiment three according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of the label processing device example IV according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of the entity of terminal according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the terminal unit 800 according to an exemplary embodiment.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the present invention.
Fig. 1 is a kind of flow chart of the label processing method embodiment one according to an exemplary embodiment, as Fig. 1 institute Show, the method is mainly with the terminal, this terminal includes mobile terminal, personal terminal etc., such as touch-screen mobile phone, flat board electricity Brain, PC etc., this label processing method comprises the following steps.
In step s11, when applying the label of shop search page display search hot word, judge current in list of labels The width of label, if more than the remaining width of the current line of display area, wherein, have in described list of labels and be arranged in order At least one label.
In this step, when the application shop search page in Semen setariae needs the label of display search hot word, due to searching Rope hot word is the list of the label composition of an indefinite length, can be according to the search temperature of label, or pushing away according to label Recommend order, after each label is arranged, a list of labels can be obtained.Thus have in this list of labels arranging successively At least one label of row.Now, list of labels has been to render the list of labels completing.And then list of labels can be obtained, And determine the width often gone of the display area for showing label.
For example, Fig. 2 is the mark in a kind of label processing method embodiment one according to an exemplary embodiment Sign the schematic diagram of list, list of labels displays the display area as shown in Fig. 2 last label of the first row and terminal Right margin space excessive.
When the labeling requirement of one of list of labels is aligned to label display list, it is first determined list of labels In current label width;Then judge the width of the current label in list of labels, if current more than display area The remaining width of row.
In step s12, if more than it is determined that in remaining label after current label in list of labels, width is little In the label equal to described residue width, and width is less than or equal to the tagging arrangements of described residue width to label display list In.
Wherein, step s12 has two kinds of implementations:
The first specific implementation of step s12 is: if being more than, determines surplus after the current label in list of labels In remaining label, width is less than or equal to described residue width and the label minimum with the width differential of described residue width;By width Less than or equal to described residue width and the label minimum with the width differential of described residue width, it is aligned to label display list In.
The second specific implementation of step s12 is: if being more than, determines surplus after the current label in list of labels In remaining label, width is less than or equal to described residue width and the label nearest with the order of current label;Width is less than or equal to Described residue width and the label nearest with the order of current label, are aligned in label display list.
In this step, if the width of the current label in list of labels, more than the remaining width of the current line of display area Degree, then illustrate that current label cannot be put in current line.Due to having the multiple labels being arranged in order in list of labels, from And can calculate in the remaining label after the current label determining in list of labels, width is less than or equal to described residue width One label, and then the width determined can be less than or equal to the tagging arrangements of described residue width to label display list In.Wherein, label display list is the list that may finally put into display area.
Can determine that in the remaining label after the current label in list of labels, width is less than in list of labels It is equal to each label of remaining width;Then calculate the width that width is less than or equal to each label of remaining width, with remaining width Width differential, and then determining the label minimum with the width differential of described residue width.Then just can will determine Width is less than or equal to described residue width and the label minimum with the width differential of described residue width, is aligned to label display In list.At this point it is possible to adopt java script language, algorithm above process is executed:
For example, calculate when the 5th label of the first row in the list of labels in Fig. 2 it may be determined that list of labels In the 5th label " Yi Long hotel " width whether more than the remaining width of the first row;Now can determine that the 5th mark The width signing " Yi Long hotel " is more than the remaining width of the first row, such that it is able in the remaining label after current label, really Make width and be less than or equal to the label " Taobao " of remaining width, " iqiyi.com ", " Alipay ", " mushroom street ", and then can determine Go out the width of label therein " iqiyi.com " minimum with the width differential of the remaining width of the first row, " like such that it is able to by label Strange skill " is put in label display list, and Fig. 3 is a kind of label processing method embodiment according to an exemplary embodiment The schematic diagram one of the label display list in, as shown in figure 3, and then put into the 5th mark of the first row by label " iqiyi.com " At the position signed.
Or, can determine in the remaining label after the current label in list of labels, width in list of labels Each label less than or equal to remaining width;It is then determined that going out the label nearest with the order of current label.Then just can be by really The width made is less than or equal to described residue width and the label nearest with the order of current label, is aligned to label display row In table.
For example, calculate when the 5th label of the first row in the list of labels in Fig. 2 it may be determined that list of labels In the 5th label " Yi Long hotel " width whether more than the remaining width of the first row;Now can determine that the 5th mark The width signing " Yi Long hotel " is more than the remaining width of the first row, such that it is able in the remaining label after current label, really Make width and be less than or equal to the label " Taobao " of remaining width, " iqiyi.com ", " Alipay ", " mushroom street ", and then can determine Go out the order of label therein " Taobao " and current label recently, or after calculating the 5th label " Yi Long hotel " successively Label and its width differential, and then the width that first time is determined can be less than or equal to the label of remaining width, as true The width made is less than or equal to remaining width and the label " Taobao " nearest with the order of current label;Such that it is able to by label " Taobao " puts in label display list, and Fig. 4 is that a kind of label processing method according to an exemplary embodiment is implemented The schematic diagram two of the label display list in example one, as shown in figure 4, and then put into the 5th mark of the first row by label " Taobao " At the position signed.
In step s13, repeat all of above process, until having processed all labels in described list of labels.
In this step, repeat step s11, step s12, until processed all labels in list of labels.
The present embodiment passes through, when applying the label of shop search page display search hot word, to judge current in list of labels The width of label, if more than the remaining width of the current line of display area;If being more than the current mark it is determined that in list of labels In remaining label after label, width is less than or equal to the label of described residue width, and width is less than or equal to described remaining wide The tagging arrangements of degree are in label display list;Repeat all of above process, until having processed in described list of labels All labels.Thus when the right margin space last label of certain a line and the display area of terminal is excessive Wait, determine the label that can put into current location, and then the label number shown in fixing display area can be made relatively Many, the space of the display area of recycling terminal, the display form of each label can be made simultaneously more regular, be easy to user and look into See each label.
On the basis of embodiment shown in above-mentioned Fig. 1, Fig. 5 is at a kind of label according to an exemplary embodiment The flow chart of reason embodiment of the method two, as shown in figure 5, further comprising the steps of:
In step s21, if being less than or equal to, by current label, it is aligned in described label display list.
In this step, if the width of the current label in list of labels, less than or equal to display area current line surplus Remaining width, now can be aligned in described label display list directly by current label.
After step s13, also include:
In step s22, according to the ordering of each label in described label display list, described label display is arranged Each label display in table is in described display area.
In this step, after the order of all of label in having determined list of labels, label display row are obtained Table.Such that it is able to the ordering according to each label in label display list, each label is rendered, and then by label exhibition Show each label display in list in the display area of terminal.
The present embodiment passes through, when applying the label of shop search page display search hot word, to judge current in list of labels The width of label, if more than the remaining width of the current line of display area;If being more than the current mark it is determined that in list of labels In remaining label after label, width is less than or equal to the label of described residue width, and width is less than or equal to described remaining wide The tagging arrangements of degree are in label display list;If being less than or equal to, by current label, it is aligned to described label display list In;Repeat all of above process, until having processed all labels in described list of labels.Finally can be by described label Each label display in displaying list is in described display area.Thus in last label that certain a line occurs and terminal When the right margin space of display area is excessive, determine the label that can put into current location, and then can make fixing Display area in show label number more, recycling terminal display area space, each label can be made simultaneously Display form more regular, be easy to user and check each label.
Fig. 6 is a kind of block diagram of the label processing device embodiment three according to an exemplary embodiment.With reference to Fig. 6, This device includes:
Judge module 31, the first determining module 32, replicated blocks 33.
Judge module 31, is configured to, when applying the label of shop search page display search hot word, judge list of labels In current label width, if more than the remaining width of the current line of display area, wherein, have in described list of labels At least one label being arranged in order;
First determining module 32, if be configured to more than it is determined that remaining mark after current label in list of labels In label, width is less than or equal to the label of described residue width, and the tagging arrangements that width is less than or equal to described residue width arrive In label display list;
Replicated blocks 33 are configured to repeat all of above process, until having processed all in described list of labels Label.
Wherein said first determining module, is specifically configured to:
If being more than, determine in the remaining label after the current label in list of labels, width is less than or equal to described residue Width and the label minimum with the width differential of described residue width;By width be less than or equal to described residue width and with described The minimum label of the width differential of remaining width, is aligned in label display list.
Or, if being more than, determine in the remaining label after the current label in list of labels, width is less than or equal to described Remaining width and the label nearest with the order of current label;Width is less than or equal to described residue width and and current label The nearest label of order, be aligned in label display list.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The present embodiment passes through, when applying the label of shop search page display search hot word, to judge current in list of labels The width of label, if more than the remaining width of the current line of display area;If being more than the current mark it is determined that in list of labels In remaining label after label, width is less than or equal to the label of described residue width, and width is less than or equal to described remaining wide The tagging arrangements of degree are in label display list;Repeat all of above process, until having processed in described list of labels All labels.Thus when the right margin space last label of certain a line and the display area of terminal is excessive Wait, determine the label that can put into current location, and then the label number shown in fixing display area can be made relatively Many, the space of the display area of recycling terminal, the display form of each label can be made simultaneously more regular, be easy to user and look into See each label.
On the basis of embodiment shown in above-mentioned Fig. 6, Fig. 7 is at a kind of label according to an exemplary embodiment The block diagram of reason device embodiment four.With reference to Fig. 7, this device also includes:
Second determining module 41, if being configured to be less than or equal to, by current label, is aligned to described label display list In.
Display module 42, be configured to described replicated blocks 33 processed all labels in described list of labels it Afterwards, the ordering according to each label in described label display list, by each label display in described label display list In described display area.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The present embodiment passes through, when applying the label of shop search page display search hot word, to judge current in list of labels The width of label, if more than the remaining width of the current line of display area;If being more than the current mark it is determined that in list of labels In remaining label after label, width is less than or equal to the label of described residue width, and width is less than or equal to described remaining wide The tagging arrangements of degree are in label display list;If being less than or equal to, by current label, it is aligned to described label display list In;Repeat all of above process, until having processed all labels in described list of labels.Finally can be by described label Each label display in displaying list is in described display area.Thus in last label that certain a line occurs and terminal When the right margin space of display area is excessive, determine the label that can put into current location, and then can make fixing Display area in show label number more, recycling terminal display area space, each label can be made simultaneously Display form more regular, be easy to user and check each label.
Fig. 8 is a kind of block diagram of the entity of terminal according to an exemplary embodiment.With reference to Fig. 8, this terminal is permissible It is implemented as: processor 71, and be configured to store the memorizer 72 of processor executable;
Wherein, described processor 71 is configured to: when applying the label of shop search page display search hot word, judges mark Sign the width of the current label in list, if more than the remaining width of the current line of display area, wherein, described list of labels In there is at least one label being arranged in order;If more than it is determined that remaining label after current label in list of labels In, width is less than or equal to the label of described residue width, and width is less than or equal to the tagging arrangements of described residue width to mark Sign and show in list;Repeat all of above process, until having processed all labels in described list of labels.
In the above-described embodiments it should be appreciated that this processor can be CPU (English: central Processing unit, referred to as: cpu), can also be other general processors, digital signal processor (English: digital Signal processor, referred to as: dsp), special IC (English: application specific integrated Circuit, referred to as: asic) etc..General processor can be microprocessor or this processor can also be any conventional place Reason device etc., and aforesaid memorizer can be read only memory (English: read-only memory, abbreviation: rom), deposit at random Access to memory (English: random access memory, referred to as: ram), flash memory, hard disk or solid state hard disc.sim Card is also referred to as subscriber identification card, smart card, and digital mobile telephone must be loaded onto this card and can use.I.e. in computer chip On store the information of digital mobile phone client, the content such as the key of encryption and the telephone directory of user.Real in conjunction with the present invention The step applying the method disclosed in example can be embodied directly in hardware processor execution and completes, or with the hardware in processor and Software module combination execution completes.
With regard to the terminal in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method It has been described in detail with the embodiment of device, explanation will be not set forth in detail herein.
The present embodiment passes through, when applying the label of shop search page display search hot word, to judge current in list of labels The width of label, if more than the remaining width of the current line of display area;If being more than the current mark it is determined that in list of labels In remaining label after label, width is less than or equal to the label of described residue width, and width is less than or equal to described remaining wide The tagging arrangements of degree are in label display list;Repeat all of above process, until having processed in described list of labels All labels.Thus when the right margin space last label of certain a line and the display area of terminal is excessive Wait, determine the label that can put into current location, and then the label number shown in fixing display area can be made relatively Many, the space of the display area of recycling terminal, the display form of each label can be made simultaneously more regular, be easy to user and look into See each label.
Fig. 9 is a kind of block diagram of the terminal unit 800 according to an exemplary embodiment.For example, terminal unit 800 can To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, it is good for Body equipment, personal digital assistant etc..
With reference to Fig. 9, terminal unit 800 can include following one or more assemblies: process assembly 802, memorizer 804, Power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (i/o), sensor cluster 814, And communication component 816.
The integrated operation of the usual control terminal equipment 800 of process assembly 802, such as with display, call, data is led to The associated operation of letter, camera operation and record operation.Process assembly 802 can include one or more processors 820 to hold Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more moulds Block, is easy to the interaction between process assembly 802 and other assemblies.For example, process assembly 802 can include multi-media module, with Facilitate the interaction between multimedia groupware 808 and process assembly 802.
Memorizer 804 is configured to store various types of data to support the operation in terminal unit 800.These data Example include on terminal unit 800 operation any application program or method instruction, contact data, telephone directory Data, message, picture, video etc..Memorizer 804 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static RAM (sram), Electrically Erasable Read Only Memory (eeprom), erasable Except programmable read only memory (eprom), programmable read only memory (prom), read only memory (rom), magnetic memory, soon Flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of terminal unit 800.Power supply module 806 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute, with for terminal unit 800, the assembly that electric power is associated.
Multimedia groupware 808 includes the screen of one output interface of offer between described terminal unit 800 and user. In certain embodiments, screen can include liquid crystal display (lcd) and touch panel (tp).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touches Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or slip The border of action, but also the detection persistent period related to described touch or slide and pressure.In certain embodiments, Multimedia groupware 808 includes a front-facing camera and/or post-positioned pick-up head.When terminal unit 800 is in operator scheme, such as clap When taking the photograph pattern or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each is preposition Photographic head and post-positioned pick-up head can be the optical lens system of a fixation or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (mic), when terminal unit 800 is in operator scheme, during as call model, logging mode and speech recognition mode, mike It is configured to receive external audio signal.The audio signal being received can be further stored in memorizer 804 or via logical Letter assembly 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, for exports audio signal.
, for providing interface between process assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for i/o interface 812 To be keyboard, click wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, for providing the state of various aspects for terminal unit 800 Assessment.For example, sensor cluster 814 can detect/the closed mode of opening of terminal unit 800, the relative localization of assembly, example If described assembly is the display of terminal unit 800 and keypad, sensor cluster 814 can with detection terminal equipment 800 or The position change of 800 1 assemblies of terminal unit, user is presence or absence of with what terminal unit 800 contacted, terminal unit 800 Orientation or the temperature change of acceleration/deceleration and terminal unit 800.Sensor cluster 814 can include proximity transducer, is configured It is used for the presence of object near the detection when not having any physical contact.Sensor cluster 814 can also include optical sensor, As cmos or ccd imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 also may be used To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal unit 800 and other equipment. Terminal unit 800 can access the wireless network based on communication standard, such as wifi, 2g or 3g, or combinations thereof.Show at one In example property embodiment, communication component 816 receives broadcast singal or the broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, described communication component 816 also includes near-field communication (nfc) module, short to promote Cheng Tongxin.For example, RF identification (rfid) technology, Infrared Data Association (irda) technology, ultra broadband can be based in nfc module (uwb) technology, bluetooth (bt) technology and other technologies are realizing.
In the exemplary embodiment, terminal unit 800 can be by one or more application specific integrated circuits (asic), number Word signal processor (dsp), digital signal processing appts (dspd), PLD (pld), field programmable gate array (fpga), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided As included the memorizer 804 instructing, above-mentioned instruction can be executed by the processor 820 of terminal unit 800 to complete said method.Example If, described non-transitorycomputer readable storage medium can be rom, random access memory (ram), cd-rom, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in described storage medium is by the process of mobile terminal So that mobile terminal is able to carry out a kind of label processing method during device execution, methods described includes:
When applying the label of shop search page display search hot word, judge the width of the current label in list of labels, Whether it is more than the remaining width of the current line of display area, wherein, in described list of labels, there is at least one being arranged in order Label;
If more than it is determined that in remaining label after current label in list of labels, width is less than or equal to described remaining The label of remaining width, and width is less than or equal to the tagging arrangements of described residue width in label display list;
Repeat all of above process, until having processed all labels in described list of labels.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modifications, purposes or Person's adaptations are followed the general principle of the present invention and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It is described above and precision architecture illustrated in the accompanying drawings it should be appreciated that the invention is not limited in, and And various modifications and changes can carried out without departing from the scope.The scope of the present invention only to be limited by appended claim.

Claims (11)

1. a kind of label processing method is it is characterised in that include:
When applying the label of shop search page display search hot word, judge the width of the current label in list of labels, if More than the remaining width of the current line of display area, wherein, there is in described list of labels at least one label being arranged in order;
If more than it is determined that in remaining label after current label in list of labels, width is less than or equal to described remaining width The label of degree, and width is less than or equal to the tagging arrangements of described residue width in label display list;
Repeat all of above process, until having processed all labels in described list of labels.
2. method according to claim 1, it is characterised in that methods described, also includes:
If being less than or equal to, by current label, it is aligned in described label display list.
3. method according to claim 1 is it is characterised in that surplus after current label in described determination list of labels In remaining label, width is less than or equal to the label of described residue width, and width is less than or equal to the label row of described residue width Arrange in label display list, comprising:
Determine in the remaining label after the current label in list of labels, width be less than or equal to described residue width and with institute State the minimum label of the width differential of remaining width;
Width is less than or equal to described residue width and the label minimum with the width differential of described residue width, is aligned to mark Sign and show in list.
4. method according to claim 1 is it is characterised in that surplus after current label in described determination list of labels In remaining label, width is less than or equal to the label of described residue width, and width is less than or equal to the label row of described residue width Arrange in label display list, comprising:
Determine in the remaining label after the current label in list of labels, width be less than or equal to described residue width and with work as The nearest label of the order of front label;
Width is less than or equal to described residue width and the label nearest with the order of current label, is aligned to label display row In table.
5. the method according to any one of claim 1-4 is it is characterised in that described until processed described list of labels In all labels after, also include:
According to the ordering of each label in described label display list, by each label display in described label display list In described display area.
6. a kind of label processing device is it is characterised in that include:
Judge module, is configured to, when applying the label of shop search page display search hot word, judge working as in list of labels The width of front label, if more than the remaining width of the current line of display area, wherein, have in described list of labels and arrange successively At least one label of row;
First determining module, if being configured to more than it is determined that in remaining label after current label in list of labels, wide Degree is less than or equal to the label of described residue width, and width is less than or equal to the tagging arrangements of described residue width to label display In list;
Replicated blocks, are configured to repeat all of above process, until having processed all labels in described list of labels.
7. device according to claim 6, it is characterised in that described device, also includes:
Second determining module, if being configured to be less than or equal to, by current label, is aligned in described label display list.
8. device according to claim 6, it is characterised in that described first determining module, is specifically configured to:
If being more than, determine in the remaining label after the current label in list of labels, width be less than or equal to described residue width, And the label minimum with the width differential of described residue width;
Width is less than or equal to described residue width and the label minimum with the width differential of described residue width, is aligned to mark Sign and show in list.
9. device according to claim 6, it is characterised in that described first determining module, is specifically configured to:
If being more than, determine in the remaining label after the current label in list of labels, width be less than or equal to described residue width, And the label nearest with the order of current label;
Width is less than or equal to described residue width and the label nearest with the order of current label, is aligned to label display row In table.
10. the device according to any one of claim 6-9, it is characterised in that described device, also includes:
Display module, is configured to after described replicated blocks have processed all labels in described list of labels, according to institute State the ordering of each label in label display list, by each label display in described label display list in described displaying In region.
A kind of 11. terminals are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: when applying the label of shop search page display search hot word, judges list of labels In current label width, if more than the remaining width of the current line of display area, wherein, have in described list of labels At least one label being arranged in order;If more than it is determined that in remaining label after current label in list of labels, width Less than or equal to the label of described residue width, and the tagging arrangements that width is less than or equal to described residue width arrange to label display In table;Repeat all of above process, until having processed all labels in described list of labels.
CN201610925252.4A 2016-10-24 2016-10-24 Label processing method and device and terminal Pending CN106371707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610925252.4A CN106371707A (en) 2016-10-24 2016-10-24 Label processing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610925252.4A CN106371707A (en) 2016-10-24 2016-10-24 Label processing method and device and terminal

Publications (1)

Publication Number Publication Date
CN106371707A true CN106371707A (en) 2017-02-01

Family

ID=57895000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610925252.4A Pending CN106371707A (en) 2016-10-24 2016-10-24 Label processing method and device and terminal

Country Status (1)

Country Link
CN (1) CN106371707A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977130A (en) * 2019-03-29 2019-07-05 珠海豹好玩科技有限公司 A kind of hot word methods of exhibiting and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823643A (en) * 2012-11-18 2014-05-28 北京毕普创智软件有限公司 Engineering drawing printout method and engineering drawing printout device
CN103823760A (en) * 2014-03-03 2014-05-28 山西科泰微技术有限公司 High-efficiency data storage and analysis method
EP2746911A1 (en) * 2011-08-15 2014-06-25 Fujitsu Limited Mobile electronic device and key display program
CN105760155A (en) * 2016-01-28 2016-07-13 浪潮通用软件有限公司 Method and device for web interface layout

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2746911A1 (en) * 2011-08-15 2014-06-25 Fujitsu Limited Mobile electronic device and key display program
CN103823643A (en) * 2012-11-18 2014-05-28 北京毕普创智软件有限公司 Engineering drawing printout method and engineering drawing printout device
CN103823760A (en) * 2014-03-03 2014-05-28 山西科泰微技术有限公司 High-efficiency data storage and analysis method
CN105760155A (en) * 2016-01-28 2016-07-13 浪潮通用软件有限公司 Method and device for web interface layout

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977130A (en) * 2019-03-29 2019-07-05 珠海豹好玩科技有限公司 A kind of hot word methods of exhibiting and system

Similar Documents

Publication Publication Date Title
CN105488112A (en) Information pushing method and device
CN105117101B (en) The display methods and device of application program
CN104020924B (en) Label creation method, device and terminal
CN104899610A (en) Picture classification method and device
CN105975156A (en) Application interface display method and device
CN105068976A (en) Ticket information exhibition method and device
CN106339695A (en) Face similarity detection method, device and terminal
CN105094904A (en) Application program installation method and device
CN106446185A (en) Product recommendation method and device and server
CN106775248A (en) Push the methods of exhibiting and device of content
CN105376412A (en) Information processing method and device
CN106547547A (en) Collecting method and device
US8971916B1 (en) Locating a data storage system
KR20130082979A (en) User personalized recommendation system based on fingerprint identification
CN106383899A (en) Service recommendation method and apparatus, and terminal
CN104715007A (en) User identification method and device
CN104281368A (en) Interface display method and device and terminal device
CN106774802A (en) The reminding method of terminal power, device and terminal
CN107360322B (en) Information prompting method and device
CN105094608A (en) Task display method and device
CN105488074A (en) Photo clustering method and device
CN106919679A (en) Method, device and terminal are recurred in the daily record for being applied to distributed file system
CN107402756A (en) For drawing the method, apparatus and terminal of the page
CN105094500A (en) Icon placing method and device
CN106156639A (en) Data partition encryption method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170201