CN114115647A - Menu item adjusting method and device and terminal - Google Patents

Menu item adjusting method and device and terminal Download PDF

Info

Publication number
CN114115647A
CN114115647A CN202111499193.6A CN202111499193A CN114115647A CN 114115647 A CN114115647 A CN 114115647A CN 202111499193 A CN202111499193 A CN 202111499193A CN 114115647 A CN114115647 A CN 114115647A
Authority
CN
China
Prior art keywords
menu item
menu
display
target
selection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111499193.6A
Other languages
Chinese (zh)
Other versions
CN114115647B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111499193.6A priority Critical patent/CN114115647B/en
Publication of CN114115647A publication Critical patent/CN114115647A/en
Application granted granted Critical
Publication of CN114115647B publication Critical patent/CN114115647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The application is a divisional application of Chinese application 201711172626.0. The application discloses a menu item adjusting method, a menu item adjusting device and a terminal, and belongs to the technical field of menu display. The method comprises the following steps: receiving a selection operation of a target menu item; acquiring the association operation of the selection operation, wherein the association operation is the operation received before or after the selection operation is received; identifying the operation type of the selection operation according to the associated operation, wherein the operation type comprises effective operation and misoperation; updating a first display weight corresponding to the target menu item according to the operation type; and adjusting the display position of the target menu item in the menu control according to the first display weight. According to the method and the device, misoperation which is not in line with user expectation can be identified through analyzing the correlation operation of the selection operation, the misoperation of the user is prevented from being identified as effective operation, correspondingly, the display weight which is used as the basis of display position adjustment is more accurate, and the display position of the menu item in the menu control is more in line with the use habit of the user.

Description

