CN106383915A - Label processing method and device, and terminal - Google Patents

Label processing method and device, and terminal Download PDF

Info

Publication number
CN106383915A
CN106383915A CN201610925256.2A CN201610925256A CN106383915A CN 106383915 A CN106383915 A CN 106383915A CN 201610925256 A CN201610925256 A CN 201610925256A CN 106383915 A CN106383915 A CN 106383915A
Authority
CN
China
Prior art keywords
color
random number
label
color random
different
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
CN201610925256.2A
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 CN201610925256.2A priority Critical patent/CN106383915A/en
Publication of CN106383915A publication Critical patent/CN106383915A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a label processing method, a label processing device and a terminal. The method comprises the steps of acquiring a color variety value when a label of a hot search term is displayed at a search page of an application store; randomly generating a color random number which is different from the color random number of an adjacent label according to a value range where the color variety value is located; and determining the generated color random number that is different from the color random number of the adjacent label to be the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, and meanwhile the color random numbers of the continuous labels within a certain range are all different and the colors of the labels are uniformly distributed, so that display of the labels is not disordered, thus being convenient for users to watch and use the labels, and improving user experience.

Description

Label processing method and device and terminal
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a tag processing method and apparatus, and a terminal.
Background
Various types of applications are recommended in the terminal, names of the applications can be displayed in the display area in the form of labels, and each label has a color.
In the related art, the color of each label is randomly generated in a certain color range.
However, in the prior art, because the color of the label is completely randomly generated, and because of random uncertainty, the adjacent labels may show the same color, so that the display of the label is disordered, the user is inconvenient to watch and use each label, and the user experience is poor.
Disclosure of Invention
In order to solve the problems existing in the related art, the present disclosure provides a tag processing method, an apparatus and a terminal, which are used for solving the problem that in the prior art, adjacent tags may be in the same color, so that the display of the tags is relatively disordered, the tags are inconvenient for a user to watch and use, and further the user experience is relatively poor.
According to a first aspect of an embodiment of the present disclosure, there is provided a tag processing method, including;
when the application store search page displays the label of the search hot word, acquiring a color type value;
randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value;
and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
Further, the randomly generating a color random number different from the color random number of the adjacent label according to the numerical range in which the color type value is located includes:
and randomly generating an un-generated color random number according to the numerical range of the color type value.
Further, the randomly generating a color random number different from the color random number of the adjacent label according to the numerical range in which the color type value is located includes:
determining the number of the generated color random numbers, and if the number of the generated color random numbers is equal to the color type value, returning the number of the generated color random numbers to zero;
and randomly generating color random numbers, which are different from the generated color random numbers in the current label group and are different from the color random numbers of the adjacent labels, of the current labels in the current label group according to the numerical range of the color type value.
Further, when the application store search page displays a tag for searching for a hot word, acquiring a color category value includes:
receiving the color category value input by a user when a tag of a search hotword is displayed on an application store search page;
or,
the color category value is randomly generated when the application store search page displays a tag for searching for a hot word.
Further, after the determining that the generated color random number different from the color random number of the adjacent label is the color random number of the current label, the method further includes:
according to the color random number of each label, giving a color value corresponding to the color random number of the label to each label;
and displaying each label endowed with the color value in a display area.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring a color category value when a tag for searching a hotword is displayed on a search page of an application store; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a label processing apparatus including:
an acquisition module configured to acquire a color category value when the application store search page displays a tag of a search hot word;
the generation module is configured to randomly generate a color random number which is different from the color random number of the adjacent label according to the numerical range in which the color type value is located;
and the determining module is configured to determine the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
Further, the generating module is specifically configured to:
and randomly generating an un-generated color random number according to the numerical range of the color type value.
Further, the generating module is specifically configured to:
determining the number of the generated color random numbers, and if the number of the generated color random numbers is equal to the color type value, returning the number of the generated color random numbers to zero;
and randomly generating color random numbers, which are different from the generated color random numbers in the current label group and are different from the color random numbers of the adjacent labels, of the current labels in the current label group according to the numerical range of the color type value.
Further, the obtaining module is specifically configured to:
receiving the color category value input by a user when a tag of a search hotword is displayed on an application store search page;
or,
the color category value is randomly generated when the application store search page displays a tag for searching for a hot word.
Further, the apparatus further comprises:
the display module is configured to endow each label with a color value corresponding to the color random number of the label according to the color random number of each label after the color random number of the current label is determined to be the generated color random number different from the color random number of the adjacent label by the determination module; and displaying each label endowed with the color value in a display area.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring a color category value when a tag for searching a hotword is displayed on a search page of an application store; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the application store search page displays the label of the search hot word, acquiring a color type value; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring a color category value when a tag for searching a hotword is displayed on a search page of an application store; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a first embodiment of a tag processing method in accordance with an illustrative embodiment;
fig. 2 is a schematic diagram illustrating a tag in a first embodiment of a tag processing method according to an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a second embodiment of a method for tag processing in accordance with an illustrative embodiment;
FIG. 4 is a block diagram illustrating a third embodiment of a label processing apparatus in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a fourth embodiment of a label processing apparatus in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating entities of a terminal in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a terminal device 800 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a first embodiment of a tag processing method according to an exemplary embodiment, as shown in fig. 1, the method is mainly used in a terminal, the terminal includes a mobile terminal, a personal terminal and the like, for example, a touch screen mobile phone, a tablet computer, a personal computer and the like, and the tag processing method includes the following steps.
In step S11, when the application store search page displays the label of the search hot word, the color kind value is acquired.
Step S11 has two implementation manners:
the first specific implementation manner of step S11 is: receiving the color category value input by a user when the application store search page displays a tag for searching for a hotword.
The second specific implementation manner of step S11 is: the color category value is randomly generated when the application store search page displays a tag for searching for a hot word.
In this step, when the application store search page of the millet needs to display the labels of the search hot words, each label needs to display its own color because the search hot words are a list composed of the labels; at this time, first, the color kind values of all the tags, which represent how many colors all the tags have, are obtained.
The user may input the color kind value, or the terminal may randomly generate the color kind value.
For example, the user inputs a color category value of 6, which represents that all tags may have 6 colors in total; the user enters a color category value of 10, representing that all tags may have a total of 10 colors.
In step S12, a color random number different from the color random number of the adjacent label is randomly generated according to the numerical range in which the color type value is located.
Step S12 has two implementation manners:
the first specific implementation manner of step S12 is: and randomly generating an un-generated color random number according to the numerical range of the color type value.
The second specific implementation manner of step S12 is: determining the number of the generated color random numbers, and if the number of the generated color random numbers is equal to the color type value, returning the number of the generated color random numbers to zero; and randomly generating color random numbers, which are different from the generated color random numbers in the current label group and are different from the color random numbers of the adjacent labels, of the current labels in the current label group according to the numerical range of the color type value.
In this step, after the tags are arranged according to the search popularity of the tags or according to the recommendation order of the tags, a tag list can be obtained. So that there is at least one tag in the tag list arranged in sequence. At this time, the tag list is already the rendered tag list. And then each label in the label list can be obtained.
Generating a color random number of the current label according to the numerical range of the color type value, wherein the generated color random number is different from the color random number of the adjacent label adjacent to the current label; the color random number represents the color of the label, thereby ensuring that the colors of the adjacent labels are different.
A color random number may be randomly generated according to the numerical range in which the color type value is located. And then determining whether the color random number is the same as the generated color random number, if so, regenerating a color random number, and repeating the process until the randomly generated color random number is a color random number which is not generated before.
For example, if the color type value is 10, all the labels may have 10 colors; the color random numbers 2, 5, 6, 8, 9 have been generated, each number representing a color; and generating a color random number 5 which can belong to a numerical range in which the color type value is located aiming at the current label, determining that the color random number 5 is the same as the generated color random number 5 at the moment, and further regenerating a color random number, and so on, and further generating an un-generated color random number.
Or, the labels may be grouped, specifically, the labels having the same number as the color type values and being continuous are grouped into the same group, so as to obtain a plurality of groups of labels; in the process of generating the color random number of each label, determining the number of the generated color random numbers; at this time, if it is determined that the number of the generated color random numbers is equal to the color type value, the number of the generated color random numbers can be zeroed, and it can be further ensured that a new color random number attributed to the color type value can be newly generated; then, a color random number can be randomly generated for the current label in the current label group according to the numerical range of the color type value. And then determining whether the generated color random number of the current label in the current label group is the same as the generated color random number in the current label group, if so, re-generating a color random number, and simultaneously determining whether the generated color random number of the current label in the current label group is the same as the color random number of the adjacent label, if so, re-generating a color random number, and repeating the process until the color random number generated aiming at the current label in the current label group is different from the generated color random number in the current label group and is different from the color random number of the adjacent label. At this time, the above algorithm process may be executed in Java Script language:
for example, if the color type value is 6, all the labels may have 6 colors; there are a total of 18 tags so that consecutive 6 tags can be grouped together, and so that 18 tags can be grouped into 3 groups. Then, for the first group of label groups, the generated color random numbers are 2, 3, 5, 6 and 4 in sequence, each number represents one color, and it is known that 4 colors are generated; determining that the number of the generated color random numbers is 5, wherein the number of the generated color random numbers 5 is not equal to the color type value 6, and further randomly generating a color random number 3 according to the numerical range of the color type value 6 directly for the current label; it can be determined that the color random number 3 is the same as the generated color random number 3, at this time, a new color random number is needed, and it is also needed to determine whether the color random number 3 of the current tag is different from the color random number of the adjacent tag, and this process is repeated until a color random number 1 is determined, where the color random number 1 is different from the generated color random number in the current tag group and different from the color random number of the adjacent tag. Thus, for the first set of tag groups, the color random numbers that have been generated are sequentially 2, 3, 5, 6, 4, 1. Then, a second group of label groups is formed, the number of the generated color random numbers can be determined to be 6, the number of the generated color random numbers is equal to the color type value of 6, and the number of the generated color random numbers can be reduced to zero; then, aiming at a first label of a second group of label groups, a color random number 1 is randomly generated according to the numerical range of the color type value 6, at the moment, the color random number 1 is different from the generated color random number in the second group of label groups, but the color random number 1 is adjacent to the last label of the first group of labels, and the color random number 1 is the same as the color random number of the last label of the first group of labels, and then the color random number needs to be regenerated aiming at the first label of the second group of labels until a color random number which is different from the generated color random number in the current group of labels and different from the color random number of the adjacent label is determined. And by analogy, determining the color random number of each label of the three groups of labels.
In step S13, the generated color random number different from the color random number of the adjacent label is determined as the color random number of the current label.
In this step, the color random number generated in S12 and different from the color random number of the adjacent label may be directly determined to be the color random number of the current label, and further, the color may be given to the current label according to the color represented by the color random number of the current label.
According to the method provided by this embodiment, the color random numbers of adjacent tags may be made different, and the color random numbers of consecutive tags may be made different within a certain range, for example, fig. 2 is a schematic diagram of a tag in an embodiment of a tag processing method shown in an exemplary embodiment, as shown in fig. 2, there are 12 tags in total, each tag has one color random number, the color random numbers of adjacent tags are all different, and the color random numbers of 6 consecutive tags are also different.
In the embodiment, when the application store search page displays the label of the search hot word, the color type value is obtained; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
On the basis of the embodiment shown in fig. 1, fig. 3 is a flowchart illustrating a second embodiment of a tag processing method according to an exemplary embodiment, and as shown in fig. 3, after step S13, the method further includes the following steps:
in step S21, a color value corresponding to the color random number of the label is assigned to each label based on the color random number of each label; and displaying each label endowed with the color value in a display area.
In this step, after the color random number is determined for each label, since one color random number represents one color, each label is given a color value corresponding to the color random number of the label. And then, displaying each label endowed with the color value in a display area of the terminal, and further displaying each label in a display area of an application program of the terminal.
For example, if the color type value is 6, all the tags may have 6 colors, and each color random number represents one color, wherein the color random number 1 represents red, the color random number 2 represents blue, the color random number 3 represents yellow, the color random number 4 represents green, the color random number 5 represents orange, and the color random number 6 represents purple; there are 12 labels in total, and the random number of the color of each label is 2, 3, 5, 6, 4, 1, 5, 6, 1, 4, 3 and 2, so that the color of each label is blue, yellow, orange, purple, green, red, orange, purple, red, green, yellow and blue.
In the embodiment, when the application store search page displays the label of the search hot word, the color type value is obtained; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; determining a color random number which is generated and is different from the color random number of the adjacent label as the color random number of the current label; according to the color random number of each label, giving a color value corresponding to the color random number of the label to each label; and displaying each label endowed with the color value in a display area. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
Fig. 4 is a block diagram illustrating a third embodiment of a tag processing apparatus according to an exemplary embodiment. Referring to fig. 4, the apparatus includes:
an acquisition module 31, a generation module 32, and a determination module 33.
An acquisition module 31 configured to acquire a color category value when the application store search page displays a tag of a search hot word;
a generating module 32 configured to randomly generate a color random number different from the color random number of the adjacent label according to the numerical range in which the color category value is located;
and the determining module 33 is configured to determine the generated color random number, which is different from the color random number of the adjacent label, as the color random number of the current label.
Wherein the generating module 32 is specifically configured to:
and randomly generating an un-generated color random number according to the numerical range of the color type value.
Alternatively, the generating module 32 is specifically configured to:
determining the number of the generated color random numbers, and if the number of the generated color random numbers is equal to the color type value, returning the number of the generated color random numbers to zero;
and randomly generating color random numbers, which are different from the generated color random numbers in the current label group and are different from the color random numbers of the adjacent labels, of the current labels in the current label group according to the numerical range of the color type value.
The obtaining module 31 is specifically configured to:
receiving the color category value input by a user when a tag of a search hotword is displayed on an application store search page; alternatively, the color category value is randomly generated when the application store search page displays a tag for searching for a hot word.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment, when the application store search page displays the label of the search hot word, the color type value is obtained; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
On the basis of the embodiment shown in fig. 4, fig. 5 is a block diagram of a fourth embodiment of a tag processing apparatus according to an exemplary embodiment. Referring to fig. 5, the apparatus further includes:
the display module 41 is configured to, after the determination module 33 determines that the generated color random number different from the color random number of the adjacent label is the color random number of the current label, assign a color value corresponding to the color random number of the label to each label according to the color random number of each label; and displaying each label endowed with the color value in a display area.
In the embodiment, when the application store search page displays the label of the search hot word, the color type value is obtained; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; determining a color random number which is generated and is different from the color random number of the adjacent label as the color random number of the current label; according to the color random number of each label, giving a color value corresponding to the color random number of the label to each label; and displaying each label endowed with the color value in a display area. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
Fig. 6 is a block diagram illustrating entities of a terminal according to an example embodiment. Referring to fig. 6, the terminal may be embodied as: a processor 71, and a memory 72 configured to store processor-executable instructions;
wherein the processor 71 is configured to: when the application store search page displays the label of the search hot word, acquiring a color type value; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
In the above embodiments, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. SIM cards, also known as subscriber identity cards, smart cards, must be installed in a digital mobile phone for use. That is, the information of the digital mobile phone client, the encrypted key and the contents of the user's phone book are stored on the computer chip. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
With regard to the terminal in the above-described embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method and apparatus, and will not be elaborated herein.
In the embodiment, when the application store search page displays the label of the search hot word, the color type value is obtained; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label. Therefore, the color random numbers of the adjacent labels are different, the color random numbers of the continuous labels are different within a certain range, the color distribution of the labels is uniform, the display of the labels is not disordered, the user can watch and use the labels conveniently, and the user experience is improved.
Fig. 7 is a block diagram illustrating a terminal device 800 according to an example embodiment. For example, the terminal device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, terminal device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the terminal device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the terminal device 800. Examples of such data include instructions for any application or method operating on terminal device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal device 800.
The multimedia component 808 comprises a screen providing an output interface between the terminal device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. When the terminal device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the terminal device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 814 includes one or more sensors for providing various aspects of state assessment for terminal device 800. For example, sensor assembly 814 may detect an open/closed status of terminal device 800, the relative positioning of components, such as a display and keypad of terminal device 800, sensor assembly 814 may also detect a change in the position of terminal device 800 or a component of terminal device 800, the presence or absence of user contact with terminal device 800, orientation or acceleration/deceleration of terminal device 800, and a change in the temperature of terminal device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal device 800 and other devices in a wired or wireless manner. The terminal device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a tag processing method, the method comprising:
when the application store search page displays the label of the search hot word, acquiring a color type value;
randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value;
and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (11)

1. A label processing method, comprising:
when the application store search page displays the label of the search hot word, acquiring a color type value;
randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value;
and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
2. The method according to claim 1, wherein randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color category value comprises:
and randomly generating an un-generated color random number according to the numerical range of the color type value.
3. The method according to claim 1, wherein randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color category value comprises:
determining the number of the generated color random numbers, and if the number of the generated color random numbers is equal to the color type value, returning the number of the generated color random numbers to zero;
and randomly generating color random numbers, which are different from the generated color random numbers in the current label group and are different from the color random numbers of the adjacent labels, of the current labels in the current label group according to the numerical range of the color type value.
4. The method of claim 1, wherein obtaining a color category value when the application store search page displays a tag for searching for a hotword comprises:
receiving the color category value input by a user when a tag of a search hotword is displayed on an application store search page;
or,
the color category value is randomly generated when the application store search page displays a tag for searching for a hot word.
5. The method according to any one of claims 1-4, wherein after determining that the generated color random number different from the color random number of the adjacent label is the color random number of the current label, the method further comprises:
according to the color random number of each label, giving a color value corresponding to the color random number of the label to each label;
and displaying each label endowed with the color value in a display area.
6. A label processing apparatus, comprising:
an acquisition module configured to acquire a color category value when the application store search page displays a tag of a search hot word;
the generation module is configured to randomly generate a color random number which is different from the color random number of the adjacent label according to the numerical range in which the color type value is located;
and the determining module is configured to determine the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
7. The apparatus of claim 6, wherein the generation module is specifically configured to:
and randomly generating an un-generated color random number according to the numerical range of the color type value.
8. The apparatus of claim 6, wherein the generation module is specifically configured to:
determining the number of the generated color random numbers, and if the number of the generated color random numbers is equal to the color type value, returning the number of the generated color random numbers to zero;
and randomly generating color random numbers, which are different from the generated color random numbers in the current label group and are different from the color random numbers of the adjacent labels, of the current labels in the current label group according to the numerical range of the color type value.
9. The apparatus of claim 6, wherein the acquisition module is specifically configured to:
receiving the color category value input by a user when a tag of a search hotword is displayed on an application store search page;
or,
the color category value is randomly generated when the application store search page displays a tag for searching for a hot word.
10. The apparatus of any of claims 6-9, further comprising:
the display module is configured to endow each label with a color value corresponding to the color random number of the label according to the color random number of each label after the color random number of the current label is determined to be the generated color random number different from the color random number of the adjacent label by the determination module; and displaying each label endowed with the color value in a display area.
11. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the application store search page displays the label of the search hot word, acquiring a color type value; randomly generating a color random number different from the color random number of the adjacent label according to the numerical range of the color type value; and determining the generated color random number which is different from the color random number of the adjacent label as the color random number of the current label.
CN201610925256.2A 2016-10-24 2016-10-24 Label processing method and device, and terminal Pending CN106383915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610925256.2A CN106383915A (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
CN201610925256.2A CN106383915A (en) 2016-10-24 2016-10-24 Label processing method and device, and terminal

Publications (1)

Publication Number Publication Date
CN106383915A true CN106383915A (en) 2017-02-08

Family

ID=57956986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610925256.2A Pending CN106383915A (en) 2016-10-24 2016-10-24 Label processing method and device, and terminal

Country Status (1)

Country Link
CN (1) CN106383915A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294844A (en) * 2017-08-21 2017-10-24 武汉斗鱼网络科技有限公司 Message display method and device
CN110618844A (en) * 2018-06-19 2019-12-27 优视科技有限公司 Method, device, storage medium and terminal for displaying identification information on application interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477559A (en) * 2009-01-20 2009-07-08 华南理工大学 Geographic information perception method based on area coloring
CN101963966A (en) * 2009-07-24 2011-02-02 李占胜 Method for sorting search results by adding labels into search results
CN105072578A (en) * 2015-08-14 2015-11-18 清华大学 Pilot distribution method in pilot frequency pollution-preventing ultra-dense network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477559A (en) * 2009-01-20 2009-07-08 华南理工大学 Geographic information perception method based on area coloring
CN101963966A (en) * 2009-07-24 2011-02-02 李占胜 Method for sorting search results by adding labels into search results
CN105072578A (en) * 2015-08-14 2015-11-18 清华大学 Pilot distribution method in pilot frequency pollution-preventing ultra-dense network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294844A (en) * 2017-08-21 2017-10-24 武汉斗鱼网络科技有限公司 Message display method and device
CN107294844B (en) * 2017-08-21 2020-08-04 武汉斗鱼网络科技有限公司 Message display method and device
CN110618844A (en) * 2018-06-19 2019-12-27 优视科技有限公司 Method, device, storage medium and terminal for displaying identification information on application interface

Similar Documents

Publication Publication Date Title
CN108304475B (en) Data query method and device and electronic equipment
CN106372204A (en) Push message processing method and device
US20150339016A1 (en) Tab creation method, device, and terminal
CN104539789A (en) Method and device for prompting call request
CN105376412A (en) Information processing method and device
CN105956486A (en) Remote control method and apparatus
CN105095868A (en) Picture matching method and apparatus
CN104461236A (en) Method and device for displaying application icons
CN107402767B (en) Method and device for displaying push message
CN112463418A (en) Cross-device information sharing method, device, medium and electronic device
CN104951522B (en) Method and device for searching
CN105117115B (en) A kind of method and apparatus for showing electronic document
CN107885571B (en) Display page control method and device
CN106506808B (en) Method and device for prompting communication message
CN106447747B (en) Image processing method and device
CN105260088B (en) Information classification display processing method and device
CN106383915A (en) Label processing method and device, and terminal
CN107506134A (en) Dummy keyboard button background display methods and device
CN107885464B (en) Data storage method, device and computer readable storage medium
CN107070816B (en) Application identification method and device and mobile terminal
CN111859208A (en) Display method, display device and storage medium
CN104933107A (en) Searching method of push message and searching device of push message
CN106712960B (en) Processing method and device of verification code information
CN104317480B (en) Character keys display methods, device and terminal
CN110084065B (en) Data desensitization method and device

Legal Events

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

Application publication date: 20170208

RJ01 Rejection of invention patent application after publication