CN107992302B - Button configuration method and device, storage medium and intelligent terminal - Google Patents

Button configuration method and device, storage medium and intelligent terminal Download PDF

Info

Publication number
CN107992302B
CN107992302B CN201711317278.1A CN201711317278A CN107992302B CN 107992302 B CN107992302 B CN 107992302B CN 201711317278 A CN201711317278 A CN 201711317278A CN 107992302 B CN107992302 B CN 107992302B
Authority
CN
China
Prior art keywords
button
attribute information
information
configuration file
button configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711317278.1A
Other languages
Chinese (zh)
Other versions
CN107992302A (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.)
Shenzhen orange Digital Technology Co.,Ltd.
Original Assignee
Shenzhen Qianhai Juzi Information 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 Shenzhen Qianhai Juzi Information Technology Co ltd filed Critical Shenzhen Qianhai Juzi Information Technology Co ltd
Priority to CN201711317278.1A priority Critical patent/CN107992302B/en
Publication of CN107992302A publication Critical patent/CN107992302A/en
Application granted granted Critical
Publication of CN107992302B publication Critical patent/CN107992302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The embodiment of the invention discloses a button configuration method, a button configuration device, a storage medium and an intelligent terminal. The method comprises the following steps: acquiring first button attribute information; generating a first button configuration file according to the first button attribute information; and calling and operating the first button configuration file to generate a button corresponding to the first button attribute information. Through the technical scheme provided by the embodiment of the invention, the personalized dynamic setting of the buttons in the user interface can be realized, secondary development of script codes of the user interface is not required, the development cost can be effectively reduced, the interaction experience of a user is improved, and the personalized button configuration requirement of the user is met.

Description