Menu item adjusting method and device and terminal
The application is a divisional application of Chinese applications with application numbers of 201711172626.0, application dates of 2017, 11 and 22, and invention names of menu item adjustment method, device and terminal.
Technical Field
The embodiment of the application relates to the technical field of menu display, in particular to a menu item adjusting method, a menu item adjusting device and a terminal.
Background
The menu control is the most common control in the application program, and the user can use various functions of the application program by triggering different menu items in the menu control.
The display position of the menu item in the menu control directly affects the use efficiency of the application program function. In order to improve the use efficiency of the application program function, in a menu item adjusting mode, a terminal counts the times of selecting each menu item, reports the counting result to a server, rearranges the menu items according to the times of selecting each menu item by the server, and issues the rearrangement result to the terminal so that the terminal rearranges and displays the menu items according to the rearrangement result.
However, the menu control triggered by the user may not meet the user expectation, and if the display position of the menu item is adjusted based on the triggering operation that does not meet the user expectation, the display position of the menu item will be unreasonable, and the use efficiency of the application program function will be affected.
Disclosure of Invention
The embodiment of the application provides a menu item adjusting method, a menu item adjusting device and a terminal, and can solve the problems that in the related art, the display position of a menu item is unreasonable and the use efficiency of an application program function is influenced due to the fact that the display position of the menu item is adjusted based on trigger operation which is not in accordance with the expectation of a user. The technical scheme is as follows:
in a first aspect, a menu item adjusting method is provided, where the method includes:
receiving a selection operation of a target menu item, wherein the selection operation is used for triggering and displaying a function window corresponding to the target menu item;
acquiring the association operation of the selection operation, wherein the association operation comprises receiving the operation in a first time length before the selection operation or receiving the operation in a second time length after the selection operation;
identifying the operation type of the selection operation according to the association operation, wherein the operation type at least comprises effective operation and misoperation;
updating a first display weight corresponding to the target menu item according to the operation type;
adjusting the display position of the target menu item in the menu control at intervals of preset time according to the first display weight; or when the variation amplitude of the first display weight is larger than a threshold value, adjusting the display position of the target menu item in the menu control according to the first display weight; wherein, the display weight of the menu item is inversely proportional to the menu level where the menu item is located;
and displaying the adjusted menu control.
In a second aspect, there is provided a menu item adjusting apparatus, the apparatus comprising:
the receiving module is used for receiving selection operation of a target menu item, and the selection operation is used for triggering and displaying a function window corresponding to the target menu item;
an obtaining module, configured to obtain an association operation of the selection operation, where the association operation includes receiving an operation within a first duration before the selection operation or receiving an operation within a second duration after the selection operation;
the identification module is used for identifying the operation type of the selection operation according to the association operation, wherein the operation type at least comprises effective operation and misoperation;
the first updating module is used for updating the first display weight corresponding to the target menu item according to the operation type;
the adjusting module is used for adjusting the display position of the target menu item in the menu control at intervals of preset time according to the first display weight; or when the variation amplitude of the first display weight is larger than a threshold value, adjusting the display position of the target menu item in the menu control according to the first display weight; wherein, the display weight of the menu item is inversely proportional to the menu level where the menu item is located;
and the display module is used for displaying the adjusted menu control.
In a third aspect, there is provided a terminal comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, which are executed by the processor to implement the menu item adjustment method according to the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is executable by the processor to implement the menu item adjustment method of the first aspect.
The beneficial effects that technical scheme that this application embodiment provided brought include:
when receiving a selection operation on a target menu item, further acquiring a received association operation before or after the selection operation, thereby identifying whether the selection operation is an effective operation or an incorrect operation according to the association operation, and further updating the display weight of the target menu item based on the operation type of the association operation so as to adjust the display position of the target menu item according to the display weight; compared with the prior art that the display position of the menu item is adjusted only according to the number of times of selecting the menu item, the misoperation which is not in line with the expectation of the user can be identified by analyzing the associated operation of the selection operation, the misoperation of the user is prevented from being identified as effective operation, correspondingly, the display weight which is used as the basis for adjusting the display position is more accurate, the display position of the menu item in the menu control is more in line with the use habit of the user, and the use efficiency of the application program function is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a menu control provided by one embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a menu item adjusted by a terminal according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a menu item adjustment method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface displaying a corresponding function window upon selection of a menu item;
FIG. 5 is a flowchart illustrating a menu item adjustment method according to another embodiment of the present application;
FIG. 6 is a schematic diagram of operation statistics using valid operation counters and false operation counters;
FIG. 7 is a diagram illustrating an embodiment of a menu item adjustment method shown in FIG. 8;
FIG. 8 is a flowchart illustrating a menu item adjustment method according to another embodiment of the present application;
FIG. 9 is a diagram illustrating an embodiment of a menu item adjustment method shown in FIG. 8;
FIG. 10 is a flowchart illustrating a menu item adjustment method according to another embodiment of the present application;
FIG. 11 is a block diagram of a menu item adjustment apparatus provided in one embodiment of the present application;
fig. 12 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below.
Menu controls: also known as a menu bar, is a control in an application for providing function selection. Typically, menu controls present a hierarchical structure, and each level of menu hierarchy contains several menu items. Schematically, fig. 1 shows a menu control 10 comprising two menu levels, wherein a menu item 11, a menu item 12, a menu item 13 and a menu item 14 are located at a first menu level, and a lower level menu item 111, a menu item 112, a menu item 113 and a menu item 114 corresponding to the menu item 11 are located at a second menu level.
The menu control may be displayed by using a list structure shown in fig. 1, or may be displayed by using a tree structure, and each menu item in the menu control may be in a form of a text or an icon, which is not limited in the present application.
Regarding the calling-out mode of the menu control, in a possible embodiment, as shown in fig. 1, a menu calling-out control 15 is provided in the user interface, and when a click signal to the menu calling-out control 15 is received, the first menu level of the menu control 10 is displayed in the user interface. In other possible embodiments, the first menu level of the menu control 10 is displayed in the user interface when a right mouse click signal is detected within the user interface.
In the related art, when a selection operation on a menu item in a menu control is detected, a terminal performs an operation of adding the number of times of selection of the menu item, and reports the number of times of selection of each menu item to a server, for example, when the selection operation on the menu item 111 is detected, the terminal performs an operation of adding the number of times of selection of the menu item 111. The server rearranges the menu items in the menu control according to the data reported by the terminal, arranges the frequently used menu items of the user at the position which is easy to select, and is convenient for the user to select quickly. Further, the server sends the rearrangement result to the terminal, so that the terminal can update the arrangement of the menu items according to the rearrangement result.
However, when the menu item rearrangement is performed by the server, data interaction needs to be frequently performed between the server and the terminal, and the menu item rearrangement cannot be performed under the condition that the network cannot be accessed; moreover, the server is connected with a large number of terminals, the processing pressure is high, and meanwhile, in order to ensure that the rearrangement result is issued to the correct terminal, an additional terminal identity recognition module needs to be arranged in the server, so that the processing pressure of the server is further increased.
Meanwhile, the selection operation of the menu item by the user may not be as expected, i.e., there may be a malfunction. For example, as shown in fig. 1, when a user wants to select a menu item 112, a menu item 111 may be selected due to a malfunction. If the selection operation is not identified, the number of times of selection is directly updated according to the selection operation, which results in inaccurate statistical results, and correspondingly, the rearrangement result obtained by the server according to the statistical results does not accord with the use habit of the user.
In the embodiment of the present application, as shown in fig. 2, the terminal includes four functional modules, namely a data acquisition module 21, a mode identification module 22, an intelligent configuration module 23, and a reporting module 24. During the application program running process, the data collection module 21 collects the selection operation of the menu item and the associated operation (Action) associated with the selection operation, and inputs the selection operation and the associated operation into the pattern recognition module 22. The Mode identification module 22 identifies an operation type (Mode) of the selection operation according to the association operation, so that the identified operation type is input into the intelligent arrangement module 23, the intelligent arrangement module 23 performs menu item arrangement, and finally the terminal displays the rearranged menu control according to a menu item arrangement result. The reporting module 24 is responsible for reporting the identification result of the selection operation to the server, so that the developer can optimize and adjust the layout of the menu control according to the identification result.
The whole menu item adjusting process is executed at the terminal, data interaction with the server is not needed, and the processing pressure of the server is reduced; meanwhile, the operation type of the selection operation is identified based on the association operation, so that misoperation which is not expected by the user can be identified, and the accuracy of subsequent menu item arrangement is improved.
The menu item adjusting method provided by each embodiment of the application is applied to a terminal, and the terminal is an electronic device such as a smart phone, a tablet computer, an electronic book and a personal computer. For convenience of description, the following embodiments are explained using a menu item adjustment method for a terminal.
Referring to fig. 3, a flowchart of a menu item adjustment method according to an embodiment of the present application is shown. The embodiment is exemplified by applying the menu item adjusting method to the terminal, and the method may include the following steps:
step 301, receiving a selection operation on a target menu item, where the selection operation is used to trigger display of a function window corresponding to the target menu item.
In a possible implementation manner, during the running process of the application program, the terminal receives a selection operation of each target menu item, wherein the target menu item is a menu item which does not contain a lower level menu item in the menu control.
Correspondingly, after receiving the selection operation of the target menu item, the terminal displays the function window corresponding to the target menu item.
Illustratively, as shown in fig. 1, in the menu control 10, the menu item 11, the menu item 12, and the menu item 13 contain lower level menu items, while the menu item 14, the menu item 111, the menu item 112, the menu item 113, and the menu item 114 do not contain lower level menu items, and during the running of the application, the terminal receives a selection operation on the menu item 14, the menu item 111, the menu item 112, the menu item 113, and the menu item 114.
As shown in fig. 4, when a selection operation for a menu item 111 is received, the terminal displays an import window 16 corresponding to the menu item 111.
Step 302, obtaining the association operation of the selection operation, wherein the association operation is the operation received before or after the selection operation is received.
In a possible implementation manner, the terminal records operation time of each received operation, and determines the associated operation of the selection operation according to the operation time.
Optionally, when the association operation is an operation received before the selection operation, the terminal determines an operation within a first time period before an operation time corresponding to the selection operation as the association operation, for example, the first time period is 1 s; when the association operation is an operation received after the selection operation, the terminal determines the operation acting on the function window in a second time length after the operation time corresponding to the selection operation as the association operation, for example, the second time length is 30 s.
And 303, identifying the operation type of the selection operation according to the associated operation, wherein the operation type at least comprises effective operation and misoperation.
And according to the acquired associated operation, the terminal identifies the operation type of the selection operation, wherein the identified operation type comprises effective operation and misoperation.
Wherein, the valid operation (CorrectOperate) is the operation conforming to the operation intention of the user, and the error operation (FaultOperate) is the operation not conforming to the operation intention of the user
Since the user usually cancels the misoperation quickly after the misoperation, in one possible implementation, when the association operation is detected to cancel the corresponding selection operation, the terminal determines that the selection operation is the misoperation; when the associated operation is a subsequent operation performed in the function window (displayed by the selection operation trigger), the terminal determines that the selection operation is a valid operation.
Illustratively, as shown in fig. 4, when the acquired associated operation is an operation of closing the function window 16, the terminal determines that the selection operation of the menu item 111 is an erroneous operation; when the acquired associated operation is an operation of data input in the function window 16, the terminal determines that the selection operation for the menu item 111 is a valid operation.
And 304, updating the first display weight corresponding to the target menu item according to the operation type.
Optionally, the menu items in the menu control correspond to respective initial display weights, and the initial display positions of the menu items in the menu control are determined by the initial display weights.
And updating the display weight of the target menu item by the terminal according to the operation type of the selection operation. In one possible implementation mode, when the selection operation is an effective operation, the terminal adds the display weight of the target menu item; when the selection operation is the misoperation, the terminal performs the operation of reducing the display weight of the target menu item.
And 305, adjusting the display position of the target menu item in the menu control according to the first display weight.
Optionally, the terminal adjusts the display position of the target menu item in the menu control according to the first display weight at predetermined time intervals, or when the variation amplitude of the first display weight is greater than the threshold.
The display weight of the menu item is inversely proportional to the menu level where the menu item is located, namely the larger the display weight is, the smaller the menu level where the menu item is located is, and correspondingly, the user can select the menu item through fewer menu level selections; the display weight of the menu item is inversely proportional to the distance from the menu item to the previous menu item, namely the larger the display weight is, the closer the distance from the menu item to the previous menu item is, and correspondingly, after clicking the previous menu item, the user can quickly select the menu item through a shorter sliding distance.
In summary, in this embodiment, when a selection operation on a target menu item is received, a received association operation before or after the selection operation is further obtained, so as to identify whether the selection operation is an effective operation or an incorrect operation according to the association operation, and further update a display weight of the target menu item based on an operation type of the association operation, so as to adjust a display position of the target menu item according to the display weight; compared with the prior art that the display position of the menu item is adjusted only according to the number of times of selecting the menu item, the misoperation which is not in line with the expectation of the user can be identified by analyzing the associated operation of the selection operation, the misoperation of the user is prevented from being identified as effective operation, correspondingly, the display weight which is used as the basis for adjusting the display position is more accurate, the display position of the menu item in the menu control is more in line with the use habit of the user, and the use efficiency of the application program function is further improved.
Referring to fig. 5, a flowchart of a menu item adjustment method according to another embodiment of the present application is shown. The embodiment is exemplified by applying the menu item adjusting method to the terminal, and the method may include the following steps:
step 501, receiving a selection operation of a target menu item, where the selection operation is used to trigger display of a function window corresponding to the target menu item.
The implementation of this step is similar to that of step 301, and this embodiment is not described herein again.
Step 502, an operation acting on a functional window is received and determined to be an associated operation.
After the terminal displays the function window corresponding to the target menu item according to the selection operation, the subsequent operation executed by the user in the function window can reflect whether the selection operation is in accordance with the expectation, and then the terminal can determine whether the selection operation is misoperation according to the subsequent operation. Therefore, the terminal determines an operation acting on the function window as an associated operation.
In one possible implementation, the terminal defines four operations acting on the function window in advance, which are respectively Action1 to Action4, where Action1 is a data input operation acting on the function window, Action2 is a new window trigger operation acting on the function window, Action3 is a first closing operation (window data valid) for ending the life cycle of the function window, and Action4 is a second closing operation (window data invalid) for ending the life cycle of the function window. Taking the above 4 operations as an example, the association operation for determining the selection operation includes the following steps.
Firstly, when a data input operation is received in a functional window, the data input operation is determined as a first associated operation.
When a function window corresponding to the target menu item includes a data input control, for example, a text area (textarea), a check box (checkbox), a radio button (radio), a selection list (select), a file field (file), or the like, the terminal receives a data input operation through the data input control, and determines the received data input operation as a first associated operation.
Illustratively, as shown in fig. 4, the function window 16 includes a text area 161, a radio button 162, a selection list 163, and a check box 164. When the input content in the text area 161 is detected, and/or the click signal to the radio button 162 is detected, and/or the click signal to the selection list 163 is detected, and/or the selection signal to the check box 164 is detected, the terminal acquires the first association operation,
And secondly, when receiving a new window trigger operation in the functional window, determining the new window trigger operation as a second associated operation.
When the function window corresponding to the target menu item contains a control for creating a new window, the terminal receives a new window triggering operation through the control, and determines the received new window triggering operation as a second associated operation.
Illustratively, as shown in fig. 4, the function window 16 includes a control 165, where the control 165 is used to trigger and display a new window including the content of the import notification, and when a trigger operation on the control 165 is received, the terminal acquires the second association operation.
And thirdly, when a first closing operation for the functional window is received and the first closing operation indicates that the window data in the functional window is valid, the first closing operation is used as a third associated operation.
After the user completes the designated operation in the functional window, the functional window needs to be closed through the first closing operation, that is, the life cycle of the functional window is ended. And after the first closing operation is executed, the window data in the functional window is valid.
Optionally, when a click operation on a determination button, a submit button, or a save button in the function window is received (the function window is closed after receiving such a click operation), the terminal determines that the first closing operation is received.
Illustratively, as shown in fig. 4, when a click operation on the determination button 166 is received, the terminal determines that a first closing operation is received and determines the first closing operation as a third associated operation.
And fourthly, when a second closing operation for the functional window is received and the second closing operation indicates that the window data in the functional window is invalid, the second closing operation is used as a fourth associated operation.
And closing the functional window through a second closing operation when the user does not execute any operation on the functional window or needs to end the life cycle of the functional window after clearing the window data in the functional window, wherein the window data in the functional window is invalid after executing the second closing operation.
Optionally, when a click operation on a cancel button or a close button in the function window is received (the function window is closed after receiving such a click operation), the terminal determines that a second close operation is received.
Illustratively, as shown in fig. 4, when a click operation on the cancel button 167, or the close button 168 is received, the terminal determines that a second close operation is received and determines the second close operation as a fourth association operation.
The present embodiment is only schematically illustrated by taking the above four possible association operations as examples, in other possible embodiments, the terminal may further determine that a voice entry operation, an image capture operation, or a sensor signal entry operation (for example, shaking the mobile phone) is received after the selection operation as the association operation, which is not limited in the present embodiment.
And 503, identifying the operation type of the selection operation according to the associated operation, wherein the operation type at least comprises effective operation and misoperation.
Further, the terminal identifies whether the selection operation is a valid operation or an incorrect operation according to the association operation.
In combination with the four association operations described in step 502 above, this step includes the following steps.
Firstly, when the association operation is a first association operation, a second association operation or a third association operation, the selection operation is identified as a valid operation.
When the functional window displayed after clicking the target menu item meets the expectation of the user, the user usually inputs data in the functional interface, triggers to display a new window or submits window data, and therefore, when the association operation is the first association operation, the second association operation or the third association operation, the terminal determines that the selection operation of the target menu item is the effective operation.
And secondly, when the association operation is a fourth association operation, identifying that the selection operation is a misoperation.
In contrast, when the function window displayed after clicking the target menu item does not meet the user's expectation, the user generally closes the function window directly, and thus the terminal determines that the selection operation for the target menu item is an erroneous operation when the association operation is the fourth association operation.
And step 504, when the operation type is effective operation, adding operation is carried out on the first display weight of the target menu item.
The terminal maintains the display weight corresponding to each menu item, and when the selection operation of the target menu item is effective operation, the terminal adds the first display weight of the target menu item. For example, the terminal performs an add operation on the first display weight.
And 505, when the operation type is misoperation, performing subtraction operation on the first display weight of the target menu item.
In contrast to the above step 504, when the selection operation of the target menu item is a misoperation, it indicates that the display position of the target menu item is not reasonable (or does not conform to the usage habit of the user), so the terminal performs a subtraction operation on the first display weight of the target menu item (i.e., gives a negative weight to the misoperation). For example, the terminal performs a decrement operation on the first display weight.
In other possible embodiments, each menu item in the menu control corresponds to a valid operation counter (corectiontecount) and a false operation counter (faultpropetecount). When the selection operation is determined to be effective operation, the terminal adds one to an effective operation counter of the target menu item; when the misoperation of the selection operation is determined, the terminal adds one to the misoperation counter of the target menu item. When the first display weight of the target menu item is updated, the terminal updates the first display weight according to the difference value of the effective operation counter and the misoperation counter. For example, when the first display weight of the target menu item is 40, the valid operation counter is 20, and the false operation counter is 2, the updated first display weight is 40+ (20-2) ═ 58.
Illustratively, as shown in fig. 6, after the terminal triggers and displays the function window according to the selection operation of the target menu item, the terminal receives the operation acting on the function window, and when receiving an Action1, an Action2 or an Action3, the terminal determines that the selection operation is an effective operation and increments an effective operation counter; when Action4 is received, the selection operation is determined to be a false operation and the false operation counter is incremented by one.
Step 506, a second display weight of the same level menu item is obtained, and the same level menu item and the target menu item are located in the same menu level.
According to the actual use condition, the terminal updates the display weight of each menu item in the menu control through the steps, and further adjusts the display position of the menu item based on the display weight.
In a possible implementation manner, when the display position of the target menu item in the menu hierarchy is adjusted, the terminal obtains a first display weight of the updated target menu item and a second display weight of the peer menu item.
Schematically, as shown in fig. 4, when the display positions of the menu item 111 (target menu item), the menu item 112 (peer menu item), the menu item 113 (peer menu item), and the menu item 114 (peer menu item) are adjusted according to the use condition, the terminal obtains that the display weight of the menu item 111 is 50, the display weight of the menu item 112 is 40, the display weight of the menu item 113 is 30, and the display weight of the menu item 114 is 25.
And 507, adjusting the display position of the target menu item according to the first display weight and the second display weight, wherein the distance from the display position to the superior menu item is in a negative correlation with the display weight.
When the display positions of the menu items at the same level are adjusted, in order to enable a user to quickly select the menu item with the largest effective operation frequency (namely the menu item with the highest use frequency) in the lower menu items after clicking the upper menu item, thereby improving the operation efficiency, in a possible implementation mode, the terminal adjusts the menu item with the larger display weight to the display position closer to the upper menu item by comparing the first display weight with the second display weight, and correspondingly adjusts the menu item with the smaller display weight to the display position farther from the upper menu item.
Schematically, as shown in fig. 7, the lower level menu items corresponding to the menu item "tool" (upper level menu item) include menu item "message management", menu item "import", menu item "search" and menu item "restore", and in an initial state, the display weights corresponding to the four menu items are respectively 40, 35, 30 and 25, where the distance from each lower level menu item to the upper level menu item from near to far is: message management-import-lookup-recovery. After 25 times of import operation (namely 25 effective operations are carried out on the menu item 'import'), the display weight corresponding to the menu item 'import' is updated to 35+25 to 60, and the terminal exchanges the display positions of the menu item 'import' and the menu item 'message management' according to the updated display weight, so that the menu item 'import' is closest to the upper menu item.
It should be noted that, while the first display weight of the target menu item is updated according to the received selection operation, the terminal updates according to the display weight of the upper-level menu item corresponding to the target menu item.
In a possible implementation manner, when the selection operation is an effective operation, the terminal adds the display weight of the superior menu item corresponding to the target menu item; when the selection operation is the misoperation, the terminal performs the operation of reducing the display weight of the superior menu item corresponding to the target menu item.
Accordingly, the terminal adjusts the display position of the upper menu item in a similar manner to the above-described steps 506 to 507.
And step 508, displaying preset prompt information, wherein the preset prompt information is used for prompting whether the adjusted menu control is updated or not.
In a possible implementation manner, the terminal stores the display position adjustment result (the display position of the menu item is changed), and when the application program is started again, the terminal prompts the user whether to start the menu control after the display position adjustment is updated.
In another possible implementation, when the terminal maintains an effective operation counter and a misoperation counter corresponding to each menu item, the terminal calculates an effective click number (VCN) of each menu item, and displays a preset prompt message when the effective click number is greater than a number threshold, for example, the number threshold is 20.
In other possible embodiments, the terminal displays preset prompt information at predetermined time intervals, or automatically starts the adjusted menu control, which is not limited in this embodiment.
In step 509, when the determination instruction is received, the adjusted menu control is displayed.
Correspondingly, when the confirmation instruction is received, the terminal displays the adjusted menu control, and if the confirmation instruction is not received, the terminal keeps the original display position of the menu item.
Schematically, as shown in fig. 7, after the user performs a plurality of import operations, the menu item "import" is adjusted to the display position closest to the menu item "tool", and when the import operation is performed subsequently, the menu item "tool" is selected, and then the menu item "import" can be quickly selected.
In this embodiment, after receiving a selection operation on a target menu item, a terminal determines an operation acting on a function window as a correlation operation, and since the correlation operation can reflect whether a user performs an effective operation in the function window, it can be identified whether the selection operation for the target menu item is an erroneous operation based on the correlation operation; furthermore, for the identified misoperation, the terminal subtracts the display weight of the target menu item, so that the problem of inaccurate display weight caused by incapability of identifying the misoperation in the related technology is avoided, and the accuracy of subsequent display position adjustment based on the display weight is improved.
Further, in this embodiment, the terminal adjusts the menu item with the largest display weight to the display position closest to the previous menu item and adjusts the menu item with the smallest display weight to the display position farthest from the previous menu item according to the display weights corresponding to the menu items in the same menu level, so that the selection efficiency of the commonly used menu items is improved, and the probability of misoperation of the commonly used menu items is reduced.
In the embodiment shown in fig. 5, the terminal adjusts the display positions of the menu items at the same level according to the display weights only, and in a possible implementation, in order to further improve the operating efficiency of the high-usage menu items, the terminal adjusts the menu level of the high-usage menu items. On the basis of fig. 5, as shown in fig. 8, the above steps 506 to 507 may be replaced with the following steps.
And step 510, for each candidate menu item in the (n-1) th menu level, obtaining a third display weight of the candidate menu item, wherein the target menu item is located in the nth menu level, and n is more than or equal to 2.
In this embodiment, the target menu item is located at the nth menu level of the menu control, the upper level menu item of the target menu item is located at the nth-1 menu level, the initial display weight of the menu item in the nth-1 menu level is greater than the initial display weight of the menu item in the nth menu level, n is greater than or equal to 2, and n is an integer.
Illustratively, as shown in fig. 9, the first menu level includes menu items "tool", menu item "setup", menu item "help", and menu item "upgrade" and, in the initial state, the display weights of the four menu items are 50, 60, 70, and 80, respectively. The second menu level corresponding to the menu item "tool" comprises a menu item "message management", a menu item "import", a menu item "search" and a menu item "recovery", and in an initial state, the display weights corresponding to the four menu items are 40, 35, 30 and 25 respectively.
And when the terminal determines whether the menu item 'import' needs to be moved to the previous menu level, acquiring the third display weight of each menu item in the first menu level. In this embodiment, the obtained third display weight includes: 50. 60, 70 and 80.
In step 511, if the first display weight is greater than the third display weight and the weight difference is greater than the threshold, the target menu item is adjusted to the (n-1) th menu level.
Further, the terminal calculates a weight difference value between the first display weight and the third display weight, and detects whether the weight difference value is greater than a threshold value. If the weight difference is larger than the threshold value, the target menu item is adjusted to the (n-1) th menu level, and if the weight difference is smaller than the threshold value, the target menu item is kept at the (n) th menu level. For example, the threshold is 20.
Illustratively, as shown in fig. 9, when the import operation is performed 50 times, the display weight of the menu item "import" is changed from 35 to 85. Since the weight difference between the menu item 'import' and the candidate menu item in the first menu level is greater than 20, the terminal adjusts the menu item 'import' from the second menu level to the first menu level.
As shown in fig. 9, when the user originally performs the import operation, after calling out the menu control, the user needs to click the menu item "tool" and click the menu item "import" in the subordinate menu items; after the display positions of the menu items are adjusted by the method, the user can click the menu item 'import' in the first menu level after calling the menu control, and the operation efficiency is higher.
In other possible implementation manners, when the display weight of a certain menu item in the (n-1) th menu level is reduced due to misoperation, and the reduction amplitude of the display weight is larger than a threshold value, the terminal adjusts the menu item from the (n-1) th menu level to the (n-1) th menu level (as a lower-level menu item of the certain menu item in the (n-1) th menu level). For example, when the menu item "upgrade" in fig. 9 has a reduced display weight due to a plurality of misoperation, the terminal takes the menu item "upgrade" as a subordinate menu item of the menu item "tool" and moves it to the second menu level.
In this embodiment, the terminal adjusts the menu item with a larger display weight to the previous menu level according to the display weight values of the menu items in different menu level levels, so as to ensure that the menu item with a higher use frequency is preferentially displayed in the higher menu level, thereby improving the selection efficiency of the user for the menu item with a high use frequency.
Due to the reasons that the setting of the selection operation triggering area corresponding to the menu item is unreasonable and the like, the user needs to repeatedly click the menu item to trigger and display the corresponding function window, and the operation efficiency is influenced. In order to solve the above problem, in a possible implementation, after receiving a selection operation on a target menu item, a terminal further determines an operation within a period of time before the selection operation as an association operation, so as to determine whether the selection operation is an invalid operation according to the association operation; when the selection operation is determined to be invalid operation, the terminal target menu item adjusts the selection operation trigger area, and the efficiency of subsequent operation is guaranteed. On the basis of fig. 5, as shown in fig. 10, the step 501 further includes the following steps.
And step 512, within a preset time length before the selection operation is received, if the click operation in the invalid trigger area on the peripheral side of the target menu item is received, determining the click operation as a fifth associated operation.
If the selection operation trigger area corresponding to the menu item is not reasonably set, for example, the selection operation trigger area corresponding to the menu item is smaller than the actual display size (especially for some menu items presented in icons or pictures), the user may click on an invalid area on the periphery of the menu item for multiple times before finally triggering the menu item. In order to identify the operation, when the terminal receives the selection operation of the target menu item, the click operation which is within the preset time before the selection operation is received and is located in the invalid trigger area on the periphery of the target menu item is determined as a fifth associated operation.
Wherein the invalid trigger area does not contain a triggerable element, such as a triggerable control, a triggerable link, or the like.
For example, the terminal determines an area with a peripheral width of 10px of the target menu item as the invalid trigger area.
In step 513, when the association operation is the fifth association operation, the selection operation is determined to be an invalid operation.
When the association operation of the selection operation is the fifth association operation, the terminal determines the selection operation as an invalid operation.
And 514, if the number of times of receiving invalid operations on the target menu item reaches a threshold number, increasing the selection operation triggering area of the target menu item.
In one possible embodiment, each menu item in the menu control corresponds to an invalid operation counter (InvalidOperateCount). When the selection operation of the target menu item is determined to be the invalid operation, the terminal adds one to the invalid operation counter of the target menu item.
When the technology of the invalidation operation counter of the target menu item reaches the number threshold (for example, 10 times), the terminal determines that the selection operation trigger area of the target menu item is set unreasonably and increases the size of the selection operation trigger area thereof.
In other possible embodiments, when the number of times of invalid operations of the target menu item reaches the threshold number of times, the terminal reports to the server so that the developer processes the target menu item and issues the target menu item to the terminal, and the terminal adjusts the target menu item according to the processing result, which is not limited in this embodiment.
In the embodiment, before the terminal identifies the selection operation, the user clicks in the invalid trigger area, the selection operation is determined as the invalid operation, and the trigger area of the target menu item is adjusted when the invalid operation frequency of the target menu item reaches the threshold value, so that the problem that the trigger area of the target menu item is unreasonable in setting is solved, and the subsequent operation efficiency is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 11, a block diagram of a menu item adjusting apparatus according to an embodiment of the present application is shown. The device has the functions of executing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus may include: a receiving module 1110, an obtaining module 1120, an identifying module 1130, a first updating module 1140, and an adjusting module 1150.
A receiving module 1110, configured to receive a selection operation on a target menu item, where the selection operation is used to trigger display of a function window corresponding to the target menu item;
an obtaining module 1120, configured to obtain an associated operation of the selection operation, where the associated operation is an operation received before or after receiving the selection operation;
an identifying module 1130, configured to identify an operation type of the selecting operation according to the associating operation, where the operation type at least includes a valid operation and an incorrect operation;
a first updating module 1140, configured to update a first display weight corresponding to the target menu item according to the operation type;
an adjusting module 1150, configured to adjust a display position of the target menu item in the menu control according to the first display weight.
Optionally, the association operation is an operation received after receiving the selection operation;
the obtaining module 1120 is configured to receive an operation acting on the functional window, and determine the operation as the associated operation.
Optionally, the obtaining module 1120 is specifically configured to:
when a data input operation is received in the functional window, determining the data input operation as a first associated operation;
and/or the presence of a gas in the gas,
when a new window triggering operation is received in the functional window, determining the new window triggering operation as a second associated operation;
and/or the presence of a gas in the gas,
when a first closing operation for the functional window is received and the first closing operation indicates that window data in the functional window are valid, the first closing operation is used as a third association operation;
and/or the presence of a gas in the gas,
and when a second closing operation on the functional window is received and the second closing operation indicates that the window data in the functional window are invalid, the second closing operation is used as a fourth associated operation.
Optionally, the identifying module 1130 includes:
a first identifying unit, configured to identify the selection operation as the valid operation when the association operation is the first association operation, the second association operation, or the third association operation;
a second identifying unit configured to identify the selection operation as the erroneous operation when the association operation is the fourth association operation.
Optionally, the first updating module 1140 includes:
a first updating unit, configured to add the first display weight when the operation type is the valid operation;
and the second updating unit is used for performing subtraction operation on the first display weight when the operation type is the misoperation.
Optionally, the adjusting module 1150 includes:
the first obtaining unit is used for obtaining a second display weight of the same-level menu item, and the same-level menu item and the target menu item are positioned at the same menu level;
the first adjusting unit is used for adjusting the display position of the target menu item according to the first display weight and the second display weight, wherein the distance from the display position to a superior menu item is in a negative correlation relation with the display weight.
Optionally, the target menu item is located at an nth menu level of the menu control, a superior menu item of the target menu item is located at an nth-1 menu level, an initial display weight of a menu item in the nth-1 menu level is greater than an initial display weight of a menu item in the nth menu level, n is greater than or equal to 2, and n is an integer;
the adjusting module 1150 comprises
A second obtaining unit, configured to obtain, for each candidate menu item in the n-1 th menu hierarchy, a third display weight of the candidate menu item;
and the second adjusting unit is used for adjusting the target menu item to the (n-1) th menu level when the first display weight is greater than the third display weight and the weight difference value is greater than a threshold value.
Optionally, the association operation is an operation received before the selection operation is received;
the obtaining module 1120 is further configured to determine, within a predetermined time period before the selection operation is received, if a click operation in an invalid trigger area around the target menu item is received, the click operation as a fifth associated operation;
the device, still include:
a determining module, configured to determine that the selecting operation is an invalid operation when the associating operation is the fifth associating operation;
and the increasing module is used for increasing the selection operation triggering area of the target menu item when the number of invalid operations on the target menu item reaches a threshold number.
Optionally, the apparatus further includes:
the prompting module is used for displaying preset prompting information, and the preset prompting information is used for prompting whether the adjusted menu control is updated or not;
and the display module is used for displaying the adjusted menu control when a determination instruction is received.
In summary, in this embodiment, when a selection operation on a target menu item is received, a received association operation before or after the selection operation is further obtained, so as to identify whether the selection operation is an effective operation or an incorrect operation according to the association operation, and further update a display weight of the target menu item based on an operation type of the association operation, so as to adjust a display position of the target menu item according to the display weight; compared with the prior art that the display position of the menu item is adjusted only according to the number of times of selecting the menu item, the misoperation which is not in line with the expectation of the user can be identified by analyzing the associated operation of the selection operation, the misoperation of the user is prevented from being identified as effective operation, correspondingly, the display weight which is used as the basis for adjusting the display position is more accurate, the display position of the menu item in the menu control is more in line with the use habit of the user, and the use efficiency of the application program function is further improved.
In this embodiment, after receiving a selection operation on a target menu item, a terminal determines an operation acting on a function window as a correlation operation, and since the correlation operation can reflect whether a user performs an effective operation in the function window, it can be identified whether the selection operation for the target menu item is an erroneous operation based on the correlation operation; furthermore, for the identified misoperation, the terminal subtracts the display weight of the target menu item, so that the problem of inaccurate display weight caused by incapability of identifying the misoperation in the related technology is avoided, and the accuracy of subsequent display position adjustment based on the display weight is improved.
Further, in this embodiment, the terminal adjusts the menu item with the largest display weight to the display position closest to the previous menu item and adjusts the menu item with the smallest display weight to the display position farthest from the previous menu item according to the display weights corresponding to the menu items in the same menu level, so that the selection efficiency of the commonly used menu items is improved, and the probability of misoperation of the commonly used menu items is reduced.
In this embodiment, the terminal adjusts the menu item with a larger display weight to the previous menu level according to the display weight values of the menu items in different menu level levels, so as to ensure that the menu item with a higher use frequency is preferentially displayed in the higher menu level, thereby improving the selection efficiency of the user for the menu item with a high use frequency.
In the embodiment, before the terminal identifies the selection operation, the user clicks in the invalid trigger area, the selection operation is determined as the invalid operation, and the trigger area of the target menu item is adjusted when the invalid operation frequency of the target menu item reaches the threshold value, so that the problem that the trigger area of the target menu item is unreasonable in setting is solved, and the subsequent operation efficiency is improved.
Fig. 12 shows a block diagram of a terminal 1200 according to an exemplary embodiment of the present application. The terminal 1200 may be a portable mobile terminal such as: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4). Terminal 1200 may also be referred to by other names such as user equipment, portable terminal, and the like.
In general, terminal 1200 includes: a processor 1201 and a memory 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1202 is used to store at least one instruction for execution by processor 1201 to implement the menu item adjustment methods provided herein.
In some embodiments, the terminal 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, touch display 1205, camera 1206, audio circuitry 1207, pointing component 1208, and power source 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The touch display 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. The touch display screen 1205 also has the ability to acquire touch signals on or over the surface of the touch display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. The touch display 1205 is used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the touch display 1205 may be one, providing the front panel of the terminal 1200; in other embodiments, the touch display 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in still other embodiments, the touch display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even more, the touch display panel 1205 can be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The touch Display panel 1205 can be made of a material such as an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a VR (Virtual Reality) shooting function. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1207 is used to provide an audio interface between the user and the terminal 1200. The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is configured to locate a current geographic Location of the terminal 1200 to implement navigation or LBS (Location Based Service). The Positioning component 1208 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the touch display 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on a side bezel of terminal 1200 and/or an underlying layer of touch display 1205. When the pressure sensor 1213 is disposed at the side frame of the terminal 1200, a user's grip signal to the terminal 1200 can be detected, and left-right hand recognition or shortcut operation can be performed based on the grip signal. When the pressure sensor 1213 is disposed on the lower layer of the touch display screen 1205, the operability control on the UI interface can be controlled according to the pressure operation of the user on the touch display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user to identify the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the touch display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1216, also known as a distance sensor, is typically disposed on the front side of the terminal 1200. The proximity sensor 1216 is used to collect a distance between the user and the front surface of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually decreases, the processor 1201 controls the touch display 1205 to switch from the bright screen state to the dark screen state; when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the processor 1201 controls the touch display 1205 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the menu item adjustment method provided by the above method embodiment.
Optionally, the present application also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the menu item adjustment method of the above aspects.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A menu item adjustment method, characterized in that the method comprises:
receiving a selection operation of a target menu item, wherein the selection operation is used for triggering and displaying a function window corresponding to the target menu item;
acquiring the association operation of the selection operation, wherein the association operation comprises receiving the operation in a first time length before the selection operation or receiving the operation in a second time length after the selection operation;
identifying the operation type of the selection operation according to the association operation, wherein the operation type at least comprises effective operation and misoperation;
updating a first display weight corresponding to the target menu item according to the operation type;
adjusting the display position of the target menu item in the menu control at intervals of preset time according to the first display weight; or when the variation amplitude of the first display weight is larger than a threshold value, adjusting the display position of the target menu item in the menu control according to the first display weight; wherein, the display weight of the menu item is inversely proportional to the menu level where the menu item is located;
and displaying the adjusted menu control.
2. The method of claim 1, wherein the association operation is an operation received after receiving the selection operation;
the obtaining of the associated operation of the selection operation includes:
receiving an operation acting on the functional window, and determining the operation as the associated operation.
3. The method of claim 2, wherein receiving the operation acting on the functional window and determining the operation as the associated operation comprises:
when a data input operation is received in the functional window, determining the data input operation as a first associated operation;
and/or the presence of a gas in the gas,
when a new window triggering operation is received in the functional window, determining the new window triggering operation as a second associated operation;
and/or the presence of a gas in the gas,
when a first closing operation for the functional window is received and the first closing operation indicates that window data in the functional window are valid, the first closing operation is used as a third association operation;
and/or the presence of a gas in the gas,
and when a second closing operation on the functional window is received and the second closing operation indicates that the window data in the functional window are invalid, the second closing operation is used as a fourth associated operation.
4. The method of claim 3, wherein identifying the operation type of the selecting operation according to the associating operation comprises:
identifying the selection operation as the valid operation when the association operation is the first association operation, the second association operation, or the third association operation;
and when the association operation is the fourth association operation, identifying the selection operation as the misoperation.
5. The method according to any one of claims 1 to 4, wherein the updating the first display weight corresponding to the target menu item according to the operation type includes:
when the operation type is the effective operation, adding the first display weight;
and when the operation type is the misoperation, performing subtraction operation on the first display weight.
6. The method of claim 5, wherein said adjusting a display position of the target menu item in a menu control according to the first display weight comprises:
acquiring second display weights of the same-level menu items, wherein the same-level menu items and the target menu items are positioned at the same menu level;
and adjusting the display position of the target menu item according to the first display weight and the second display weight, wherein the distance from the display position to a superior menu item is in a negative correlation with the display weight.
7. The method according to claim 5, wherein the target menu item is located at the nth menu level of the menu control, the upper menu item of the target menu item is located at the (n-1) th menu level, and the initial display weight of the menu item in the (n-1) th menu level is greater than that of the menu item in the nth menu level, n is greater than or equal to 2, n is an integer;
the adjusting the display position of the target menu item in the menu control according to the first display weight includes:
for each candidate menu item in the (n-1) th menu level, acquiring a third display weight of the candidate menu item;
and if the first display weight is greater than the third display weight and the weight difference value is greater than a threshold value, adjusting the target menu item to the (n-1) th menu level.
8. The method of claim 1, wherein the association operation is an operation received prior to receiving the selection operation;
the obtaining of the associated operation of the selection operation includes:
within a preset time length before the selection operation is received, if the click operation in the invalid trigger area on the peripheral side of the target menu item is received, determining the click operation as a fifth associated operation;
the method further comprises the following steps:
when the association operation is the fifth association operation, determining that the selection operation is an invalid operation;
and if the number of times of receiving invalid operations on the target menu item reaches a threshold number, increasing the selection operation triggering area of the target menu item.
9. The method of any of claims 1 to 4, wherein displaying the adjusted menu control comprises:
displaying preset prompting information, wherein the preset prompting information is used for prompting whether the adjusted menu control is updated or not;
and when a determination instruction is received, displaying the adjusted menu control.
10. A menu item adjustment apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving selection operation of a target menu item, and the selection operation is used for triggering and displaying a function window corresponding to the target menu item;
an obtaining module, configured to obtain an association operation of the selection operation, where the association operation includes receiving an operation within a first duration before the selection operation or receiving an operation within a second duration after the selection operation;
the identification module is used for identifying the operation type of the selection operation according to the association operation, wherein the operation type at least comprises effective operation and misoperation;
the first updating module is used for updating the first display weight corresponding to the target menu item according to the operation type;
the adjusting module is used for adjusting the display position of the target menu item in the menu control at intervals of preset time according to the first display weight; or when the variation amplitude of the first display weight is larger than a threshold value, adjusting the display position of the target menu item in the menu control according to the first display weight; wherein, the display weight of the menu item is inversely proportional to the menu level where the menu item is located;
and the display module is used for displaying the adjusted menu control.
11. A terminal, characterized in that the terminal comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is executed by the processor to implement the menu item adjustment method according to any one of claims 1 to 9.
12. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that are executable by a processor to implement a menu item adjustment method according to any one of claims 1 to 9.
CN202111499193.6A 2017-11-22 2017-11-22 Menu item adjusting method, device and terminal Active CN114115647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111499193.6A CN114115647B (en) 2017-11-22 2017-11-22 Menu item adjusting method, device and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111499193.6A CN114115647B (en) 2017-11-22 2017-11-22 Menu item adjusting method, device and terminal
CN201711172626.0A CN109814775B (en) 2017-11-22 2017-11-22 Menu item adjusting method and device and terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201711172626.0A Division CN109814775B (en) 2017-11-22 2017-11-22 Menu item adjusting method and device and terminal

