CN111240568A - Button function multiplexing method and device and electronic equipment - Google Patents

Button function multiplexing method and device and electronic equipment Download PDF

Info

Publication number
CN111240568A
CN111240568A CN202010020523.8A CN202010020523A CN111240568A CN 111240568 A CN111240568 A CN 111240568A CN 202010020523 A CN202010020523 A CN 202010020523A CN 111240568 A CN111240568 A CN 111240568A
Authority
CN
China
Prior art keywords
button
target
state
priority
operation instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010020523.8A
Other languages
Chinese (zh)
Inventor
李虎林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tricolor Technology Co ltd
Original Assignee
Beijing Tricolor Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tricolor Technology Co ltd filed Critical Beijing Tricolor Technology Co ltd
Priority to CN202010020523.8A priority Critical patent/CN111240568A/en
Publication of CN111240568A publication Critical patent/CN111240568A/en
Pending legal-status Critical Current

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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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 invention provides a button function multiplexing method, a button function multiplexing device and electronic equipment; the method comprises the following steps: acquiring an operation instruction; determining a target priority and a target button state corresponding to a target button under an operation instruction based on the operation instruction and a preset corresponding relation between the operation instruction and the priority and the button state; determining a target button function corresponding to the target button under the target priority and the target button state based on the preset corresponding relation among the priority, the button state and the button function; the control target button triggers a target button function. In the mode, a plurality of button functions can be realized on the same target button, and the corresponding target button functions are triggered according to the operation instruction. The logic judgment process of the button operation by the user can be reduced, the difficulty of using the button by the user is reduced, and the experience degree of the user is improved; the number of the buttons is reduced, and the layout of the buttons on the user interaction interface is optimized, so that the layout of the buttons is attractive.

Description

Button function multiplexing method and device and electronic equipment
Technical Field
The invention relates to the technical field of interface interaction, in particular to a button function multiplexing method, a button function multiplexing device and electronic equipment.
Background
At present, on a user interactive interface (UI), the used buttons are basically defined as single function buttons. An interface is provided with a plurality of buttons, each button is generally provided with a pressing state and a lifting state, although the buttons are provided with two states which basically meet the requirements of users, when the number of the interface buttons is large, the states of the buttons need to be switched continuously, and particularly the states of a plurality of buttons with correlation of the coordination function need to be matched. The user needs to perform a complicated logic judgment process on the button operation, so that the difficulty of using the button by the user is improved. Moreover, the button layout is not beautiful enough due to the fact that a user interaction interface has too many buttons.
Disclosure of Invention
In view of this, the present invention provides a button function multiplexing method, device and electronic device, so as to reduce the logic judgment flow of the user for the button operation, reduce the difficulty of the user in using the button, and improve the user experience; the number of the buttons is reduced, and the layout of the buttons on the user interaction interface is optimized, so that the layout of the buttons is attractive.
In a first aspect, an embodiment of the present invention provides a button function multiplexing method, including: acquiring an operation instruction; determining a target priority and a target button state corresponding to a target button under an operation instruction based on the operation instruction and a preset corresponding relation between the operation instruction and the priority and the button state; determining a target button function corresponding to the target button under the target priority and the target button state based on the preset corresponding relation among the priority, the button state and the button function; the control target button triggers a target button function.
In a preferred embodiment of the present invention, the button states include a pressed state, a lifted state, a floating state and an unavailable state.
In a preferred embodiment of the present invention, the step of determining the target priority and the target button state corresponding to the target button under the operation instruction based on the operation instruction and the preset correspondence between the operation instruction and the priority and the button state includes: and if the operation instruction corresponds to a plurality of priorities, selecting the highest priority from the priorities corresponding to the operation instruction as a target priority, and using the operation instruction and the button state corresponding to the highest priority as a target button state.
In a preferred embodiment of the present invention, the correspondence between the operation command and the priority and the button status is preset in the form of a program code, a database, or a configuration file.
In a preferred embodiment of the present invention, after the step of determining the target priority and the target button state corresponding to the target button under the operation instruction, the method further includes: determining a target display state corresponding to the target button under the target priority and the target button state based on the preset corresponding relation between the priority and the button state and the button display state; the control target button displays a target display state.
In a preferred embodiment of the present invention, the button display status includes a combination of pictures and/or words.
In a preferred embodiment of the present invention, before the step of obtaining the operation instruction, the method further includes: the control target button displays a preset initial button display state.
In a second aspect, an embodiment of the present invention further provides a button function multiplexing apparatus, including: the operation instruction acquisition module is used for acquiring an operation instruction; the target priority and target button state determining module is used for determining the target priority and the target button state corresponding to the target button under the operation instruction based on the operation instruction and the preset corresponding relation between the operation instruction and the priority and the button state; the target button function determining module is used for determining the corresponding target button functions of the target button under the target priority and the target button state based on the preset corresponding relation between the priority and the button state and the button functions; and the target button function realization module is used for controlling the target button to trigger the target button function.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the steps of the button function multiplexing method described above.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the steps of the button function multiplexing method described above.
The embodiment of the invention has the following beneficial effects:
according to the button function multiplexing method, the button function multiplexing device and the electronic equipment, a plurality of button functions can be realized on the same target button according to the operation instruction, the preset corresponding relation between the operation instruction and the priority and the button state and the preset corresponding relation between the priority and the button state and the button function, and the corresponding target button function is triggered according to the operation instruction. The logic judgment process of the button operation by the user can be reduced, the difficulty of using the button by the user is reduced, and the experience degree of the user is improved; the number of the buttons is reduced, and the layout of the buttons on the user interaction interface is optimized, so that the layout of the buttons is attractive.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a button function multiplexing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another button function multiplexing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a logic flow of button display determination according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a button function multiplexing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, a plurality of buttons exist on a stage user interaction interface, the state of each button needs to be frequently switched to realize different functions, and a user needs to perform a complicated logic judgment process on button operation, so that the difficulty of using the buttons by the user is improved. Moreover, the button layout is not beautiful enough due to the fact that a user interaction interface has too many buttons. Based on this, the button function multiplexing method, the button function multiplexing device and the electronic equipment provided by the embodiment of the invention are applied to a user interaction interface, and particularly relate to a flexible button function multiplexing method in user interface interaction.
To facilitate understanding of the present embodiment, a detailed description will be given to a button function multiplexing method disclosed in the present embodiment.
Example 1
An embodiment of the present invention provides a button function multiplexing method, referring to a flowchart of a button function multiplexing method shown in fig. 1, where the button function multiplexing method includes the following steps:
step S102, an operation instruction is obtained.
The operation instruction is used to trigger a button function to be implemented by the target button, the target button in this embodiment is a button on the user interface, the target button is assigned with a plurality of button functions, one button function is determined according to the operation instruction, and the determined button function is triggered.
And step S104, determining the target priority and the target button state corresponding to the target button under the operation instruction based on the corresponding relation between the operation instruction and the preset operation instruction and the priority and the button state.
The correspondence between the operation instruction and the priority and the button state is determined in advance according to the product function requirements, and can be realized through a display condition index table of the button, which can be referred to as the display condition index table shown in table 1.
TABLE 1
Figure BDA0002359979750000051
As shown in table 1, a condition combination is determined from the operation instruction, and then the corresponding priority and button state are determined from table 1 according to the condition combination. For example: if the operation command is a button press, and a USB (Universal serial bus) disk is mounted, assuming that condition combination 3 is met at this time, it may be determined that the priority corresponding to the operation command is 3, and the state of the button is a pressed state, the target priority at this time is 3, and the state of the target button is a pressed state.
And step S106, determining the corresponding target button function of the target button under the target priority and the target button state based on the preset corresponding relation between the priority and the button state and the button function.
And determining the button function of the target button according to the determined target priority and the target button state, wherein the preset corresponding relation among the priority, the button state and the button function can be realized through a trigger function index table of the button as the target button function, and the trigger function index table can be referred to as a trigger function index table shown in table 2.
TABLE 2
Figure BDA0002359979750000061
As shown in Table 2, the corresponding button function is determined from Table 2 based on the target button state and the target priority. For example: if the target priority is 3, and the target button state is a pressed state, the button function at this time is the button function 3. Then, the target button function corresponding to the target button in the target priority and target button state is button function 3. The button function 3 is a button function that needs to be triggered by the operation instruction.
In step S108, the control target button triggers the target button function.
After the target button function is determined, the target button needs to be controlled to trigger the target button function, that is, the target button function is selected from a plurality of preset button functions of the target button to be triggered according to the operation instruction.
According to the button function multiplexing method provided by the embodiment of the invention, a plurality of button functions can be realized on the same target button according to the corresponding relation among the operation instruction, the preset operation instruction, the priority and the button state and the corresponding relation among the preset priority, the button state and the button function, and the corresponding target button function is triggered according to the operation instruction. The logic judgment process of the button operation by the user can be reduced, the difficulty of using the button by the user is reduced, and the experience degree of the user is improved; the number of the buttons is reduced, and the layout of the buttons on the user interaction interface is optimized, so that the layout of the buttons is attractive.
Example 2
The embodiment of the invention also provides another button function multiplexing method; the method is realized on the basis of the method of the embodiment; the method focuses on describing a specific implementation manner of determining the resident data of each base station based on the signaling data and a pre-acquired base station location table.
Fig. 2 shows a flow chart of another button function multiplexing method, which includes the following steps:
in step S202, an operation instruction is acquired.
And step S204, determining the target priority and the target button state corresponding to the target button under the operation instruction based on the corresponding relation between the operation instruction and the preset operation instruction and the priority and the button state.
As mentioned above, according to the product function requirement, a display condition index table of the buttons is preset, wherein the list includes the priority of the function of the button, such buttons that need to be used, and the button states include, but are not limited to, press (pressed), lift (up), and hover (hover). The suspension can be expanded to both a pressed suspension (pressed suspension) and a lifted suspension (up suspension). The above-described button states are all referred to as available states, i.e., states in which buttons can be pressed. In addition, the button states include an unavailable (disable) state. The button in the unusable state cannot perform any operation, that is, the button in the unusable state cannot be pressed, lifted, or floated.
In addition, the condition combinations with the same priority in the display condition index table are unique; the combination of conditions for the same display of different priorities may be the same, with the button status being displayed according to the higher priority. And if the operation instruction corresponds to a plurality of priorities, selecting the highest priority from the priorities corresponding to the operation instruction as a target priority, and using the operation instruction and the button state corresponding to the highest priority as a target button state. That is, for the same combination of conditions, the highest priority is selected as the target priority. And taking the button state corresponding to the highest priority as the target button state.
The correspondence relationship between the operation command and the priority and the button state is preset in the form of a program code, a database, or a configuration file. That is, the display condition index table may be configured in advance by program codes, or may also be configured in various forms such as a database and a configuration file, and is configured in advance, and is read as an input after the program is started, and the inside of the program may be stored in some form, for example: container map, array, etc. And the program is used as a judgment condition basis for button display after the program is operated.
And step S206, determining the target display state of the target button corresponding to the target priority and the target button state based on the preset corresponding relation between the priority and the button state and the button display state.
The target button in this embodiment may have a plurality of button display states, and only one button display state is selected for display according to the operation instruction. Wherein the button display state comprises a combination of pictures and/or text. That is, the button display state may be formed by combining any preset picture and character, or may be formed by combining only pictures and characters.
The correspondence of the priority, the button state, and the button display state may be determined by a preset state display index table, see one of the state display index tables shown in table 3.
TABLE 3
Figure BDA0002359979750000081
As shown in Table 3, the corresponding button display state is determined from Table 3 according to the target button state and the target priority. The state display index table includes the priority of the function of the button, and the required buttons include but are not limited to a pressed, lifted, floated (floating can be expanded to include a pressed floating and a lifted floating), and unavailable display states, and this way can be pre-configured by program codes, and can also be in various forms such as a database and a configuration file, which are pre-configured, and read as input after the program is started, and the inside of the program can be stored in some form, but not limited to map, array, and the like. After the program is run, the program is used as the basis for displaying the state of the button.
In step S208, the control target button displays the target display state.
After the target display state is determined, the control target button can be controlled to display the control target button.
Step S210, based on the preset corresponding relation between the priority and the button state and the button function, determining the corresponding target button function of the target button under the target priority and the target button state.
It has been mentioned above that the target button function may be determined by triggering the function index table. The buttons in the trigger function index table also include, but are not limited to, pressed, raised, hover (hover may be extended to pressed hover and raised hover) and unavailable conditions, representing objective conditions for such display, the same priority, unique combination of display conditions, different priorities, the same display condition may be the same, and the button function is determined by the higher priority.
The trigger function index table may also be preconfigured by program codes, or may also be preconfigured in various forms such as a database and a configuration file, and the trigger function index table is read as an input after the program is started, and the inside of the program may be stored in some form, which is not limited to: map, array, etc. And the program is used as a judgment condition basis for button display after the program is operated.
In step S212, the control target button triggers the target button function.
When the three tables (the real condition index table, the state display index table and the trigger function index table) are all configured in advance in a certain form, the configuration can be adjusted and changed, the program loads the configuration, and the control target button displays the preset initial button display state during initialization, namely the default state display of the button is preset according to the product requirements. And starting and running a program, analyzing the display condition combination of the buttons in real time by the program according to the running change, matching the objective conditions of the current button, dynamically displaying the display state with the high priority of the matching conditions according to the priority of the matching conditions, and triggering the button triggering function in the display state according to the operation of a user.
When the program is running, the button display determination logic flow may refer to a schematic diagram of a button display determination logic flow shown in fig. 3. As shown in fig. 3, fig. 3 shows a logic process of program operation, below the judgment rhombus, "adjusting the display state of the button according to the real-time display condition of the operation" is based on the display condition index table, and the adjustment is performed, and the display condition index table has a priority, if the button is designed, the button satisfies the condition repetition, and in different priorities, the button has a condition repetition or an inclusion relationship, and then the priority is used as the display judgment condition; if the display conditions are not repeated among different priorities, that is, the conditions of the plurality of display condition state index tables are not satisfied at the same time, the priorities are not needed during the judgment.
Generally, the buttons only have three (pressing, suspending and lifting), four (pressing, suspending, lifting and suspending) and unavailable states, only one state is displayed, the functions are not changed, and when a plurality of buttons are arranged on an interface, the logical relations of the buttons are switched by adopting hiding or unavailable; the method provided by the embodiment designs the conditions in the display condition index table on demand, can display a plurality of buttons at the same position by multiplexing with one button, and triggers different functions according to different conditions.
The method comprises the following steps: according to the preset function priority which can be adjusted in the later period, the state of the button under the condition of the priority is displayed according to the condition of the current level, the available function is triggered according to the state, the same button can be multiplexed into the functions of a plurality of buttons (including but not limited to mutual exclusion or the functions with different priorities), the button layout of the user interface is optimized, and the judgment of the user on the operation logic is reduced.
The following describes the method provided by this embodiment with reference to the example of multiplexing the usb flash disk lock button:
firstly, according to the product design requirement, configuring a display condition index table 4, which is used as the basis for judging the button display:
TABLE 4
Figure BDA0002359979750000101
Figure BDA0002359979750000111
Next, according to the product design requirement, a display condition index table 5 is configured, and the table is used as the basis of the button display state:
TABLE 5
Figure BDA0002359979750000121
For example:
Figure BDA0002359979750000122
next, according to the product design requirement, a display condition index table 6 is configured, and the table is used as the basis of the button display state:
TABLE 6
Figure BDA0002359979750000123
Specifically describing the logic process of the above-mentioned U-disk lock button multiplexing example, first, according to the above three examples, three index tables are configured, the display condition index table is used as a basis for judging the display condition, after the judgment is good, the index table is displayed with the state, the icon on the button is correspondingly displayed, the corresponding button function is triggered according to the button trigger function index table, and the three tables can be flexibly adjusted according to the requirements.
When the program is started and a user logs in, the current screen signal source is empty, the control authority of the USB does not exist naturally, the index table meets the priority 1 according to the button display condition, the objective condition of the unavailable state is met, the icon 1 of the index table is displayed in a state corresponding to the condition, and the trigger function is not available in the button trigger function index table.
Further, a user uses a control authority to switch a signal source 1, the user has a USB control right at this time, according to a query result, the current signal source 1 is not mounted with a USB disk, according to a display condition index table, when a mouse is not pressed on any more, objective conditions of priority 3 lifting are met, an icon 3-1 of the index table is displayed corresponding to the condition, at this time, the user uses a mouse point to move to the button to float above the button, the objective conditions of priority 3 floating are met, an icon 3-2 of the index table is displayed corresponding to the condition, if the user clicks the button, the objective conditions of priority 3 pressing are met, the icon 3-3 of the index table is displayed corresponding to the condition, according to the button, the function of triggering the USB disk to be mounted to the signal source function, and the USB disk is successfully mounted.
Further, at this time, the user has the USB control right, according to the condition query result, the current signal source 1 has the mounted USB disk, according to the display condition index table, when the mouse is no longer on the button, the objective condition that the priority 2 is lifted is met, the icon 2-1 of the index table is displayed corresponding to the state under the condition, if the user moves the button with the mouse point and floats above the button at the moment, the objective condition that the priority 2 floats is met, the icon 2-2 of the index table is displayed corresponding to the state under the condition, if the user clicks the button at the moment, the objective condition that the priority 2 is pressed is met, the icon 2-3 of the index table is displayed corresponding to the state under the condition, according to the button trigger function index table, the USB disk is triggered to release the mounting function from the signal source, and the USB disk mounted on the signal source 1 can be released.
Further, assuming that the user does not perform the previous operation, the USB disk is still mounted on the signal source 1, the user temporarily switches to another signal source 2 according to his own needs, no matter whether the user switches to the signal source 2 by the control right or the viewing right, the USB disk of the user has been mounted to the previous signal source 1, if the user mouse is not on the button, the objective condition of priority 4 is satisfied according to the display condition index table, the icon 4-1 of the index table is displayed in a state corresponding to the condition, when the user completes the operation flow of the signal source 2, or wants to mount the USB disk to the signal source 2, the user needs to return to the signal source 1 on which the USB disk was mounted previously, the user operates the mouse to move to the button, to float above the button, the objective condition of priority 4 floating is satisfied, the icon 4-2 of the index table is displayed in a state corresponding to the condition, the user clicks the button, and meeting the objective condition that the priority level 4 is pressed, displaying an icon 4-3 of the index table corresponding to the state under the condition, triggering and switching to return the signal source function of the mounted USB disk according to the button triggering function index table, and successfully returning to the signal source of the mounted USB disk.
The method provided by the embodiment can change the display state of the button by looking up the display condition index table every time the signal source is switched or the condition is informed to change. In the method provided by this embodiment, based on the button display condition index table, after the condition is satisfied, the image or icon in the index table is displayed in the corresponding display state, and when the button is operated by the mouse, the button is more available to trigger the index table to trigger the corresponding function.
In summary, based on the software design code of the button function multiplexing method provided by this embodiment, only by generating a corresponding algorithm code according to the determination condition and matching the algorithm code with the condition correspondingly satisfied from high to low, the multiplexing function of multiple buttons can be used, the utilization space of UI design is improved, and the tedious button logic requiring user determination is avoided.
Example 3
Corresponding to the above method embodiment, an embodiment of the present invention provides a button function multiplexing apparatus, as shown in fig. 4, a schematic structural diagram of the button function multiplexing apparatus, where the button function multiplexing apparatus includes:
an operation instruction obtaining module 41, configured to obtain an operation instruction;
a target priority and target button state determining module 42, configured to determine a target priority and a target button state corresponding to the target button under the operation instruction based on the operation instruction and a preset correspondence between the operation instruction and the priority and the button state;
a target button function determining module 43, configured to determine, based on a preset correspondence between a priority level and a button state, a target button function corresponding to a target button in the target priority level and the target button state;
and a target button function implementing module 44 for controlling the target button to trigger the target button function.
According to the button function multiplexing device provided by the embodiment of the invention, a plurality of button functions can be realized on the same target button according to the corresponding relation among the operation instruction, the preset operation instruction, the priority and the button state and the corresponding relation among the preset priority, the button state and the button function, and the corresponding target button function is triggered according to the operation instruction. The logic judgment process of the button operation by the user can be reduced, the difficulty of using the button by the user is reduced, and the experience degree of the user is improved; the number of the buttons is reduced, and the layout of the buttons on the user interaction interface is optimized, so that the layout of the buttons is attractive.
In some embodiments, the button states include a pressed state, a lifted state, a hover state, and an unavailable state.
In some embodiments, the target priority and target button status determining module is configured to select a highest priority of priorities corresponding to the operation instruction as the target priority and a button status corresponding to the operation instruction and the highest priority as the target button status if the operation instruction corresponds to a plurality of priorities.
In some embodiments, the correspondence between the operation instruction and the priority and the button state is preset in the form of program code, a database, or a configuration file.
In some embodiments, the device further includes a target display state determining module, configured to determine, based on a preset correspondence between the priority and the button state and the button display state, a target display state corresponding to the target button in the target priority and the target button state; and the target display state display module is used for controlling the target button to display the target display state.
In some embodiments, the button display state includes a combination of pictures and/or text.
In some embodiments, the apparatus further includes an initial button display state display module for controlling the target button to display a preset initial button display state.
The button function multiplexing device provided by the embodiment of the invention has the same technical characteristics as the button function multiplexing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Example 4
The embodiment of the invention also provides electronic equipment, which is used for operating the button function multiplexing method; referring to fig. 5, a schematic structural diagram of an electronic device is shown, the electronic device includes a memory 100 and a processor 101, where the memory 100 is used for storing one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to implement the button function multiplexing method.
Further, the electronic device shown in fig. 5 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The Memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the button function multiplexing method, and specific implementation may refer to method embodiments, and is not described herein again.
The button function multiplexing method, the button function multiplexing device, and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program codes, where instructions included in the program codes may be used to execute the method in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and/or the electronic device described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for multiplexing button functions, comprising:
acquiring an operation instruction;
determining a target priority and a target button state corresponding to a target button under the operation instruction based on the operation instruction and a preset corresponding relation between the operation instruction and the priority and the button state;
determining a target button function corresponding to the target button under the target priority and the target button state based on the preset corresponding relation between the priority, the button state and the button function;
and controlling the target button to trigger the target button function.
2. The method of claim 1, wherein the button states include a pressed state, a lifted state, a hover state, and an unavailable state.
3. The method according to claim 1, wherein the step of determining the target priority and the target button state corresponding to the target button under the operation instruction based on the operation instruction and the preset correspondence between the operation instruction and the priority and the button state comprises:
and if the operation instruction corresponds to a plurality of priorities, selecting the highest priority in the priorities corresponding to the operation instruction as the target priority, and using the operation instruction and the button state corresponding to the highest priority as the target button state.
4. The method according to claim 1, wherein the correspondence between the operation instruction and the priority and the button state is preset in the form of a program code, a database, or a configuration file.
5. The method of claim 1, wherein after the step of determining the target priority and the target button state corresponding to the target button under the operation instruction, the method further comprises:
determining a target display state corresponding to the target button under the target priority and the target button state based on a preset priority, a corresponding relation between the button state and the button display state;
and controlling the target button to display the target display state.
6. The method of claim 5, wherein the button display state comprises a combination of pictures and/or text.
7. The method of claim 1, wherein prior to the step of obtaining the operating instruction, the method further comprises:
and controlling the target button to display a preset initial button display state.
8. A button function multiplexing device, comprising:
the operation instruction acquisition module is used for acquiring an operation instruction;
the target priority and target button state determining module is used for determining the target priority and the target button state corresponding to the target button under the operation instruction based on the operation instruction and the preset corresponding relation between the operation instruction and the priority and the button state;
the target button function determining module is used for determining the corresponding target button functions of the target button under the target priority and the target button state based on the preset corresponding relation between the priority and the button state and the button functions;
and the target button function realization module is used for controlling the target button to trigger the target button function.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the steps of the button function multiplexing method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the button function multiplexing method of any one of claims 1 to 7.
CN202010020523.8A 2020-01-08 2020-01-08 Button function multiplexing method and device and electronic equipment Pending CN111240568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010020523.8A CN111240568A (en) 2020-01-08 2020-01-08 Button function multiplexing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010020523.8A CN111240568A (en) 2020-01-08 2020-01-08 Button function multiplexing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111240568A true CN111240568A (en) 2020-06-05

Family

ID=70870340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010020523.8A Pending CN111240568A (en) 2020-01-08 2020-01-08 Button function multiplexing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111240568A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123073A1 (en) * 2011-11-16 2014-05-01 Huawei Device Co., Ltd. Method, Apparatus, and Mobile Terminal for Operation Interface Management
CN103914238A (en) * 2012-12-30 2014-07-09 网易(杭州)网络有限公司 Method and device for achieving integration of controls in interface
CN104111720A (en) * 2014-06-30 2014-10-22 小米科技有限责任公司 Electronic device control method and device and electronic device
CN107544683A (en) * 2016-06-27 2018-01-05 北京小米移动软件有限公司 Multistage presses the method and device of key control, electronic equipment
CN110413192A (en) * 2019-07-08 2019-11-05 广州视源电子科技股份有限公司 Shortcut key response method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123073A1 (en) * 2011-11-16 2014-05-01 Huawei Device Co., Ltd. Method, Apparatus, and Mobile Terminal for Operation Interface Management
CN103914238A (en) * 2012-12-30 2014-07-09 网易(杭州)网络有限公司 Method and device for achieving integration of controls in interface
CN104111720A (en) * 2014-06-30 2014-10-22 小米科技有限责任公司 Electronic device control method and device and electronic device
CN107544683A (en) * 2016-06-27 2018-01-05 北京小米移动软件有限公司 Multistage presses the method and device of key control, electronic equipment
CN110413192A (en) * 2019-07-08 2019-11-05 广州视源电子科技股份有限公司 Shortcut key response method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11561680B2 (en) Method and apparatus for adding icon to interface of android system, and mobile terminal
US10353564B2 (en) Graphical user interface with virtual extension areas
US11500513B2 (en) Method for icon display, terminal, and storage medium
CN106484396B (en) Night mode switching method and device and terminal equipment
KR20100012844A (en) Method and system for emphasizing objects
KR20170041785A (en) Icon resizing
KR20090017892A (en) Apparatus and method of providing graphic user interface
CN112099686B (en) Icon display control method and device and electronic equipment
CN108064369B (en) Interaction method and device of flexible display screen
US20100255882A1 (en) Apparatus and a method for arranging elements on a display
RU2008121766A (en) METHOD AND DEVICE FOR MANAGING THE MENU IN A MOBILE COMMUNICATION DEVICE
US20180181288A1 (en) Method for displaying information, and terminal equipment
CN109842818A (en) A kind of video broadcasting method, device, computer equipment and storage medium
CN105094557A (en) Method and device for display control, and electronic device
CN109284034B (en) Method, system, storage medium and mobile phone for previewing terminal wallpaper
CN111225106B (en) Control operation method and electronic device
CN113568540A (en) Method, device, equipment and medium for displaying function menu in Web application
CN107256116B (en) Page switching processing method and device, user terminal and readable storage medium
CN106126041A (en) The desktop icon management method of a kind of mobile terminal and mobile terminal
CN107122104B (en) Data display method and device
US20130293590A1 (en) Mobile terminal comprising a graphical user interface
CN111240568A (en) Button function multiplexing method and device and electronic equipment
JP2019070762A (en) Electronic apparatus, controller, method for controlling electronic apparatus, and control program
CN111898056A (en) Webpage display method and device, storage medium and electronic equipment
CN111414507A (en) Information display method, equipment, device and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605

RJ01 Rejection of invention patent application after publication