Button configuration method and device, storage medium and intelligent terminal
Technical Field
The embodiment of the invention relates to the technical field of software development, in particular to a button configuration method, a button configuration device, a storage medium and an intelligent terminal.
Background
At present, along with the popularization of smart terminals such as smart phones and tablet computers and the continuous improvement of computer hardware performance, various User Interface (UI) technologies are continuously innovated. Particularly, in the aspect of interactive UI, various pleasing UIs are layered endlessly, and the use experience of the user is greatly improved.
In the prior art, buttons in a user interface are generally configured in a software development process, and attribute information such as the number, size and position of the buttons in the user interface cannot be set individually and dynamically according to the requirements of a user. If the information such as the number, size and position of the buttons in the user interface of certain software needs to be changed, a developer needs to redevelop the script codes of the interface.
However, the coupling degree of the code developed by the software is high, the redundancy is large, and the code robustness is poor, so that the secondary development cost is high and the risk is large.
Disclosure of Invention
The embodiment of the invention provides a button configuration method and device, a storage medium and an intelligent terminal, which are used for realizing personalized dynamic setting of buttons in a user interface without secondary development, reducing development cost and improving interaction experience of users.
In a first aspect, an embodiment of the present invention provides a button configuration method, where the method includes:
acquiring first button attribute information;
generating a first button configuration file according to the first button attribute information;
and calling and operating the first button configuration file to generate a button corresponding to the first button attribute information.
Further, the generating a first button configuration file according to the first button attribute information includes:
acquiring a button configuration template;
and generating a first button configuration file according to the first button attribute information and the button configuration template.
Further, the generating a first button configuration file according to the first button attribute information and the button configuration template includes:
adding the first button attribute information to the button configuration template to generate a button class;
generating the first button profile based on the button class.
Further, the generating a first button configuration file according to the first button attribute information includes:
acquiring button configuration interface information;
and generating a first button configuration file according to the first button attribute information and the button configuration interface information.
Further, the acquiring the first button attribute information includes:
when a button configuration instruction input by a user is received, acquiring a second button configuration file;
analyzing the second button configuration file to obtain second button attribute information corresponding to the second button configuration file;
and acquiring the first button attribute information based on the change instruction of the user to the second button attribute information.
Further, the first button attribute information includes: at least one of button number information, button shape information, button size information, button color information, button position information, and button animation information.
In a second aspect, an embodiment of the present invention further provides a button configuration apparatus, where the apparatus includes:
the first button attribute information acquisition module is used for acquiring first button attribute information;
the first button configuration file generation module is used for generating a first button configuration file according to the first button attribute information;
and the button generation module is used for calling and running the first button configuration file and generating a button corresponding to the first button attribute information.
Further, the first button profile generating module includes:
a button configuration template acquisition unit for acquiring a button configuration template;
and the first button configuration file generating unit is used for generating a first button configuration file according to the first button attribute information and the button configuration template.
Further, the first button profile generating unit is configured to:
adding the first button attribute information to the button configuration template to generate a button class;
generating the first button profile based on the button class.
Further, the first button profile generating module is configured to:
acquiring button configuration interface information;
and generating a first button configuration file according to the first button attribute information and the button configuration interface information.
Further, the first button attribute information obtaining module is configured to:
when a button configuration instruction input by a user is received, acquiring a second button configuration file;
analyzing the second button configuration file to obtain second button attribute information corresponding to the second button configuration file;
and acquiring the first button attribute information based on the change instruction of the user to the second button attribute information.
Further, the first button attribute information includes: at least one of button number information, button shape information, button size information, button color information, button position information, and button animation information.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the button configuration method according to the first aspect of the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides an intelligent terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the button configuration method according to the first aspect of the embodiment of the present invention.
According to the button configuration scheme provided by the embodiment of the invention, the personalized dynamic setting of the buttons in the user interface can be realized by acquiring the first button attribute information, generating the first button configuration file according to the first button attribute information, calling and operating the first button configuration file, and generating the buttons corresponding to the first button attribute information. The button configuration file can be dynamically and automatically generated according to the acquired button attribute information, the buttons are configured, secondary development of script codes of a user interface is not needed, development cost can be effectively reduced, interaction experience of a user is improved, and personalized button configuration requirements of the user are met.
Drawings
Fig. 1 is a schematic flowchart of a button configuring method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a button configuring method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a button configuring method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a button configuring method according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a button display effect configured based on a button configuration method according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a button configuration apparatus according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an intelligent terminal according to a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a button configuration method according to an embodiment of the present invention, where the method is applicable to dynamically configuring a button, and can be executed by a button configuration device, where the device can be implemented by software and/or hardware, and can be generally integrated in an intelligent terminal. As shown in fig. 1, the method includes:
and S110, acquiring the first button attribute information.
In the embodiment of the present invention, the first button attribute information may be used to represent the size, color, shape, position, and other relevant information of the button. For example, the first button attribute information may include: at least one of button number information, button shape information, button size information, button color information, button position information, and button animation information. And configuring the corresponding button on the button configuration interface according to the first button attribute information. For example, in most application program use interfaces, a button needs to be configured for a user to click, and the user requirements are met through a series of operations on the button. It can be understood that, interfaces in which buttons need to be set in each interface of each application program can be used as button configuration interfaces. For example, if the main interface of the Taobao application includes a series of buttons such as micro Taobao, message, shopping cart, and My Taobao, the main interface of the Taobao application can be referred to as a button configuration interface. The button number information can be understood as the number of the configured buttons in the button configuration interface, for example, three buttons are configured; the button shape information can be understood as the shape, circle, rectangle or triangle, etc. of each button needing to be configured in the button configuration interface; the button size information can be understood as the size of each button to be configured in the button configuration interface, such as the radius or diameter of a circular button, the length and width of a rectangular button, each side length and each angle of a triangular button, and the like; the button color information can be understood as the color of each button needing to be configured in the button configuration interface, wherein the color information of the outer frame of the button and/or the button filling color can be included; the button position information can be understood as the position of each button needing to be configured in the button configuration interface, namely the specific position of each button needing to be configured in the configuration interface; the button animation information can be understood as animation effect presented when each button needing configuration in the button configuration interface is clicked by a user.
The embodiment of the invention can adopt the advantage that a user can input some attribute information related to the buttons needing to be configured on the configuration interface, namely the attribute information of the first button, through the human-computer interaction interface, so that the attribute information of the buttons can be dynamically set according to the requirements of the user, the buttons with different styles are configured on the button configuration interface, and different requirements of different users are met. For example, when the user is not satisfied with the buttons configured in the current interface, the user may input the first button attribute information that the user wants to configure, so as to meet the user requirement. For example, when a current interface in an intelligent terminal of a user includes two buttons, and the user wants to present four buttons on the interface, and configures related information such as different colors, sizes, shapes, positions, animations and the like for the four buttons, the user can manually input related first button attribute information on a human-computer interaction interface.
Of course, in this embodiment, the first button attribute information may also be obtained from a button dynamic configuration file downloaded from a server. Illustratively, when a button needs to be configured on the button configuration interface, a button dynamic configuration file is downloaded from the server, and the button attribute information corresponding to the button dynamic configuration file is analyzed from the button dynamic configuration file as the first button attribute information. The button attribute information analyzed from the button dynamic configuration file may also be adaptively modified, and the modified button attribute information may be used as the first button attribute information.
It should be noted that, in the embodiment of the present invention, specific contents included in the first button attribute information and an obtaining manner of the first button attribute information are not specifically limited.
And S120, generating a first button configuration file according to the first button attribute information.
In an embodiment of the present invention, a first button profile associated with first button attribute information is generated according to the first button attribute information. The first button configuration file may be understood as a button configuration code file containing first button attribute information.
Optionally, generating the first button configuration file according to the first button attribute information may include: acquiring a button configuration template; and generating a first button configuration file according to the first button attribute information and the button configuration template. Generating a first button configuration file according to the first button attribute information and the button configuration template may include: adding the first button attribute information to a button configuration template to generate a button class; a first button profile is generated based on the button class. The button configuration file generation method has the advantages that the button configuration file can be automatically generated simply and quickly according to the button attribute information and the button configuration template, and therefore different requirements of different users on the button configuration are met.
Optionally, generating the first button configuration file according to the first button attribute information may include: and acquiring the button configuration interface information, and generating first button configuration information according to the first button attribute information and the button configuration interface information. For example, the button configuration interface information may include related information such as the size of the button configuration interface, the color of the button configuration interface, and a picture in the button configuration interface. The first button attribute information may be adapted according to the button configuration interface information to generate a first button configuration file. This has the advantage that the button property information can be adapted according to the button configuration interface information, so that the configured button is more matched with the button configuration interface.
And S130, calling the first button configuration file and running to generate a button corresponding to the first button attribute information.
The first button profile generated in S120 is called and executed, thereby generating a button corresponding to the first button attribute information. It is understood that the button configuration code file is added to the code file in the button configuration interface, or the code file in the button configuration interface calls the first button configuration file and operates, so that the button corresponding to the first button attribute information is generated in the button configuration interface.
According to the button configuration method provided by the embodiment of the invention, the personalized dynamic setting of the buttons in the user interface can be realized by acquiring the first button attribute information, generating the first button configuration file according to the first button attribute information, calling and operating the first button configuration file, and generating the buttons corresponding to the first button attribute information. The button configuration file can be dynamically and automatically generated according to the acquired button attribute information, the buttons are configured, secondary development of script codes of a user interface is not needed, development cost can be effectively reduced, interaction experience of a user is improved, and personalized button configuration requirements of the user are met.
Example two
Fig. 2 is a flowchart illustrating a button configuring method according to a second embodiment of the present invention. In this embodiment, the step of generating a first button configuration file according to the first button attribute information is optimized as follows: acquiring a button configuration template; generating a first button configuration file according to the first button attribute information and the button configuration template; and further generating a first button configuration file according to the first button attribute information and the button configuration template, and optimizing to: adding the first button attribute information to the button configuration template to generate a button class; generating the first button profile based on the button class. Correspondingly, the method of the embodiment specifically includes:
s210, acquiring first button attribute information.
And S220, acquiring a button configuration template.
The button configuration template may be understood as a pre-generated button configuration code file template. The button configuration template can be generated through a template technology, and the generated button configuration template is stored in the intelligent terminal or the server in advance. And when the button needs to be configured, calling the button configuration template from the intelligent terminal or downloading the button configuration template from the server. The template technology can comprise Stringtemplate, Smarty, Fasttemplate, ShellPage, Savant and the like, and can realize the separation of the service logic and the representation logic of the application program and improve the parallel working efficiency of the code program.
And S230, adding the first button attribute information to the button configuration template to generate a button class.
And adding the first button attribute information to the button configuration template to generate a button class. The button class may include a plurality of button code segments or button code blocks. One or more of the first button attribute information is contained in each button code segment or button code block. For example, the first button attribute information may include: button number information, button shape information, button size information, button color information, button position information, and button animation information. The button class includes three button code segments or button code blocks, and taking the button code block as an example, the first button code block may include only button number information in the first button attribute information, the second button code block may include integrated information of button shape information, button size information, and button position information, and the third button code block may include integrated information of button color information and button animation information.
S240, generating a first button configuration file based on the button class.
In an embodiment of the present invention, the first button profile is generated based on the button class generated in S230. It will be appreciated that the first button profile is generated by comprehensively parsing the various button code segments or button code blocks in the button class. The first button configuration file comprises the attribute contents in the first button attribute information.
And S250, calling and operating the first button configuration file to generate a button corresponding to the first button attribute information.
According to the button configuration method provided by the embodiment of the invention, the button class is generated by adding the first attribute information into the button configuration template, and the first button configuration file is generated based on the button class, so that the button required by the user is configured, the complex process that developers carry out secondary development on script codes of a user interface is omitted, the automation of the generation of the button configuration file is realized, and the personalized dynamic setting of the button by the user is met.
EXAMPLE III
Fig. 3 is a flowchart illustrating a button configuring method according to a third embodiment of the present invention. In this embodiment, the step of generating a first button configuration file according to the first button attribute information is optimized as follows: acquiring button configuration interface information; and generating a first button configuration file according to the first button attribute information and the button configuration interface information. Correspondingly, the method of the embodiment specifically includes:
s310, acquiring first button attribute information.
And S320, acquiring button configuration interface information.
In the embodiment of the present invention, there may be one or more button configuration interfaces. When there are multiple button configuration interfaces, the multiple button configuration interfaces may be independent from each other or may have a hierarchical relationship. For example, a plurality of levels of button configuration interfaces may be included in an orange financing native interface, such as first including a purchase-for-entry financing interface and an asset interface. The portal purchase financing interface and the assets interface can be viewed as two juxtaposed button configuration interfaces. The two button configuration interfaces respectively comprise a plurality of different sub-interfaces. The interface for purchasing and financing by entrance also comprises a VIP (very important person) fixed storage product detail interface, a monthly liter product detail interface, a weekly and weekly liter product detail interface and a novice weekly and weekly liter product detail interface. The asset interfaces respectively comprise a reserved product asset detail interface, a monthly liter product asset detail interface and a weekly liter product asset detail interface. Each of the sub-interfaces described above may also be considered a button configuration interface. The button configuration interface information may include related information such as a size of the button configuration interface, a color of the button configuration interface, and a picture in the button configuration interface.
S330, generating a first button configuration file according to the first button attribute information and the button configuration interface information.
Optionally, the first button attribute information is adapted according to the button configuration interface information, and a first button configuration file is generated according to the adaptation result. Illustratively, the acquired first button attribute information includes two dark red circular buttons, each having a diameter of 2 cm. The button configuration interface contained in the button configuration interface information is a rectangular interface with the length of 6cm and the width of 4cm, and the color of the interface is light red. If the corresponding first button configuration file is generated only according to the first button attribute, the display effect of the finally generated button on the button configuration interface is poor. Therefore, in order to enable the button to have a good display effect on the button configuration interface, the first button attribute information can be adapted according to the button interface information. For example, the size attribute information in the first button attribute information is adaptively adjusted according to the length and width of the button configuration interface, and the color attribute information in the first button attribute information is adaptively adjusted according to the color in the button configuration interface, such as adjusting a circular button with a diameter of 2cm to a circular button with a diameter of 1.5cm, and adjusting the color to yellow. Or a preset proportion can be set according to the length and the width of the button configuration interface, and the size attribute in the first button attribute information is multiplied by the preset proportion value so as to adaptively adjust the size attribute of the button. Similarly, an adjustment chromaticity is set according to the color information of the button configuration interface and the color attribute information in the first button attribute information, and the button color attribute is adaptively modified according to the adjustment chromaticity.
And S340, calling the first button configuration file and running to generate a button corresponding to the first button attribute information.
According to the button configuration method provided by the embodiment of the invention, the first button attribute information is adapted according to the button configuration interface information, and the corresponding first button configuration file is generated, so that the buttons required by the user are configured, the personalized dynamic setting of the buttons can be realized, the matching degree of the configured buttons and the button configuration interface can be effectively increased, the configured buttons have a good display effect on the button configuration interface, and the use experience of the user is improved.
Example four
Fig. 4 is a flowchart illustrating a button configuring method according to a fourth embodiment of the present invention. In this embodiment, the first button attribute information obtained in the step is optimized as follows: when a button configuration instruction input by a user is received, acquiring a second button configuration file; analyzing the second button configuration file to obtain second button attribute information corresponding to the second button configuration file; and acquiring the first button attribute information based on the change instruction of the user to the second button attribute information. Correspondingly, the method of the embodiment specifically includes:
and S410, acquiring a second button configuration file when a button configuration instruction input by a user is received.
In the embodiment of the present invention, the button configuration instruction may be a preset instruction, including but not limited to a mechanical control instruction (for example, receiving a preset mechanical button operated by a user to issue an instruction), a preset audio instruction, a preset video image instruction, and/or a preset touch instruction. The various preset commands may be used alone or in combination.
The second button configuration file may be a button dynamic configuration file downloaded from a server, and the button dynamic configuration file includes corresponding button attribute information. The second button profile may also be a button profile corresponding to a button in the current interface, where the second button profile includes button attachment information corresponding to the configured button in the current interface. The source of the second button profile is not particularly limited in this embodiment.
And S420, analyzing the second button configuration file to obtain second button attribute information corresponding to the second button configuration file.
In the embodiment of the present invention, the second button configuration file is analyzed to obtain the second button attribute information included in the second button configuration file. For example, when the second button profile may be a dynamic button profile downloaded from a server, the dynamic button attribute information is parsed from the dynamic button profile and is used as the second button attribute information. When the second button configuration file can be a button configuration file corresponding to a button in the current interface, the button attribute information corresponding to the button in the current interface is analyzed from the button configuration file and is used as the second button attribute information. Wherein, the second button attribute information may also include: at least one of button number information, button shape information, button size information, button color information, button position information, and button animation information.
S430, acquiring the first button attribute information based on the change instruction of the user to the second button attribute information.
Optionally, when the second button profile is a dynamic button profile downloaded from the server, the user is dissatisfied with the attribute information of the button in the current interface (which may also be understood as a button profile interface), and when there is a partial dissatisfaction with the button attribute information analyzed from the dynamic button profile, the analyzed second button attribute information is adaptively modified, and the modified second button attribute information is used as the first button attribute information. Illustratively, the current interface includes two rectangular buttons, the two rectangular buttons are both black in color, and the button attribute information parsed from the button dynamic profile (i.e., the second button profile) downloaded from the server includes three buttons, which are two red circular buttons and one yellow triangular button respectively. The user is satisfied with the number and shape of the buttons included in the button attribute information analyzed from the button dynamic configuration file, but if the user is not satisfied with the color of the button attribute information, the user needs to modify the color attribute information in the analyzed button attribute. If two red circular buttons are modified into a black circular button and a blue circular button, the yellow triangular button is modified into a green triangular button, and the size attribute information, the shape attribute information, the position attribute information and the animation attribute information are not modified.
Optionally, when the second button configuration file may be a button configuration file corresponding to a button in the current interface and the user is unsatisfied with the attribute information of the button in the current interface, the button attribute information of the current interface is directly modified, and the modified button attribute information in the current interface is used as the first button attribute information. Illustratively, the current interface comprises a circular button, the color of the circular button is gray, the diameter of the circular button is 5mm, and animation attribute information is not configured at the lower left of the current interface. When the user is not satisfied with the attribute information of each button in the current interface, the attribute information of the button in the current interface can be directly modified. For example, the button attribute information of the current interface is correspondingly modified into two square buttons which are respectively positioned at the lower left corner and the lower right corner of the current interface, the side lengths are both 8mm, the colors are red one and blue one, and the bouncing animation attribute information is set for the square buttons.
And S440, acquiring button configuration interface information.
S450, generating a first button configuration file according to the first button attribute information and the button configuration interface information.
And S460, calling and operating the first button configuration file, and generating a button corresponding to the first button attribute information.
Exemplarily, fig. 5 is a schematic diagram of a button display effect configured based on a button configuration method according to an embodiment of the present invention. As shown in fig. 5, the left diagram is a schematic diagram of an original button display effect in the button configuration interface 510, and the right diagram is a schematic diagram of an effect of a generated button displayed on the button configuration interface 510 based on the button configuration method provided in the embodiment of the present invention.
According to the button configuration method provided by the embodiment of the invention, the second button attribute information is analyzed from the obtained second button configuration file, and the first button attribute information is generated based on the modification of the second button attribute information, so that the set first button attribute information can better meet the user requirements, the personalized dynamic setting of the button is realized, secondary development of script codes of a user interface is not needed, the development cost can be effectively reduced, and the interaction experience of a user is improved.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a button configuration apparatus according to a fifth embodiment of the present invention. As shown in fig. 6, the apparatus includes: a first button attribute information obtaining module 610, a first button configuration file generating module 620 and a button generating module 630, wherein:
a first button attribute information obtaining module 610, configured to obtain first button attribute information;
a first button configuration file generating module 620, configured to generate a first button configuration file according to the first button attribute information;
and a button generating module 630, configured to invoke and run the first button configuration file, and generate a button corresponding to the first button attribute information.
According to the button configuration device provided by the embodiment of the invention, the personalized dynamic setting of the buttons in the user interface can be realized by acquiring the first button attribute information, generating the first button configuration file according to the first button attribute information, calling and operating the first button configuration file, and generating the buttons corresponding to the first button attribute information. Because the dynamic button configuration file can be automatically generated according to the acquired button attribute information to configure the button, secondary development of script codes of a user interface is not needed, the development cost can be effectively reduced, the interaction experience of a user is improved, and the personalized button configuration requirement of the user is met.
Optionally, the first button profile generating module includes:
a button configuration template acquisition unit for acquiring a button configuration template;
and the first button configuration file generating unit is used for generating a first button configuration file according to the first button attribute information and the button configuration template.
Optionally, the first button configuration file generating unit is configured to:
adding the first button attribute information to the button configuration template to generate a button class;
generating the first button profile based on the button class.
Optionally, the first button profile generating module is configured to:
acquiring button configuration interface information;
and generating a first button configuration file according to the first button attribute information and the button configuration interface information.
Optionally, the first button attribute information obtaining module is configured to:
when a button configuration instruction input by a user is received, acquiring a second button configuration file;
analyzing the second button configuration file to obtain second button attribute information corresponding to the second button configuration file;
and acquiring the first button attribute information based on the change instruction of the user to the second button attribute information.
Optionally, the first button attribute information includes: at least one of button number information, button shape information, button size information, button color information, button position information, and button animation information.
EXAMPLE six
An embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, provide for a button configuration method, including:
acquiring first button attribute information;
generating a first button configuration file according to the first button attribute information;
and calling and operating the first button configuration file to generate a button corresponding to the first button attribute information.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the button configuration operation described above, and may also perform related operations in the button configuration method provided by any embodiments of the present invention.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an intelligent terminal according to a seventh embodiment of the present invention, and as shown in fig. 7, the intelligent terminal may include: a housing (not shown), a memory 701, a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the intelligent terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
acquiring first button attribute information;
generating a first button configuration file according to the first button attribute information;
and calling and operating the first button configuration file to generate a button corresponding to the first button attribute information.
The intelligent terminal further comprises: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated smart terminal 700 is only one example of a smart terminal, and that the smart terminal 700 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the smart terminal for button configuration provided in this embodiment, which takes a mobile phone as an example.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user intelligent terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The button configuration device, the storage medium and the intelligent terminal provided in the above embodiments can execute the corresponding button configuration method provided in the embodiments of the present invention, and have the corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a button configuration method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A button configuration method, comprising:
acquiring first button attribute information;
generating a first button configuration file according to the first button attribute information;
calling and operating the first button configuration file to generate a button corresponding to the first button attribute information;
wherein the generating a first button configuration file according to the first button attribute information includes:
acquiring a button configuration template;
generating a first button configuration file according to the first button attribute information and the button configuration template;
or acquiring button configuration interface information;
and generating a first button configuration file according to the first button attribute information and the button configuration interface information.
2. The method of claim 1, wherein generating a first button profile based on the first button attribute information and the button configuration template comprises:
adding the first button attribute information to the button configuration template to generate a button class;
generating the first button profile based on the button class.
3. The method of claim 1, wherein the obtaining first button attribute information comprises:
when a button configuration instruction input by a user is received, acquiring a second button configuration file;
analyzing the second button configuration file to obtain second button attribute information corresponding to the second button configuration file;
and acquiring the first button attribute information based on the change instruction of the user to the second button attribute information.
4. The method of any of claims 1-3, wherein the first button attribute information comprises: at least one of button number information, button shape information, button size information, button color information, button position information, and button animation information.
5. A button configuring apparatus, comprising:
the first button attribute information acquisition module is used for acquiring first button attribute information;
the first button configuration file generation module is used for generating a first button configuration file according to the first button attribute information;
the button generation module is used for calling and running the first button configuration file and generating a button corresponding to the first button attribute information; the first button profile generation module includes:
a button configuration template acquisition unit for acquiring a button configuration template;
the first button configuration file generating unit is used for generating a first button configuration file according to the first button attribute information and the button configuration template;
or, the first button configuration file generating module is configured to obtain button configuration interface information;
and generating a first button configuration file according to the first button attribute information and the button configuration interface information.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for button configuration according to any one of claims 1 to 4.
7. An intelligent terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the button configuration method according to any one of claims 1 to 4 when executing the computer program.
CN201711317278.1A 2017-12-12 2017-12-12 Button configuration method and device, storage medium and intelligent terminal Active CN107992302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711317278.1A CN107992302B (en) 2017-12-12 2017-12-12 Button configuration method and device, storage medium and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711317278.1A CN107992302B (en) 2017-12-12 2017-12-12 Button configuration method and device, storage medium and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107992302A CN107992302A (en) 2018-05-04
CN107992302B true CN107992302B (en) 2020-09-22

Family

ID=62035918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711317278.1A Active CN107992302B (en) 2017-12-12 2017-12-12 Button configuration method and device, storage medium and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107992302B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142767B (en) 2019-12-16 2021-06-01 华为技术有限公司 User-defined key method and device of folding device and storage medium
CN111427567B (en) * 2020-03-20 2023-08-18 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192254B (en) * 2006-12-13 2010-06-09 腾讯科技(深圳)有限公司 Push button configuration system and push button configuration method
CN101295249B (en) * 2008-06-26 2010-12-15 腾讯科技(深圳)有限公司 Method and system for dynamic configuration management of software interface style
CN102981855A (en) * 2012-11-23 2013-03-20 蓝盾信息安全技术股份有限公司 Template-based interface autogeneration method and system
CN103440326A (en) * 2013-09-02 2013-12-11 百度在线网络技术(北京)有限公司 Method and apparatus for providing representation information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2002326A4 (en) * 2006-02-10 2009-08-26 Freedom Scientific Inc Graphic user interface control object stylization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192254B (en) * 2006-12-13 2010-06-09 腾讯科技(深圳)有限公司 Push button configuration system and push button configuration method
CN101295249B (en) * 2008-06-26 2010-12-15 腾讯科技(深圳)有限公司 Method and system for dynamic configuration management of software interface style
CN102981855A (en) * 2012-11-23 2013-03-20 蓝盾信息安全技术股份有限公司 Template-based interface autogeneration method and system
CN103440326A (en) * 2013-09-02 2013-12-11 百度在线网络技术(北京)有限公司 Method and apparatus for providing representation information