Publications (2)

Publication Number Publication Date
CN114115647A true CN114115647A (en) 2022-03-01
CN114115647B CN114115647B (en) 2023-04-18

Family

ID=66601066

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111499193.6A Active CN114115647B (en) 2017-11-22 2017-11-22 Menu item adjusting method, device and terminal
CN201711172626.0A Active CN109814775B (en) 2017-11-22 2017-11-22 Menu item adjusting method and device and terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201711172626.0A Active CN109814775B (en) 2017-11-22 2017-11-22 Menu item adjusting method and device and terminal

Country Status (1)

Country Link
CN (2) CN114115647B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417978B (en) * 2019-07-24 2021-04-09 广东商路信息科技有限公司 Menu configuration method, device, equipment and storage medium
CN110929491A (en) * 2019-10-30 2020-03-27 贝壳技术有限公司 Data report generation method, device, server and storage medium
CN111580729B (en) * 2020-04-22 2021-07-13 江西博微新技术有限公司 Processing method and system for selecting overlapped graphics primitives, readable storage medium and electronic equipment
CN114090151B (en) * 2021-11-10 2023-07-14 重庆允丰科技有限公司 Method for assisting system and storage medium
CN114610208A (en) * 2022-03-21 2022-06-10 联想(北京)有限公司 Display control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175175A (en) * 2007-09-13 2008-05-07 深圳市融创天下科技发展有限公司 Dynamic customizing method for media player menu
CN102004607A (en) * 2010-11-16 2011-04-06 中兴通讯股份有限公司 Menu display method and system
CN102841727A (en) * 2011-06-22 2012-12-26 启碁科技股份有限公司 User interface adjusting method and electronic device
CN103391351A (en) * 2012-05-07 2013-11-13 中兴通讯股份有限公司 Method for achieving personalized and automated organization of menus and mobile terminal
CN104932785A (en) * 2015-05-28 2015-09-23 努比亚技术有限公司 Processing method and processing device for mobile terminal
CN105511738A (en) * 2016-01-26 2016-04-20 努比亚技术有限公司 Method and device for regulating image processing menu
CN105786324A (en) * 2014-12-19 2016-07-20 大陆汽车投资(上海)有限公司 User habit-based user interface display method
CN106603421A (en) * 2016-11-28 2017-04-26 上海斐讯数据通信技术有限公司 Router menu automatic generation method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7669123B2 (en) * 2006-08-11 2010-02-23 Facebook, Inc. Dynamically providing a news feed about a user of a social network
US20090006989A1 (en) * 2007-06-27 2009-01-01 Samsung Electronics Co., Ltd Image forming method and apparatus, and host
CN102937854B (en) * 2012-10-30 2015-07-29 北京壹人壹本信息科技有限公司 The touch control method of double-mode touch screen and hand-hold electronic equipments
CN103309588B (en) * 2013-06-19 2015-12-23 广东欧珀移动通信有限公司 A kind of method, Apparatus and system preventing mobile terminal maloperation
CN105045585A (en) * 2015-07-07 2015-11-11 宁波萨瑞通讯有限公司 Operation menu arrangement method and mobile terminal
CN106406701B (en) * 2016-09-14 2020-07-21 Tcl科技集团股份有限公司 Method and system for preventing misoperation of touch terminal and touch terminal
CN106775263A (en) * 2017-03-30 2017-05-31 努比亚技术有限公司 A kind of setting device and method of icon touch area
CN107357574B (en) * 2017-06-28 2020-10-16 维沃移动通信有限公司 Operation method and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175175A (en) * 2007-09-13 2008-05-07 深圳市融创天下科技发展有限公司 Dynamic customizing method for media player menu
CN102004607A (en) * 2010-11-16 2011-04-06 中兴通讯股份有限公司 Menu display method and system
CN102841727A (en) * 2011-06-22 2012-12-26 启碁科技股份有限公司 User interface adjusting method and electronic device
CN103391351A (en) * 2012-05-07 2013-11-13 中兴通讯股份有限公司 Method for achieving personalized and automated organization of menus and mobile terminal
CN105786324A (en) * 2014-12-19 2016-07-20 大陆汽车投资(上海)有限公司 User habit-based user interface display method
CN104932785A (en) * 2015-05-28 2015-09-23 努比亚技术有限公司 Processing method and processing device for mobile terminal
CN105511738A (en) * 2016-01-26 2016-04-20 努比亚技术有限公司 Method and device for regulating image processing menu
CN106603421A (en) * 2016-11-28 2017-04-26 上海斐讯数据通信技术有限公司 Router menu automatic generation method and device

