CN109284164B - Icon display method and device - Google Patents

Icon display method and device Download PDF

Info

Publication number
CN109284164B
CN109284164B CN201811158914.5A CN201811158914A CN109284164B CN 109284164 B CN109284164 B CN 109284164B CN 201811158914 A CN201811158914 A CN 201811158914A CN 109284164 B CN109284164 B CN 109284164B
Authority
CN
China
Prior art keywords
icon information
information
icon
display area
priority
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
CN201811158914.5A
Other languages
Chinese (zh)
Other versions
CN109284164A (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 CN201811158914.5A priority Critical patent/CN109284164B/en
Publication of CN109284164A publication Critical patent/CN109284164A/en
Application granted granted Critical
Publication of CN109284164B publication Critical patent/CN109284164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention provides an icon display method and device, wherein the method comprises the following steps: dividing a screen into display areas with different levels; creating a mutual exclusion manager; performing, by the mutex manager: when the icon information is received by the display area, adding the icon information into the icon information set; screening icon information with the highest priority from respective icon information sets of the display area, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; determining target icon information with higher priority in the two icon information; obtaining next icon information for comparison until all the icon information in the icon information set is compared, and obtaining icon information with the highest priority in the icon information set; and displaying the icon information with the highest priority. Icon information with the highest priority can be screened out by the mutual exclusion manager and then displayed.

Description

Icon display method and device
Technical Field
The invention relates to the technical field of computers, in particular to an icon display method and device.
Background
Generally, after a screen is divided into a plurality of different display areas, only one icon can be displayed in the same display area, so that a user can quickly identify the position of the icon and perform operations of related services.
However, as the applications become richer and more, the number of icons corresponding to the applications also becomes more and more, and when the same display area receives information of a plurality of icons which are pre-displayed, only the plurality of icons can be displayed in the same display area, so that the problem of icon overlapping is caused, the difficulty of icon identification is large, the operation is inconvenient, even some icons are completely shielded, and the user cannot identify the icons at all.
Disclosure of Invention
The invention provides an icon display method and device, and solves the problems that in the prior art, a plurality of icons are displayed in the same display area, so that the icon identification difficulty is high, and the operation is inconvenient.
In a first aspect, an embodiment of the present invention provides an icon display method, where the method includes:
dividing a screen into display areas with different levels;
creating a mutual exclusion manager, wherein the mutual exclusion manager comprises information of each display area, and the information of the display areas comprises grade information of the display areas, position information of the display areas and icon information sets of the display areas;
performing, by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared;
and displaying the icon information with the highest priority based on the position information of the display area.
In some possible implementations, prior to the creating the mutex manager, the method further comprises:
creating a List < Object > type icon information set, wherein each icon information in the icon information set is of an Object type.
In some possible implementations, the mutual exclusion manager associates, by a MAP object, the level information of the display area, the position information of the display area, and the set of icon information of the display area.
In some possible implementations, before the looking up the priority information of the two icon information from the preset priority table, the method further includes:
and creating the preset priority table based on the priority of the service type corresponding to the icon information.
In some possible implementations, the mutual exclusion manager represents the level information of the display area and the position information of the display area by a position field, the position field being a constant of an integer type.
In some possible implementations, the dividing the screen into display regions with different levels includes:
the screen is divided into display areas of different levels by size.
In a second aspect, an embodiment of the present invention provides an icon display apparatus, including:
a dividing unit for dividing the screen into display areas of different levels;
a creating unit, configured to create a mutex manager, where the mutex manager includes information of each display area, and the information of the display area includes level information of the display area, position information of the display area, and an icon information set of the display area;
an execution unit, configured to perform, by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared;
and the display unit is used for displaying the icon information with the highest priority based on the position information of the display area.
In some possible implementations, the creating unit is further configured to create a List < Object > type set of icon information, where each icon information in the set of icon information is an Object.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, any implementation manner of the icon display method may be implemented.
In a fourth aspect, an embodiment of the present invention provides a computer device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program, and can implement any implementation manner of the icon display method.
In the icon display method provided by the embodiment of the invention, a screen is divided into display areas with different grades; creating a mutual exclusion manager, wherein the mutual exclusion manager comprises information of each display area, and the information of the display areas comprises grade information of the display areas, position information of the display areas and icon information sets of the display areas; performing, by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared; and displaying the icon information with the highest priority based on the position information of the display area. When the display area receives a plurality of icon information to be displayed, one icon information with the highest priority can be screened out through the mutual exclusion manager and displayed, and the problems that in the prior art, a plurality of icons are displayed in the same display area, so that the icon identification difficulty is high, and the operation is inconvenient are solved.
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 technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of an icon display method in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an icon display device according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a computer device in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer-readable storage medium in an embodiment of the present application.
Detailed Description
The embodiment of the invention provides an icon display method and device, when a display area receives a plurality of icon information to be displayed, one icon information with the highest priority can be screened out through a mutual exclusion manager and displayed, and the problems that in the prior art, the icon identification difficulty is large and the operation is inconvenient because a plurality of icons are displayed in the same display area are solved.
The technical scheme in the embodiment of the invention has the following general idea:
dividing a screen into display areas with different levels; creating a mutual exclusion manager, wherein the mutual exclusion manager comprises information of each display area, and the information of the display areas comprises grade information of the display areas, position information of the display areas and icon information sets of the display areas; performing, by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared; and displaying the icon information with the highest priority based on the position information of the display area. When the display area receives a plurality of icon information to be displayed, one icon information with the highest priority can be screened out through the mutual exclusion manager and displayed, and the problems that in the prior art, a plurality of icons are displayed in the same display area, so that the icon identification difficulty is high, and the operation is inconvenient are solved.
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.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the names of the variables or functions used herein may also be used in other implementations to indicate the same meaning, and are not limited herein.
Example one
An embodiment of the present invention provides an icon display method, please refer to fig. 1, the method includes:
and S101, dividing the screen into display areas of different levels.
Specifically, the screen may be divided into display regions with different sizes, and then the screen is divided into display regions with different levels according to the sizes, for example, the larger the area of the display region is, the higher the level is, and the smaller the area of the display region is, the lower the level is, or the screen may be divided into display regions with equal sizes, and then the screen is divided into display regions with different levels according to visual preference, for example, the display region in the middle of the screen is, the display region at the corner of the screen is, the lower the level is, or the screen may be divided into display regions with different levels by combining various manners, which is not limited herein.
It should be noted that the screen in this embodiment may be a screen of an electronic device such as a smart phone, a smart watch, a desktop computer, a notebook, or a tablet computer, and may be distinguished according to a material of the screen, and may also be a TFT-LCD (thin film transistor-liquid crystal Display), an OLED (Organic Light Emitting Display), or the like, which is not limited herein.
S102, creating a mutual exclusion manager, wherein the mutual exclusion manager comprises information of each display area, and the information of the display areas comprises grade information of the display areas, position information of the display areas and icon information sets of the display areas.
Specifically, the position field indicates both the level information of the display area and the position information of the display area. In code implementation, the position field is a constant of an integer type, wherein an integer can be used to distinguish position information between different display areas and to calibrate the grade of the display area, and defining an integer as a constant can enhance the readability and maintainability of the code. For example, the position field is implemented as follows:
Public static final int FIRST_POSITION=1;
Public static final int SECOND_POSITION=2;
wherein static final represents a constant, Public represents that other classes have the right to access the variable, FIRST _ POSITION represents that the constant is an integer 1, SECOND _ POSITION represents that the constant is an integer 2, and the values of the subsequent FIRST _ POSITION and SECOND _ POSITION cannot be modified any more. In some other implementations, the position information and the level information of the display area may be represented by different variable names, respectively, and are not limited herein.
In addition to the design position field, an icon information set of List < Object > type is created first, since the icon information set is to store the icon information to be displayed, various types of icon information need to be considered, and the Object type is a type on the top layer and can accommodate any type of data, so the type of each icon information in the icon information set of the present embodiment is defined as Object.
After the position field representing the level information and the position information of the display area and the data structure of the List < Object > representing the icon information set are designed, a method is further needed to construct the association between the position and the List < Object >, specifically, a MAP Object is designed to associate the level information of the display area, the position information of the display area and the icon information set of the display area, that is, a MAP < int, List < Object > type data is defined to construct the association between the position and the List < Object >, wherein int is used for storing the information of the position. As can be seen, the MAP is a set and List < Object > is also a set, and the goal of creating the mutex manager data structure is ultimately accomplished by designing this multi-level set nesting. After creating the data structure MAP < int, List < Object > type of the mutual exclusion manager, a process of instantiating an Object needs to be performed on the data of the type, and a method for specifically instantiating the data of the MAP < int, List < Object > type is implemented by calling a constructor thereof, taking instantiating mMap as an example, and the specific implementation is as follows:
MAP<int,List<Object>>mMap=new HashMap<int,List<Object>>()
it is to be understood that this embodiment is only described by taking an mMap example as an example, and the present embodiment is not limited thereto, and will not be described again below.
S103, executing the following operations through the mutual exclusion manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; and comparing the next icon information with the target icon information to obtain next target icon information, and obtaining the icon information with the highest priority in the icon information set until all the icon information in the icon information set is compared.
After the mutual exclusion manager is created, the icon information of each display area can be managed uniformly through the mutual exclusion manager, and when the display areas receive the icon information, the icon information is added to the respective icon information sets of the display areas, wherein the icon information can be sent by a server, a background or other interconnected devices, and is not limited herein. For example, assuming that two icon information items 1 and 2 are received in a display area whose POSITION field is FIRST _ POSITION, an implementation of adding icon information to a set of icon information of the display area includes: the display area where the icon information is located is determined, then an Object of an icon information set is constructed, taking the icon information set Object listItems as an example, the specific construction process is that List < Object > listItems ═ new ArrayList < Object > (), then relevant icon information is stored in the set listItems by calling listitems.add (item1) and listitems.add (item2) methods in the listItems Object, then taking the mMap Object as an example, and then information of FIRST _ POSITION and listems is stored in the set mMap Object by calling mMap.put (FIRST _ POSITION, listItems) methods in the mMap Object.
Because the levels of the display areas are different, the display areas can be sorted first based on the level information of the display areas, and then the icon information with the highest priority is sequentially screened from the respective icon information sets of each display area according to the order of the levels from high to low.
For each icon information set, the specific screening steps include: specifically, taking the mMap object and the FIRST _ POSITION display area as an example, the manner of acquiring the icon information from the icon information set specifically includes: get (FIRST _ POSITION) method in mMap to fetch icon information of FIRST _ POSITION; searching the priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; and comparing the next icon information with the target icon information to obtain next target icon information, and obtaining the icon information with the highest priority in the icon information set until all the icon information in the icon information set is compared.
It should be noted that, in this embodiment, priority information of the icon information may be searched from a preset priority table, or priority information of the icon information may be requested from another device, for example, from 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 example of finding the priority information of the icon information item1, first traverse the tableArray, and compare the item1 ═ tableArray [ i ] in each traversal, that is, compare whether the item1 is equal to the array tableArray [ i ] element, if equal, the index value i is the priority information of the item1, otherwise, perform the next round comparison, where i is the index value used in the round. Assuming that the index value of item1 is index1, the index value of item2 is index2, then the sizes of index1 and index2 are compared, the larger one is max1, the index value of the next icon information is obtained as index3, then the sizes of max1 and index3 are compared, the larger one is max2, and so on, and finally the icon information with the highest priority in the icon information set is obtained. 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.
It should also be noted that, in some other implementations, the step of screening may further include: and obtaining two pieces of icon information each time, comparing the two pieces of icon information with higher priority pairwise, then comparing the two pieces of icon information with higher priority obtained in the first round pairwise by adopting the same method, and so on to finally obtain the icon information with the highest priority in the icon information set, wherein the method is not limited herein.
And S104, displaying the icon information with the highest priority based on the position information of the display area.
For example, in this embodiment, the POSITION information of the display area may be determined by a POSITION field, taking the display area FIRST _ POSITION as an example, after the icon information with the highest priority of the display area is screened out, the icon information with the highest priority is displayed in the display area of FIRST _ POSITION.
Further, the icon information with the highest priority may also be displayed in combination with different display manners, including but not limited to static images, dynamic animations, icons becoming smaller or larger, and the like, without limitation.
For ease of understanding, the present embodiment is described below with reference to an application scenario. In a display interface of a certain application, a screen is divided into two display areas with different levels, wherein one display area 1 with the level 1 is positioned at the upper half part of the screen, and the other display area 2 with the level 2 is positioned at the lower half part of the screen, and the lower the number of the level is, the higher the level is. When the display area 1 and the display area 2 both receive a plurality of icon information, the mutual exclusion manager stores the icon information of the display area 1 in the icon information set of the display area 1 and stores the icon information of the display area 2 in the icon information set of the display area 2. By comparison, if the display area 1 is ranked higher than the display area 2, the mutex manager processes the icon information of the display area 1 first. The icon information set of the display area 1 has three pieces of icon information in total, including the icon information of the guessing activity sent by the server, the icon information of the lottery activity sent by the background, and the icon information of the quiz game sent by another server. The mutual exclusion manager randomly acquires the icon information of the guess competition activities and the icon information of the lottery activities, and finds out that the priority of the icon information of the guess competition activities is 4 and the priority of the icon information of the lottery activities is 5 in a preset priority table, wherein the higher the number of the priority is, the higher the priority is. The priority of the icon information of the lottery event is high, the icon information of the lottery event is determined to be target icon information, next icon information, namely the icon information of the quiz game, is obtained from the icon information set, the priority of the icon information of the quiz game is found to be 2, the icon information of the lottery event is determined to be the icon information with the highest priority by comparing the priority of the icon information with the priority of the target icon information, and then the icon information of the lottery event is displayed in a display area 1, namely the upper half part of a screen. Similarly, the icon information of the display area 2 with the highest priority is further screened and displayed in the lower half of the screen. Therefore, the problems that a plurality of icon information are displayed in the same display area, so that the icon information is difficult to identify and inconvenient to operate are solved.
In the embodiment, the screen is divided into display areas with different levels; creating a mutual exclusion manager, wherein the mutual exclusion manager comprises information of each display area, and the information of the display areas comprises grade information of the display areas, position information of the display areas and icon information sets of the display areas; performing, by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared; and displaying the icon information with the highest priority based on the position information of the display area. When the display area receives a plurality of icon information to be displayed, one icon information with the highest priority can be screened out through the mutual exclusion manager and displayed, and the problems that in the prior art, a plurality of icons are displayed in the same display area, so that the icon identification difficulty is high, and the operation is inconvenient are solved.
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
An embodiment of the present invention provides an icon display apparatus, please refer to fig. 2, the apparatus includes:
a dividing unit 201 for dividing a screen into display areas of different levels;
a creating unit 202, configured to create a mutex manager, where the mutex manager includes information of each display area, and the information of the display area includes level information of the display area, position information of the display area, and an icon information set of the display area;
an execution unit 203, configured to execute, by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared;
a display unit 204, configured to display the icon information with the highest priority based on the position information of the display area.
In this embodiment, the dividing unit 201 divides the screen into display areas of different levels; the creating unit 202 creates a mutex manager, which includes information of each of the display areas, the information of the display areas including rank information of the display areas, position information of the display areas, and an icon information set of the display areas; the execution unit 203 performs the following operations by the mutex manager: when the display area receives icon information, adding the icon information to the respective icon information sets of the display area; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared; the display unit 204 displays the icon information with the highest priority based on the position information of the display area. When the display area receives a plurality of icon information to be displayed, one icon information with the highest priority can be screened out through the mutual exclusion manager and displayed, and the problems that in the prior art, a plurality of icons are displayed in the same display area, so that the icon identification difficulty is high, and the operation is inconvenient are solved.
Since the device described in the second embodiment of the present invention is a device used for implementing the icon display method in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the device based on the method described in the first embodiment of the present invention, and thus the detailed description is omitted here. All the devices adopted in the method of the first embodiment of the present invention belong to the protection scope of the present invention.
EXAMPLE III
Based on the same inventive concept, the present embodiment provides a computer apparatus 300, as shown in fig. 3, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and capable of running on the processor 320, where when the processor 320 executes the computer program 311, all steps of the first embodiment can be implemented, and thus are not described herein again.
Example four
Based on the same inventive concept, the present 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, all steps of the first embodiment can be implemented, so that the detailed description is omitted here.
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 (6)

1. An icon display method, characterized in that the method comprises:
dividing a screen into display areas with different levels;
creating a mutual exclusion manager, wherein the mutual exclusion manager comprises information of each display area, and the information of the display areas comprises grade information of the display areas, position information of the display areas and icon information sets of the display areas;
performing, by the mutex manager: when different display areas respectively receive icon information, adding the icon information to respective icon information sets of the display areas; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared;
displaying the icon information with the highest priority based on the position information of the display area;
wherein, prior to the creating a mutex manager, the method further comprises:
creating a List < Object > type icon information set, wherein the type of each icon information in the icon information set is Object;
the mutual exclusion manager represents the grade information of the display area and the position information of the display area through a position field, wherein the position field is a constant of an integer type;
the mutual exclusion manager combines the level information of the display area, the position information of the display area and the icon information set of the display area through MAP objects, and establishes the relation between the position and the List < Object > by defining data of MAP < int, List < Object > > type, wherein int is used for storing the position information, and the data of MAP < int, List < Object > > type is used for enabling the display areas of different levels to respectively have the function of receiving and storing the icon information.
2. The method of claim 1, wherein before the searching for the priority information of the two icon information from a preset priority table, the method further comprises:
and creating the preset priority table based on the priority of the service type corresponding to the icon information.
3. The method according to any one of claims 1-2, wherein the dividing the screen into display areas of different levels comprises:
the screen is divided into display areas of different levels by size.
4. An icon display apparatus, characterized in that the apparatus comprises:
a dividing unit for dividing the screen into display areas of different levels;
a creating unit, configured to create a mutex manager, where the mutex manager includes information of each display area, and the information of the display area includes level information of the display area, position information of the display area, and an icon information set of the display area;
an execution unit, configured to perform, by the mutex manager: when different display areas respectively receive icon information, adding the icon information to respective icon information sets of the display areas; sequentially screening icon information with the highest priority from the respective icon information sets of each display area based on the grade information of the display areas, wherein the screening step comprises the following steps: acquiring two pieces of icon information from the icon information set; searching priority information of the two icon information from a preset priority table, wherein the preset priority table is the corresponding relation between the icon information and the priority information; determining target icon information with higher priority in the two pieces of icon information based on the priority information of the two pieces of icon information; acquiring next icon information from the icon information set; comparing the next icon information with the target icon information to obtain next target icon information, and obtaining icon information with the highest priority in the icon information set until all icon information in the icon information set is compared;
a display unit configured to display the icon information with the highest priority based on the position information of the display area;
the creating unit is further configured to create a List < Object > type icon information set, where each icon information in the icon information set is an Object;
before the creating of the mutual exclusion manager, the creating unit is further configured to create a set of icon information of a List < Object > type, where a type of each icon information in the set of icon information is Object;
the mutual exclusion manager represents the grade information of the display area and the position information of the display area through a position field, wherein the position field is a constant of an integer type;
the mutual exclusion manager combines the level information of the display area, the position information of the display area and the icon information set of the display area through MAP objects, and establishes the relation between the position and the List < Object > by defining data of MAP < int, List < Object > > type, wherein int is used for storing the position information, and the data of MAP < int, List < Object > > type is used for enabling the display areas of different levels to respectively have the function of receiving and storing the icon information.
5. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
6. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any one of claims 1-3 when executing the computer program.
CN201811158914.5A 2018-09-30 2018-09-30 Icon display method and device Active CN109284164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811158914.5A CN109284164B (en) 2018-09-30 2018-09-30 Icon display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811158914.5A CN109284164B (en) 2018-09-30 2018-09-30 Icon display method and device

Publications (2)

Publication Number Publication Date
CN109284164A CN109284164A (en) 2019-01-29
CN109284164B true CN109284164B (en) 2022-04-08

Family

ID=65182184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811158914.5A Active CN109284164B (en) 2018-09-30 2018-09-30 Icon display method and device

Country Status (1)

Country Link
CN (1) CN109284164B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851554A (en) * 2019-11-14 2020-02-28 北京航天宏图信息技术股份有限公司 Display method and device, computing equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735104A (en) * 2004-08-10 2006-02-15 乐金电子(中国)研究开发中心有限公司 An indicator icon display method
CN101896008A (en) * 2009-05-20 2010-11-24 仁宝电脑工业股份有限公司 Method for managing wireless communication component functions and user interface device
CN103823735A (en) * 2014-02-26 2014-05-28 天津三星通信技术研究有限公司 Status icon display method and portable terminal
CN107450795A (en) * 2017-06-23 2017-12-08 努比亚技术有限公司 Status bar icon loading method, terminal and computer-readable recording medium
CN108494964A (en) * 2018-03-28 2018-09-04 努比亚技术有限公司 Mobile terminal state column display methods, terminal, computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335041B (en) * 2014-08-05 2019-01-15 阿里巴巴集团控股有限公司 It is a kind of that the method and device of application icon is provided
CN106484392A (en) * 2016-09-08 2017-03-08 北京小米移动软件有限公司 icon display method and device
CN107704155A (en) * 2017-10-20 2018-02-16 珠海市魅族科技有限公司 Application program image target methods of exhibiting, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735104A (en) * 2004-08-10 2006-02-15 乐金电子(中国)研究开发中心有限公司 An indicator icon display method
CN101896008A (en) * 2009-05-20 2010-11-24 仁宝电脑工业股份有限公司 Method for managing wireless communication component functions and user interface device
CN103823735A (en) * 2014-02-26 2014-05-28 天津三星通信技术研究有限公司 Status icon display method and portable terminal
CN107450795A (en) * 2017-06-23 2017-12-08 努比亚技术有限公司 Status bar icon loading method, terminal and computer-readable recording medium
CN108494964A (en) * 2018-03-28 2018-09-04 努比亚技术有限公司 Mobile terminal state column display methods, terminal, computer readable storage medium

Also Published As

Publication number Publication date
CN109284164A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
US11348070B2 (en) Digital processing systems and methods for context based analysis during generation of sub-board templates in collaborative work systems
US10621281B2 (en) Populating values in a spreadsheet using semantic cues
CN110083346B (en) Screening configuration method and device based on data visualization interface
US9513783B1 (en) Determining available screen area
CN103530220A (en) Display method and system and terminal for application program icons
US20170337560A1 (en) System for providing and employing recommended resolution paths
US10318629B2 (en) Adaptive content rendering for optimizing page layout
US11954006B1 (en) Systems and methods for locally streaming applications in a computing system
US10942840B2 (en) System and method for managing a code repository
CN109271229B (en) Method and device for displaying icon based on mutual exclusion manager
CN106201167A (en) The multi-screen display method of terminal screen, device and terminal
US9773050B2 (en) User interface for aggregated task data
KR101609079B1 (en) Instruction culling in graphics processing unit
KR101773781B1 (en) Method and apparatus for user oriented data visualzation based on the web
US10261655B2 (en) Least disruptive icon displacement
KR20170059446A (en) Unified search on a personal computing device
CN109284164B (en) Icon display method and device
CN113741757B (en) Method and device for displaying reminding information, electronic equipment and storage medium
US20140181701A1 (en) Model-Based User Interface
CN110647459B (en) Application testing method and device
CN109343758B (en) Method and apparatus for displaying icons through a mutex manager
US20090210433A1 (en) Parallelizing Data Manipulation by Data Set Abstraction
CN114816389B (en) Management system building method, device, equipment and medium based on meta-model
US9285949B2 (en) Data processing system, method and program product of creating program information, and program information display system
US11281443B1 (en) Organizing deployment packages for software applications and services

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