Also Published As

Publication number Publication date
CN107992302A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US10831314B2 (en) Method and electronic device for preventing touch button from being false triggered
CN109741279B (en) Image saturation adjusting method and device, storage medium and terminal
CN106681635B (en) Split screen false touch prevention method and device and mobile terminal
CN107491560B (en) Page picture display method and device, storage medium, server and mobile terminal
US10884611B2 (en) Method and apparatus for controlling touch screen of terminal, and terminal
CN108990110B (en) Network traffic management method, device, storage medium and terminal
US20150301730A1 (en) Object Suspension Realizing Method and Device
EP2680123A2 (en) Method and Device of Task Processing of One Screen and Multi-Foreground
CN107835322A (en) interface display method, device, storage medium and terminal device
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
CN108920070B (en) Screen splitting method and device based on special-shaped display screen, storage medium and mobile terminal
CN113613064B (en) Video processing method, device, storage medium and terminal
CN103607510A (en) Terminal combination use method, terminals and communication system
CN107992302B (en) Button configuration method and device, storage medium and intelligent terminal
US20150109210A1 (en) Control method, and input device of touch screen terminal
CN110333785B (en) Information processing method and device, storage medium and augmented reality equipment
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
US20170168796A1 (en) Method and electronic apparatus for transferring application program from pc to mobile apparatus
CN108986187A (en) A kind of implementation method, device, storage medium and the android terminal of general animation
CN112274910A (en) Virtual key configuration method, virtual key method and related device
CN108279858A (en) Electronic equipment and its operating method
CN114840194A (en) Code and operating system generation method and device, server and electronic equipment
CN108141697B (en) Electronic device, corollary device and method for operating electronic device

Legal Events

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

Effective date of registration: 20210618

Address after: 2501, China energy storage building, 3099 Keyuan South Road, high tech community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen orange Digital Technology Co.,Ltd.

Address before: 23 / F, China energy storage building, 3099 Keyuan South Road, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Patentee before: SHENZHEN QIANHAI JUZI INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right