Also Published As

Publication number Publication date
CN114115647B (en) 2023-04-18
CN109814775A (en) 2019-05-28
CN109814775B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN109814775B (en) Menu item adjusting method and device and terminal
CN107885533B (en) Method and device for managing component codes
JP6043586B2 (en) Electronic device, line-of-sight input program, and line-of-sight input method
CN111338910B (en) Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium
CN108959361B (en) Form management method and device
CN108717365B (en) Method and device for executing function in application program
CN110515962B (en) Method and device for caching data, electronic equipment and storage medium
CN111737100A (en) Data acquisition method, device, equipment and storage medium
CN109684123B (en) Problem resource positioning method, device, terminal and storage medium
CN111857793A (en) Network model training method, device, equipment and storage medium
CN113918258A (en) Page rolling processing method, device, terminal and storage medium
CN111782950A (en) Sample data set acquisition method, device, equipment and storage medium
CN111796990A (en) Resource display method, device, terminal and storage medium
CN109634872B (en) Application testing method, device, terminal and storage medium
CN112100528A (en) Method, device, equipment and medium for training search result scoring model
CN111666076A (en) Layer adding method, device, terminal and storage medium
CN111563201A (en) Content pushing method, device, server and storage medium
CN109107163B (en) Analog key detection method and device, computer equipment and storage medium
CN112181915A (en) Method, device, terminal and storage medium for executing service
CN110580561B (en) Analysis method and device for oil well oil increasing effect and storage medium
CN113099378A (en) Positioning method, device, equipment and storage medium
CN112783533A (en) Version information updating method, version information updating device, terminal and storage medium
CN112132472A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN111125095A (en) Data prefix adding method and device, electronic equipment and medium
CN110569064A (en) interface identifier generation method, device, equipment and storage medium

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