CN109309858B - Display method, device, equipment and medium of mutually exclusive icon - Google Patents

Display method, device, equipment and medium of mutually exclusive icon Download PDF

Info

Publication number
CN109309858B
CN109309858B CN201811157656.9A CN201811157656A CN109309858B CN 109309858 B CN109309858 B CN 109309858B CN 201811157656 A CN201811157656 A CN 201811157656A CN 109309858 B CN109309858 B CN 109309858B
Authority
CN
China
Prior art keywords
icon
priority
mutual exclusion
target icon
target
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.)
Active
Application number
CN201811157656.9A
Other languages
Chinese (zh)
Other versions
CN109309858A (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811157656.9A priority Critical patent/CN109309858B/en
Publication of CN109309858A publication Critical patent/CN109309858A/en
Application granted granted Critical
Publication of CN109309858B publication Critical patent/CN109309858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV

Landscapes

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

Abstract

The invention discloses a display method, a device, equipment and a medium of a mutual exclusion icon, wherein the method comprises the following steps: the control layer receives a display message sent by the server; searching whether a mutually exclusive icon mutually exclusive with a target icon exists in the currently displayed icons or not according to a pre-stored mutually exclusive table and a global variable; if so, judging whether the priority of the target icon is higher than that of the mutually exclusive icon according to a priority database; if the display attribute of the target icon is higher than the preset display attribute, setting the display attribute of the target icon as display, and setting the display attribute of the mutual exclusion icon as hidden; and if the display attribute of the target icon is lower than the preset display attribute, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed. The method and the device can solve the technical problem that the click rate of the corresponding activity or application of the icon is reduced due to the fact that the mutually exclusive icons in the prior art are displayed simultaneously, so that the click rate and the participation amount of the corresponding application or activity of each icon are guaranteed, and network transmission consumption is reduced.

Description

Display method, device, equipment and medium of mutually exclusive icon
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for displaying a mutual exclusion icon.
Background
Currently, with the progress of network communication technology and the speed increase of broadband networks, live webcasts are increasingly developed and applied.
In order to improve the economic income of the anchor and the economic benefit of the live broadcast platform, the current live broadcast platform often provides an activity development function, namely, the anchor or the platform can push an activity link, and an activity icon is pushed and displayed at a viewer end, so that the viewer can enter various activity pages by clicking the icon.
However, when the icons of the activities of the same category, having a competitive relationship, or having an influence on each other are displayed simultaneously at different display positions of the same viewer, mutual conflict is easily caused, the respective participation amounts are influenced, and the total click amount is reduced.
Disclosure of Invention
The invention provides a display method of a mutual exclusion icon, which is used for solving the technical problem that the click quantity of activities or applications corresponding to the icon is reduced because the mutual exclusion icons in the prior art are displayed simultaneously.
In a first aspect, the present invention provides a method for displaying a mutually exclusive icon, where the method is applied to a display device, and a control layer is disposed in the display device, and the method includes:
the control layer receives a display message issued by the server, wherein the display message comprises a target icon which is appointed to be displayed;
searching whether a mutually exclusive icon which is mutually exclusive with the target icon exists in the currently displayed icons of the display equipment or not according to a pre-stored mutually exclusive table and a global variable, wherein the global variable is filled with icon data currently displayed by the display equipment;
if the mutual exclusion icon exists, judging whether the priority of the target icon is higher than that of the mutual exclusion icon according to a priority database;
if the priority of the target icon is higher than that of the mutual exclusion icon, setting the display attribute of the target icon as display and setting the display attribute of the mutual exclusion icon as hidden;
and if the priority of the target icon is lower than that of the mutual exclusion icon, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed.
Optionally, after determining whether the priority of the target icon is higher than the priority of the mutex icon, the method further includes: and if the priority of the target icon is equal to the priority of the mutual exclusion icon, setting the display attribute of the target icon to be displayed and setting the display attribute of the mutual exclusion icon to be hidden.
Optionally, when there are multiple mutually exclusive icons that are mutually exclusive from the target icon in the icon currently displayed by the display device, the determining whether the priority of the target icon is higher than the priority of the mutually exclusive icon includes: and judging whether the priority of the target icon is higher than that of each of the plurality of mutually exclusive icons.
Optionally, the icon information in the priority database and the priority information of the icon information are encapsulated into Wrapper-type icon encapsulation information.
Optionally, the determining, according to the priority database, whether the priority of the target icon is higher than the priority of the mutex icon includes: sending the identifiers of the target icon and the mutex icon to the server, and receiving the priorities of the target icon and the mutex icon sent by the server according to the priority database, so as to judge whether the priority of the target icon is higher than that of the mutex icon; or sending the identifiers of the target icon and the mutual exclusion icon to the server, and receiving a comparison result of the server comparing the priorities of the target icon and the mutual exclusion icon according to the priority database, so as to judge whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to the comparison result; or judging whether the priority of the target icon is higher than that of the mutually exclusive icon according to a priority database stored in the display device.
Optionally, if the priority of the target icon is lower than that of the mutually exclusive icon, caching the target icon, and storing the target icon in a storage linked list; and displaying the target icon after the display of the mutual exclusion icon is finished.
Optionally, storing the target icon in a storage linked list includes: determining the storage position of the target icon in the storage linked list according to the priority of the target icon, wherein the elements in the storage linked list are sequentially arranged from large to small according to the priority; the target icon is linked with elements connected behind the storage position, and then the target icon is linked with elements connected in front of the storage position, so that the target icon is stored in the storage linked list as one element; and after the display of the mutual exclusion icon is finished, sequentially displaying the elements stored in the storage linked list according to the sequence in the storage linked list.
In a second aspect, a display apparatus for a mutually exclusive icon is provided, where the apparatus is a display device, and the display device is provided with a control layer, and includes:
the receiving module is used for receiving a display message sent by the server by the control layer, wherein the display message comprises a target icon which is appointed to be displayed;
the searching module is used for searching whether the mutually exclusive icon which is mutually exclusive with the target icon exists in the currently displayed icons of the display equipment or not according to a pre-stored mutual exclusion table and a global variable, wherein the global variable is filled with the icon data currently displayed by the display equipment;
the judging module is used for judging whether the priority of the target icon is higher than that of the mutual exclusion icon or not according to a priority database if the mutual exclusion icon exists;
the first processing module is used for setting the display attribute of the target icon to be displayed and setting the display attribute of the mutual exclusion icon to be hidden if the priority of the target icon is higher than that of the mutual exclusion icon;
and the second processing module is used for setting the display attribute of the target icon to be hidden and keeping the display attribute of the mutual exclusion icon to be displayed if the priority of the target icon is lower than that of the mutual exclusion icon.
In a third aspect, an electronic device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of the first or second aspect when executing the program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first or second aspect.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
the method, the device, the equipment and the medium provided by the embodiment of the application set the control layer to receive the display message sent by the server and set the mutex table and the global variable to search whether the mutex icon which is mutex with the target icon exists in the icons currently displayed by the display equipment; if the mutual exclusion icon exists, judging whether the priority of the target icon is higher than that of the mutual exclusion icon according to a priority database; if the priority of the target icon is higher than that of the mutual exclusion icon, setting the display attribute of the target icon as display and setting the display attribute of the mutual exclusion icon as hidden; and if the priority of the target icon is lower than that of the mutual exclusion icon, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed. Therefore, whether the target icon to be displayed is the icon with the highest priority in the icons with the mutual exclusion relationship or not is determined by setting the control layer, the mutual exclusion table, the priority database and the corpus variable, if the target icon to be displayed is the icon with the highest priority in the icons with the mutual exclusion relationship, the target icon is ensured to be displayed on the display equipment only by the icon with the highest priority in the icons with the mutual exclusion relationship, the problem that the mutual influence of the mutual exclusion icons is avoided, and the click quantity and the participation quantity of corresponding applications or activities of each icon are ensured.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for displaying a mutex icon according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a display device of a mutex icon according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the invention;
fig. 4 is a schematic structural diagram of a medium according to a fourth embodiment of the present invention.
Detailed Description
The embodiment of the application provides a method for displaying a mutual exclusion icon, so as to solve the technical problem that the click quantity of activities or applications corresponding to the icons is reduced due to the simultaneous display of the mutual exclusion icons in the prior art. Therefore, the click quantity and the participation quantity of the application or the activity corresponding to each icon are ensured, and the network resource consumption is saved.
The technical scheme in the embodiment of the application has the following general idea:
by setting the control layer, the mutual exclusion table, the priority database and the complete set variable, whether a target icon to be displayed is the icon with the highest priority in the icons with the mutual exclusion relationship or not is determined rapidly, and if the target icon is the icon with the highest priority in the icons with the mutual exclusion relationship, the target icon is displayed, so that only the icon with the highest priority in the icons with the mutual exclusion relationship can be displayed on the display device, the problem that the mutual influence of the mutual exclusion icons is avoided, and the click quantity and the participation quantity of corresponding applications or activities of each icon are ensured.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The present embodiment provides a method for displaying a mutually exclusive icon, as shown in fig. 1, where the method is applied to a display device, and the display device is provided with a control layer, and the method includes:
step S101, the control layer receives a display message issued by a server, wherein the display message comprises a target icon which is appointed to be displayed;
step S102, searching whether the mutually exclusive icon mutually exclusive with the target icon exists in the currently displayed icons of the display equipment or not according to a pre-stored mutual exclusive table and a global variable, wherein the global variable is filled with the icon data currently displayed by the display equipment;
step S103, if the mutual exclusion icon exists, judging whether the priority of the target icon is higher than that of the mutual exclusion icon according to a priority database;
step S104, if the priority of the target icon is higher than that of the mutual exclusion icon, setting the display attribute of the target icon as display and setting the display attribute of the mutual exclusion icon as hidden;
step S105, if the priority of the target icon is lower than that of the mutual exclusion icon, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed.
It should be noted that the server may be a single server, a server group, or a cloud server, which is not limited herein. The display device to which the method is applied may be a computer, a tablet computer, a smart phone, or the like, and is not limited herein. Corresponding to the live broadcasting, the display device to which the method is applied can be a spectator end or a live broadcasting end.
The method provided by the present embodiment is described in detail below with reference to fig. 1:
firstly, step S101 is executed, where the control layer receives a display message issued by the server, where the display message includes a target icon designated for display.
It should be noted that the control layer may be a structure implemented by software, or may also be implemented by hardware, and is implemented by a chip or a unit on the chip, which is not described herein in detail, and is not listed. The display device may have one control layer to manage reception of all display messages, or may have a plurality of control layers to manage reception of display messages of different display areas or different icons, respectively, which is not limited herein.
In the embodiment of the present application, the target icon included in the display message may be a code, a logo, or an thumbnail including the target icon, and is not limited herein.
Specifically, the server may receive a request for displaying a target icon sent by the active server, or may receive a request for displaying a target icon sent by the active anchor, generate a display message, and send the display message to the control layer of the display device. After receiving the request, the control layer only sends the generated display information to the control layer, and the control layer performs subsequent operations without displaying information to the modules corresponding to the icons. Therefore, the network resource consumption of display information issuing is reduced.
Step S102, according to a pre-stored mutex table and a global variable, searching whether the mutex icon which is mutually exclusive with the target icon exists in the icons currently displayed by the display equipment, wherein the global variable is filled with the icon data currently displayed by the display equipment.
In the embodiment of the present application, the mutex table may be a list preset by a worker, and icons having a mutex relationship and icon modules corresponding to the icons are arranged together, so as to determine the mutex relationship quickly. The mutual exclusion relationship may be manually set empirically or may be determined based on big data or machine learning algorithms, and is not limited herein.
The global variable is used for packaging the icon data currently displayed by the display device, when a new icon is displayed, the related data is packaged in the global variable, if the icon is changed from display to hiding, the corresponding data can be deleted by the global variable, and therefore the accurate condition of the icon currently displayed by the display device can be determined according to the global variable.
Step S103, if the mutual exclusion icon exists, judging whether the priority of the target icon is higher than that of the mutual exclusion icon according to a priority database.
It should be noted that the priority database is a preset database, and the icon information and the priority information of the icon information may be encapsulated into Wrapper-type icon encapsulation information for searching. Specifically, when the display device receives icon information sent by a server, a background, or other interconnected devices, the icon information and priority information of the icon information are first encapsulated into Wrapper-type icon encapsulation information, which is specifically implemented, for example, by: and constructing a Wrapper object by calling a constructor of the Wrapper class, and encapsulating the priority information of the icon information and the icon information into the Wrapper object. And then adding the icon packaging information to the respective icon packaging information sets of the display areas, for example, the specific implementation includes: an object ListWrapper of a set of icon packaging information of the type listwrrapper > is first constructed, and the icon packaging information is added to the set of icon packaging information ListWrapper by calling the ListWrapper.
For example, the technical means for determining the priority level according to the priority database may be, for example, taking the ListWrapper as an example, first take out the priority information included in all icon packaging information needing to be compared in the ListWrapper set, i.e., level field information, and then constructs all the obtained priority information into a new set listLevel, as can be understood, the set listLevel is an integer set, then the largest number can be screened out by methods such as a binary sorting method, a bubbling method, a selective sorting or bucket sorting method and the like, the number corresponds to the target priority information with the highest priority, and the target icon encapsulation information corresponding to the target priority information is relocated, specifically, and relocating the image packaging information in the List wrapper set through the number corresponding to the target priority information, wherein the image packaging information is the target icon packaging information with the highest priority.
Before the icon information and the priority information of the icon information are encapsulated into the icon encapsulation information, the priority information of the icon information may be acquired from a preset priority table, or the priority information of the icon information may be requested from another device, for example, a server. In the method of searching the priority information of the icon information from the preset priority table, the preset priority table may be created based on the priority of the service type corresponding to the icon information, wherein the higher the priority of the service type is, the higher the priority of the corresponding icon information is, so that the icon information corresponding to the service type with the higher priority may be preferentially displayed. Further, the priority table may store the icon information according to the order of priority from low to high through an array element tableArray [ ], taking the priority information of the icon information item as an example, first traverse the tableArray, and in each traversal, compare whether the item is equal to the array tableArray [ i ], if so, the index value i is the priority information of the item, otherwise, perform the next round of comparison, where i is the index value used in the round. Furthermore, the priority table in this embodiment may also be adjusted according to actual situations, and when the priority of the service type changes, the priority of the corresponding icon information also changes.
In this embodiment of the present application, the priority database may be stored in the display device, or may be stored in the display device, for example:
first, the priority database is stored in the server, and the server returns the priority data.
Namely, the display device sends the identifiers of the target icon and the mutex icon to the server, and receives the priorities of the target icon and the mutex icon sent by the server according to the priority database, so as to judge whether the priority of the target icon is higher than the priority of the mutex icon.
That is, the server returns the priority levels of the target icon and the mutually exclusive icon, and the display device performs priority comparison.
And secondly, storing the priority database in a server, and comparing by the server to return a comparison result.
Namely, the display device sends the identifiers of the target icon and the mutual exclusion icon to the server, and receives the comparison result of the priorities of the target icon and the mutual exclusion icon compared by the server according to the priority database, so as to judge whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to the comparison result.
That is, the server performs comparison with a low priority, and the server returns a direct comparison result, for example, returns an icon identifier with a high priority, or returns a sequence of a target icon and a mutually exclusive icon.
Thirdly, the priority database is stored in the display device, and the display device performs priority comparison.
That is, the display device determines whether the priority of the target icon is higher than the priority of the mutually exclusive icon according to the stored priority database.
Of course, in the implementation process, the determination method is not limited to the above three methods, and is not limited and not listed here.
Further, when there are multiple mutually exclusive icons that are mutually exclusive with the target icon in the icon currently displayed by the display device, the determining whether the priority of the target icon is higher than the priority of the mutually exclusive icon includes:
and judging whether the priority of the target icon is higher than that of each of the plurality of mutually exclusive icons. Displaying the target icon only if the priority of the target icon is higher than the priority of each of the plurality of mutually exclusive icons.
Of course, if the mutually exclusive icon of the target icon does not exist in the icons currently displayed by the display device, the target icon may be directly displayed.
Then, step S104 or S105 is executed, it should be noted that there is no precedence relationship between step S104 and step S105.
And step S104, if the priority of the target icon is higher than that of the mutual exclusion icon, setting the display attribute of the target icon to be displayed and setting the display attribute of the mutual exclusion icon to be hidden.
That is, when the priority of the target icon is higher than all the exclusive icons which are exclusive to the target icon, the target icon is displayed, and other icons which are exclusive to the target icon are not displayed. Therefore, only the icons with high priority are displayed when the mutual exclusion condition exists, and the condition that the mutual exclusion icons are displayed together is avoided.
Step S105, if the priority of the target icon is lower than that of the mutual exclusion icon, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed.
Further, a situation may occur where the priority of the target icon is equal to the priority of the mutually exclusive icon, and if the priority of the target icon is equal to the priority of the mutually exclusive icon, the display attribute of the target icon may be set to display, and the display attribute of the mutually exclusive icon may be set to hide. I.e. the icon that was last required to be displayed, to effect the update.
In the embodiment of the application, under the condition that the display attribute of the target icon needs to be set to be hidden, that is, the target icon is not displayed temporarily, the target icon can be cached, and the target icon is stored in a storage linked list, so that the target icon is displayed according to rules after the display of the mutual exclusion icon is finished.
Specifically, in order to facilitate the sequential and ordered display of the current hidden icons, the storage positions of the target icons in the storage linked list can be determined according to the priority of the target icons, wherein the elements in the storage linked list are arranged in sequence from large to small according to the priority; after the storage position is determined, the target icon is linked with the elements connected behind the storage position, and then the target icon is linked with the elements connected in front of the storage position, so that the target icon is stored in the storage linked list as one element; and after the display of the mutual exclusion icon is finished, sequentially displaying the elements stored in the storage linked list according to the sequence in the storage linked list.
The method comprises the steps of firstly linking the target icon with the elements connected behind the storage position, and then linking the target icon with the elements connected in front of the storage position, wherein the fact that the storage linked list always points to the next position from the previous position is considered, if the linked list is linked with the previous elements firstly, the linked list is broken from front to back, and the next element cannot be determined.
Specifically, when the display time of a certain icon displayed on the display device reaches and is not displayed any more, if a new display message issued by the server is not received, a new display area is vacated, and at this time, the icons can be sequentially selected for display according to the sequence in the storage linked list in combination with the judgment of mutual exclusion. I.e. icons which are preferentially displayed in the storage linked list and have no mutual exclusive relationship with the currently displayed icons.
Based on the same inventive concept, the embodiment of the invention also provides a device corresponding to the method in the first embodiment, which is shown in the second embodiment.
Example two
The present embodiment provides a display apparatus of a mutually exclusive icon, as shown in fig. 2, the apparatus is a display device, and the display device is provided with a control layer, including:
a receiving module 201, configured to receive, by the control layer, a display message issued by a server, where the display message includes a target icon designated for display;
a searching module 202, configured to search, according to a pre-stored mutex table and a global variable, whether a mutex icon that is mutex with the target icon exists in the icons currently displayed by the display device, where the global variable includes icon data currently displayed by the display device;
the judging module 203 is configured to, if a mutual exclusion icon exists, judge whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to a priority database;
the first processing module 204 is configured to set a display attribute of a target icon to be displayed and set a display attribute of the mutex icon to be hidden if the priority of the target icon is higher than the priority of the mutex icon;
a second processing module 205, configured to set the display attribute of the target icon as hidden and keep the display attribute of the mutually exclusive icon as displayed if the priority of the target icon is lower than the priority of the mutually exclusive icon.
Since the apparatus described in the second embodiment of the present invention is an apparatus used for implementing the method of the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the apparatus, and thus the details are not described herein. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
Based on the same inventive concept, the application provides a corresponding electronic device embodiment, which is detailed in
Example three.
EXAMPLE III
The present embodiment provides an electronic device, as shown in fig. 3, which includes a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320, and when the processor 320 executes the computer program 311, any one of the embodiments may be implemented.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a specific implementation of the electronic device in this embodiment and various variations thereof can be understood by those skilled in the art, and therefore, how to implement the method in the first embodiment of the present application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the fourth embodiment, which is described in detail in the fourth embodiment.
Example four
The embodiment provides a computer-readable storage medium 400, as shown in fig. 4, on which a computer program 411 is stored, and when the computer program 411 is executed by a processor, any one of the embodiment modes can be implemented.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
the setting control layer receives a display message issued by a server, and sets a mutex table and a global variable to find whether the mutex icon which is mutually exclusive with the target icon exists in the icons currently displayed by the display equipment; if the mutual exclusion icon exists, judging whether the priority of the target icon is higher than that of the mutual exclusion icon according to a priority database; if the priority of the target icon is higher than that of the mutual exclusion icon, setting the display attribute of the target icon as display and setting the display attribute of the mutual exclusion icon as hidden; and if the priority of the target icon is lower than that of the mutual exclusion icon, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed. Therefore, whether the target icon to be displayed is the icon with the highest priority in the icons with the mutual exclusion relationship or not is determined by setting the control layer, the mutual exclusion table, the priority database and the corpus variable, if the target icon to be displayed is the icon with the highest priority in the icons with the mutual exclusion relationship, the target icon is ensured to be displayed on the display equipment only by the icon with the highest priority in the icons with the mutual exclusion relationship, the problem that the mutual influence of the mutual exclusion icons is avoided, and the click quantity and the participation quantity of corresponding applications or activities of each icon are ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (8)

1. A mutually exclusive icon display method is applied to display equipment, a control layer is arranged in the display equipment, and the method comprises the following steps:
the control layer receives a display message issued by the server, wherein the display message comprises a target icon which is appointed to be displayed;
searching whether a mutually exclusive icon which is mutually exclusive with the target icon exists in the currently displayed icons of the display equipment or not according to a pre-stored mutually exclusive table and a global variable, wherein the global variable is filled with icon data currently displayed by the display equipment;
if the mutual exclusion icon exists, judging whether the priority of the target icon is higher than that of the mutual exclusion icon according to a priority database;
if the priority of the target icon is higher than that of the mutual exclusion icon, setting the display attribute of the target icon as display and setting the display attribute of the mutual exclusion icon as hidden;
if the priority of the target icon is lower than that of the mutual exclusion icon, setting the display attribute of the target icon to be hidden, and keeping the display attribute of the mutual exclusion icon to be displayed;
the icon information in the priority database and the priority information of the icon information are packaged into Wrapper type icon packaging information;
wherein, the judging whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to the priority database comprises:
sending the identifiers of the target icon and the mutex icon to the server, and receiving the priorities of the target icon and the mutex icon sent by the server according to the priority database, so as to judge whether the priority of the target icon is higher than that of the mutex icon; alternatively, the first and second electrodes may be,
sending the identifiers of the target icon and the mutual exclusion icon to the server, and receiving a comparison result of the server comparing the priorities of the target icon and the mutual exclusion icon according to the priority database, so as to judge whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to the comparison result; alternatively, the first and second electrodes may be,
and judging whether the priority of the target icon is higher than that of the mutually exclusive icon or not according to a priority database stored in the display equipment.
2. The method of claim 1, wherein after determining whether the priority of the target icon is higher than the priority of the mutually exclusive icon, further comprising:
and if the priority of the target icon is equal to the priority of the mutual exclusion icon, setting the display attribute of the target icon to be displayed and setting the display attribute of the mutual exclusion icon to be hidden.
3. The method of claim 1, wherein when there are a plurality of mutually exclusive icons that are mutually exclusive from the target icon among the icons currently displayed by the display device, the determining whether the priority of the target icon is higher than the priority of the mutually exclusive icon comprises:
and judging whether the priority of the target icon is higher than that of each of the plurality of mutually exclusive icons.
4. The method of claim 1, further comprising:
if the priority of the target icon is lower than that of the mutual exclusion icon, caching the target icon, and storing the target icon into a storage linked list;
and displaying the target icon after the display of the mutual exclusion icon is finished.
5. The method of claim 4, wherein storing the target icon in a linked list of stores comprises:
determining the storage position of the target icon in the storage linked list according to the priority of the target icon, wherein the elements in the storage linked list are sequentially arranged from large to small according to the priority;
the target icon is linked with elements connected behind the storage position, and then the target icon is linked with elements connected in front of the storage position, so that the target icon is stored in the storage linked list as one element;
and after the display of the mutual exclusion icon is finished, sequentially displaying the elements stored in the storage linked list according to the sequence in the storage linked list.
6. The display device of the mutual exclusion icon is characterized in that the device is a display device, a control layer is arranged in the display device, and the display device comprises:
the receiving module is used for receiving a display message sent by the server by the control layer, wherein the display message comprises a target icon which is appointed to be displayed;
the searching module is used for searching whether the mutually exclusive icon which is mutually exclusive with the target icon exists in the currently displayed icons of the display equipment or not according to a pre-stored mutual exclusion table and a global variable, wherein the global variable is filled with the icon data currently displayed by the display equipment;
the judging module is used for judging whether the priority of the target icon is higher than that of the mutual exclusion icon or not according to a priority database if the mutual exclusion icon exists;
the first processing module is used for setting the display attribute of the target icon to be displayed and setting the display attribute of the mutual exclusion icon to be hidden if the priority of the target icon is higher than that of the mutual exclusion icon;
the second processing module is used for setting the display attribute of the target icon to be hidden and keeping the display attribute of the mutual exclusion icon to be displayed if the priority of the target icon is lower than that of the mutual exclusion icon;
the icon information in the priority database and the priority information of the icon information are packaged into Wrapper type icon packaging information;
wherein, the judging whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to the priority database comprises:
sending the identifiers of the target icon and the mutex icon to the server, and receiving the priorities of the target icon and the mutex icon sent by the server according to the priority database, so as to judge whether the priority of the target icon is higher than that of the mutex icon; alternatively, the first and second electrodes may be,
sending the identifiers of the target icon and the mutual exclusion icon to the server, and receiving a comparison result of the server comparing the priorities of the target icon and the mutual exclusion icon according to the priority database, so as to judge whether the priority of the target icon is higher than the priority of the mutual exclusion icon according to the comparison result; alternatively, the first and second electrodes may be,
and judging whether the priority of the target icon is higher than that of the mutually exclusive icon or not according to a priority database stored in the display equipment.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-5 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.
CN201811157656.9A 2018-09-30 2018-09-30 Display method, device, equipment and medium of mutually exclusive icon Active CN109309858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811157656.9A CN109309858B (en) 2018-09-30 2018-09-30 Display method, device, equipment and medium of mutually exclusive icon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811157656.9A CN109309858B (en) 2018-09-30 2018-09-30 Display method, device, equipment and medium of mutually exclusive icon

Publications (2)

Publication Number Publication Date
CN109309858A CN109309858A (en) 2019-02-05
CN109309858B true CN109309858B (en) 2021-04-27

Family

ID=65225164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811157656.9A Active CN109309858B (en) 2018-09-30 2018-09-30 Display method, device, equipment and medium of mutually exclusive icon

Country Status (1)

Country Link
CN (1) CN109309858B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334230B (en) * 2019-05-08 2021-10-15 武汉瓯越网视有限公司 View object display method and related device
CN111897465B (en) * 2020-08-07 2022-03-15 广州酷狗计算机科技有限公司 Popup display method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989176A (en) * 2009-08-04 2011-03-23 Lg电子株式会社 Mobile terminal and icon collision controlling method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582938B (en) * 2008-05-14 2012-09-12 比亚迪股份有限公司 Mobile terminal as well as icon display method and system thereof
CN106020601A (en) * 2016-05-16 2016-10-12 乐视控股(北京)有限公司 Interface display management method and device
CN106020697A (en) * 2016-05-25 2016-10-12 乐视控股(北京)有限公司 Control method and device for display elements
CN108415780A (en) * 2018-01-25 2018-08-17 阿里巴巴集团控股有限公司 A kind of information displaying method and device
CN108540818B (en) * 2018-04-03 2020-09-08 武汉斗鱼网络科技有限公司 Live broadcast room corner mark setting method and device, terminal and computer readable medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989176A (en) * 2009-08-04 2011-03-23 Lg电子株式会社 Mobile terminal and icon collision controlling method thereof

Also Published As

Publication number Publication date
CN109309858A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US20180027061A1 (en) Method and apparatus for elastically scaling virtual machine cluster
CN108055264A (en) Dispatching device, method and the computer readable storage medium of stream pushing server
CN107395659A (en) A kind of method and device of service handling and common recognition
CN104504106B (en) A kind of map covering zone rendering method and relevant device
CN105979007A (en) Acceleration resource processing method and device and network function virtualization system
CN106570097A (en) Sequence generating method and device
CN110162270A (en) Date storage method, memory node and medium based on distributed memory system
CN109309858B (en) Display method, device, equipment and medium of mutually exclusive icon
CN113127192A (en) Method, system, device and medium for sharing same GPU by multiple services
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN110544159B (en) Map information processing method and device, readable storage medium and electronic equipment
CN104932986A (en) Data redistribution method and apparatus
CN105933154A (en) Management method of cloud calculation resources
CN110928397A (en) User interface refreshing method and device, storage medium and electronic device
CN109407922B (en) Icon display control method, device, equipment and medium
CN115361382B (en) Data processing method, device, equipment and storage medium based on data group
CN109388498B (en) Mutual exclusion processing method, device, equipment and medium
CN105898399A (en) Video resource loading method and device and smart television
CN110333804A (en) The response method of textures, device, terminal device and storage medium in game system
CN115311399A (en) Image rendering method and device, electronic equipment and storage medium
CN110019456A (en) Data lead-in method, device and system
CN106603604A (en) Method and device of triggering transaction processing motion
CN110971954B (en) Method, device, equipment and medium for displaying icons at different positions
CN109241108A (en) Method for selecting number and device
CN103984545A (en) Mobile terminal advertisement request method and mobile terminal advertisement request device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant