CN107992302A - A kind of push button configuration method, device, storage medium and intelligent terminal - Google Patents

A kind of push button configuration method, device, storage medium and intelligent terminal Download PDF

Info

Publication number
CN107992302A
CN107992302A CN201711317278.1A CN201711317278A CN107992302A CN 107992302 A CN107992302 A CN 107992302A CN 201711317278 A CN201711317278 A CN 201711317278A CN 107992302 A CN107992302 A CN 107992302A
Authority
CN
China
Prior art keywords
button
attribute information
arrangement
information
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711317278.1A
Other languages
Chinese (zh)
Other versions
CN107992302B (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

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 kind of push button configuration method, device, storage medium and intelligent terminal.The described method includes:Obtain the first button attribute information;First button arrangement file is generated according to the first button attribute information;Call the first button arrangement file and run, generate button corresponding with the first button attribute information.Pass through technical solution provided in an embodiment of the present invention, it can realize and personalized dynamic setting is carried out to the button in user interface, without carrying out secondary development to the scripted code of user interface, development cost can effectively be reduced, the interactive experience of user is improved, meets the button arrangement demand of user individual.

Description

A kind of push button configuration method, device, storage medium and intelligent terminal
Technical field
The present embodiments relate to technical field of software development, more particularly to a kind of push button configuration method, device, storage Jie Matter and intelligent terminal.
Background technology
At present, as the popularization of the intelligent terminals such as smart mobile phone, tablet computer, and the continuous of computer hardware performance carry Height, has driven the continuous innovation of various user interfaces (UI, User Interface) technology.Especially in terms of interaction UI, respectively The pleasing UI of kind emerges in an endless stream, and substantially increases the usage experience of user.
In the prior art, the button in user interface be typically all it is configured good in software development process, it is impossible to according to The demand at family, carries out the attribute information such as the quantity of button, size and location in user interface personalized dynamic setting.If it is desired to Change the quantity of button in the user interface of certain software, size and location when information, it is necessary to which developer develops this again The scripted code at interface.
However, the degree of coupling of the code of software development is high, redundancy is big and code robustness is poor so that secondary development cost Height, risk are big.
The content of the invention
The embodiment of the present invention provides a kind of push button configuration method, device, storage medium and intelligent terminal, to realize to user Button in interface carries out personalized dynamic setting, without secondary development, reduces development cost, improves the interaction body of user Test.
In a first aspect, an embodiment of the present invention provides a kind of push button configuration method, this method includes:
Obtain the first button attribute information;
First button arrangement file is generated according to the first button attribute information;
Call the first button arrangement file and run, generate button corresponding with the first button attribute information.
Further, it is described that first button arrangement file is generated according to the first button attribute information, including:
Obtain button arrangement template;
According to the first button attribute information and the button arrangement template, the first button arrangement file is generated.
Further, it is described according to the first button attribute information and the button arrangement template, generate the first button Configuration file, including:
The first button attribute information is added to the button arrangement template, generates button class;
The first button arrangement file is generated based on the button class.
Further, it is described that first button arrangement file is generated according to the first button attribute information, including:
Obtain button arrangement interface information;
According to the first button attribute information and the button arrangement interface information, the first button arrangement file is generated.
Further, the first button attribute information of the acquisition, including:
When receiving button arrangement instruction input by user, the second button arrangement file is obtained;
The second button arrangement file is parsed, obtains the second button attribute corresponding with the second button arrangement file Information;
Change directive based on user to the second button attribute information, obtains the first button attribute information.
Further, the first button attribute information includes:Button quantity information, button-shape information, button size It is at least one in information, Button Color information, button location information and button animation information.
Second aspect, the embodiment of the present invention additionally provide a kind of button arrangement device, which includes:
First button attribute information acquisition module, for obtaining the first button attribute information;
First button arrangement file generating module, for generating the first button arrangement according to the first button attribute information File;
Button generation module, for calling the first button arrangement file and running, generation and the first button category The property corresponding button of information.
Further, the first button arrangement file generating module, including:
Button arrangement template acquiring unit, for obtaining button arrangement template;
First button arrangement file generating unit, for according to the first button attribute information and the button arrangement mould Plate, generates the first button arrangement file.
Further, the first button arrangement file generating unit, is used for:
The first button attribute information is added to the button arrangement template, generates button class;
The first button arrangement file is generated based on the button class.
Further, the first button arrangement file generating module, is used for:
Obtain button arrangement interface information;
According to the first button attribute information and the button arrangement interface information, the first button arrangement file is generated.
Further, the first button attribute information acquisition module, is used for:
When receiving button arrangement instruction input by user, the second button arrangement file is obtained;
The second button arrangement file is parsed, obtains the second button attribute corresponding with the second button arrangement file Information;
Change directive based on user to the second button attribute information, obtains the first button attribute information.
Further, the first button attribute information includes:Button quantity information, button-shape information, button size It is at least one in information, Button Color information, button location information and button animation information.
The third aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer Program, realizes the push button configuration method as described in first aspect of the embodiment of the present invention when which is executed by processor.
Fourth aspect, an embodiment of the present invention provides a kind of intelligent terminal, including memory, processor and is stored in storage And can be in the computer program of processor operation on device, the processor is realized such as the present invention in fact when performing the computer program Apply the push button configuration method described in a first aspect.
Button arrangement scheme provided in an embodiment of the present invention, by obtaining the first button attribute information, according to the first button Attribute information generates the first button arrangement file, then calls the first button arrangement file and runs, generation and the first button category Property the corresponding button of information, it is possible to achieve personalized dynamic setting is carried out to the button in user interface.Due to can be dynamically Button attribute information according to getting automatically generates button arrangement file, button is configured, without the script to user interface Code carries out secondary development, can effectively reduce development cost, improve the interactive experience of user, meet the button of user individual Configuration needs.
Brief description of the drawings
Fig. 1 is a kind of flow diagram for push button configuration method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of push button configuration method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram for push button configuration method that the embodiment of the present invention three provides;
Fig. 4 is a kind of flow diagram for push button configuration method that the embodiment of the present invention four provides;
Fig. 5 is the button display effect schematic diagram based on push button configuration method configuration that the embodiment of the present invention four provides;
Fig. 6 is a kind of structure diagram for button arrangement device that the embodiment of the present invention five provides;
Fig. 7 is a kind of structure diagram for intelligent terminal that the embodiment of the present invention seven provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just It illustrate only part related to the present invention rather than entire infrastructure in description, attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart Step can be implemented concurrently, concomitantly or at the same time.In addition, the order of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow diagram of push button configuration method provided in an embodiment of the present invention, and this method is applicable to button Carry out the situation of dynamic configuration, can be performed by button arrangement device, wherein the device can by software and/or hardware realization, one As can be integrated in intelligent terminal.As shown in Figure 1, this method includes:
S110, obtain the first button attribute information.
In embodiments of the present invention, the first button attribute information can be used for size, color, shape and the position for characterizing button The relevant information such as put.Exemplary, the first button attribute information can include:Button quantity information, button-shape information, button It is at least one in size information, Button Color information, button location information and button animation information.Can be according to the first button Attribute information is in the corresponding button of button arrangement interface configurations.Exemplary, in most application program is using interface Button is needed to configure, clicks on and uses for user, by the sequence of operations to button, meet user demand.It is understood that The interface of setting button is needed in each interface of each application program, can be using this as button arrangement interface.For example, In the main interface of Taobao's application, include a series of buttons such as micro- naughty, message, shopping cart and my Taobao, then Taobao The main interface of application can be known as button arrangement interface.Wherein, button quantity information can be understood as in button arrangement interface The quantity of button is configured, if desired for three buttons of configuration;Button-shape information can be understood as needing in button arrangement interface The shape for each button to be configured, circular, rectangle or triangle etc.;Button size information can be understood as button arrangement circle The size of each button needed to configure in face, such as the radius or diameter of round button, the length and width of rectangular buttons, the triangle button The each length of side and all angles etc.;Button Color information can be understood as needing to configure in button arrangement interface it is each by The color of button, wherein it is possible to the colouring information of the outline border including button and/or button Fill Color;Button location information can be with The position of each button needed to configure in button arrangement interface is interpreted as, that is, each button needed to configure is in configuration interface Residing specific location;Each button that button animation information can be understood as needing to configure in button arrangement interface is by user's point When hitting, the animation effect of presentation.
Wherein, the embodiment of the present invention can use user to input some with needing in configuration interface by human-computer interaction interface The relevant attribute information of button of configuration, i.e. the first button attribute information, the advantages of this arrangement are as follows, can be according to user's The attribute information of button is set dynamically in demand, so as to go out the button of different-style in button arrangement interface configurations, meets not having to use The different demands at family.Exemplary, when the button configured during user is to current interface is not to feel quite pleased, user can input certainly Oneself wants the first button attribute information configured, to meet user demand.For example, in the intelligent terminal of user in current interface Comprising two buttons, and user wants to show four buttons at the interface, at the same for the different color of four button arrangements, Size, shape, position and animation can be manually entered the first associated button when relevant information in human-computer interaction interface Attribute information.
Certainly, in the present embodiment, the first button attribute information can also be matched somebody with somebody by the button dynamic downloaded from server Put in file and obtain.Exemplary, when needing in button arrangement interface configurations button, download button dynamic is matched somebody with somebody from server File is put, and parses corresponding button attribute information from button dynamic configuration file and believes as the first button attribute Breath.Adaptability change can also be carried out to the button attribute information parsed from button dynamic configuration file, after change Button attribute information is as the first button attribute information.
It should be noted that particular content and the first button category that the embodiment of the present invention includes the first button attribute information The acquisition modes of property information are not specifically limited.
S120, according to the first button attribute information generate the first button arrangement file.
In embodiments of the present invention, according to the generation of the first button attribute information and the first button attribute information associated the One button arrangement file.Wherein, the first button arrangement file can be understood as including the button of the first button attribute information and match somebody with somebody Put code file.
Optionally, the first button arrangement file is generated according to the first button attribute information, can included:Obtain button arrangement Template;According to the first button attribute information and button arrangement template, the first button arrangement file is generated.Wherein, pressed according to first Button attribute information and button arrangement template, generate the first button arrangement file, can include:First button attribute information is added To button arrangement template, button class is generated;First button arrangement file is generated based on button class.The advantages of this arrangement are as follows Button arrangement file can simply and rapidly be automatically generated, so as to meet not according to button attribute information and button arrangement template Different demands with user to button arrangement.
Optionally, the first button arrangement file is generated according to the first button attribute information, can included:Obtain button arrangement Interface information, according to the first button attribute information and button arrangement interface information, generates the first button arrangement information.For example, press Button configuration interface information can be included in the size at button arrangement interface, the color and button arrangement interface at button arrangement interface The relevant informations such as picture.First button attribute information can be adapted to according to button arrangement interface information, generate the first button arrangement File.The advantages of this arrangement are as follows button attribute information can be adapted to according to button arrangement interface information, so that configuration The button gone out is more matched with button arrangement interface.
S130, call the first button arrangement file and run, and generates button corresponding with the first button attribute information.
The the first button arrangement file generated in S120 is called, and runs the first button arrangement file, so as to generate Button corresponding with the first button attribute information.It is understood that button arrangement code file is added to button arrangement circle In code file in face, the code file in button arrangement interface calls the first button arrangement file in other words, and runs, from And generate button corresponding with the first button attribute information at button arrangement interface.
Push button configuration method provided in an embodiment of the present invention, by obtaining the first button attribute information, according to the first button Attribute information generates the first button arrangement file, then calls the first button arrangement file and runs, generation and the first button category Property the corresponding button of information, it is possible to achieve personalized dynamic setting is carried out to the button in user interface.Due to can be dynamically Button attribute information according to getting automatically generates button arrangement file, button is configured, without the script to user interface Code carries out secondary development, can effectively reduce development cost, improve the interactive experience of user, meet the button of user individual Configuration needs.
Embodiment two
Fig. 2 is a kind of flow diagram of push button configuration method provided by Embodiment 2 of the present invention.The present embodiment is with above-mentioned Optimized based on embodiment, in the present embodiment, step is generated into the first button according to the first button attribute information Configuration file, is optimized for:Obtain button arrangement template;According to the first button attribute information and the button arrangement template, Generate the first button arrangement file;And further by step according to the first button attribute information and the button arrangement mould Plate, generates the first button arrangement file, is optimized for:The first button attribute information is added to the button arrangement template, Generate button class;The first button arrangement file is generated based on the button class.Correspondingly, the method for the present embodiment is specifically wrapped Include:
S210, obtain the first button attribute information.
S220, obtain button arrangement template.
Button arrangement template can be understood as the button arrangement code file template previously generated.Wherein it is possible to pass through mould Plate technique generates button arrangement template, and the button arrangement template of generation is pre-stored in intelligent terminal or server.When When needing to configure button, the call buttons configuration template from intelligent terminal, or the download button configuration template from server.Mould Plate technique can include StringTemplate, Smarty, FastTemplate, ShellPage and Savant etc., using template Technology can realize application program service logic and show the separation of logic, improve the concurrent working efficiency of program in machine code.
First button attribute information, is added to button arrangement template by S230, generates button class.
First button attribute information is added to button arrangement template, generates button class.Wherein, button class can include Multiple buttons code segment or button code block.Include the first button attribute letter in each button code section or button code block One or more in breath.For example, the first button attribute information can include:Button quantity information, button-shape information, button Size information, Button Color information, button location information and button animation information.Button class include three button code sections or Button code block, by taking button code block as an example, the first button code block can only include pressing in the first button attribute information Button quantity information, the second button code block can include the comprehensive of button-shape information, button size information and button location information Information is closed, the 3rd button code block can include the integrated information of Button Color information and button animation information.
S240, based on button class generate the first button arrangement file.
In embodiments of the present invention, the button class based on S230 generations generates the first button arrangement file.It is appreciated that It is that comprehensive analysis is carried out to each button code section in button class or button code block, generates the first button arrangement file.Its In, each property content in the first button attribute information is contained in the first button arrangement file.
S250, call the first button arrangement file and run, and generates button corresponding with the first button attribute information.
Push button configuration method provided in an embodiment of the present invention, by the way that the first attribute information is added to button arrangement template In, button class is generated, and the first button arrangement file is generated based on button class, so as to configure the button of user's needs, save Developer carries out the scripted code of user interface the complicated processes of secondary development, realizes button arrangement file generated Automation, meets personalization of the user to button and is set dynamically.
Embodiment three
Fig. 3 is a kind of flow diagram for push button configuration method that the embodiment of the present invention three provides.The present embodiment is with above-mentioned Optimized based on embodiment, in the present embodiment, step is generated into the first button according to the first button attribute information Configuration file, is optimized for:Obtain button arrangement interface information;According to the first button attribute information and button arrangement circle Face information, generates the first button arrangement file.Correspondingly, the method for the present embodiment specifically includes:
S310, obtain the first button attribute information.
S320, obtain button arrangement interface information.
In embodiments of the present invention, button arrangement interface can be one, or multiple.When button arrangement interface is When multiple, multiple buttons configuration interface can be mutually independent, it is possible to have grade relevance.Exemplary, at one The button arrangement interface of multiple grades can be included in the primary interface of orange financing, such as includes an entrance purchase financing circle first Face and an assets interface.Entrance purchase financing interface and assets interface can regard two button arrangement interfaces arranged side by side as. Multiple and different sub-interfaces is included respectively again in the two button arrangement interfaces.Buy in financing interface such as entrance and wrap respectively again VIP is included to deposit product details interface surely, deposit product details interface surely, rise product details interface, Zhou Zhousheng product details interface month in and month out And new hand's Zhou Zhousheng product details interface.Include depositing product assets details interface surely respectively again in assets interface, rise production money month in and month out Product details interface and Zhou Zhousheng production assets product details interface.Above-mentioned each sub-interface can also regard button arrangement interface as.Its In, button arrangement interface information can include size, the color and button arrangement circle at button arrangement interface at button arrangement interface The relevant informations such as the picture in face.
S330, according to the first button attribute information and button arrangement interface information, generate the first button arrangement file.
Optionally, the first button attribute information is adapted to according to button arrangement interface information, and according to adaptation result generation the One button arrangement file.Exemplary, two peony round buttons, diameter are included in the first button attribute information got It is 2cm.And the button arrangement interface included in button arrangement interface information is an a length of 6cm, width is rectangle circle of 4cm Face, interface color are light red.And if generating corresponding first button arrangement file according only to the first button attribute, finally give birth to Into button can be poor in button arrangement interface display effect.Therefore, it is good in order to make button have at button arrangement interface Display effect, can be adapted to the first button attribute information according to button interfaces information.For example, according to the length at button arrangement interface and Wide apaptability adjusts the size attribute information in the first button attribute information, the color adaptability tune in button arrangement interface Color attribute information in whole first button attribute information, as the round button of a diameter of 2cm is adjusted to a diameter of 1.5cm Round button, color are adjusted to yellow.First can also be pressed according to one preset ratio of length and wide setting at button arrangement interface Size attribute in button attribute information is multiplied by the preset ratio value, with accommodation button size attribute.With sample, according to by Color attribute information in the colouring information of button configuration interface and the first button attribute information, sets an adjustment colourity, according to this Adjust colourity adaptation Button Color attribute.
S340, call the first button arrangement file and run, and generates button corresponding with the first button attribute information.
Push button configuration method provided in an embodiment of the present invention, by being adapted to the first button category according to button arrangement interface information Property information, and generate corresponding first button arrangement file, so as to configure the button of user's needs, can not only realize to by The personalized dynamic setting of button, but also can effectively increase the matching degree at the button and button arrangement interface configured, make The button of configuration has good display effect at button arrangement interface, so as to improve the usage experience of user.
Example IV
Fig. 4 is a kind of flow diagram for push button configuration method that the embodiment of the present invention four provides.The present embodiment is with above-mentioned Optimized based on embodiment, in the present embodiment, step is obtained into the first button attribute information, is optimized for:When receiving During button arrangement instruction input by user, the second button arrangement file is obtained;Parse the second button arrangement file, obtain with The corresponding second button attribute information of the second button arrangement file;Based on user to the second button attribute information more Change instruction, obtain the first button attribute information.Correspondingly, the method for the present embodiment specifically includes:
S410, when receiving button arrangement input by user instruction, obtain the second button arrangement file.
In embodiments of the present invention, button arrangement instruction can be the instruction of default settings, include but not limited to machinery control System instruction (such as receive the default mechanical button of user's operation and send instruction), preset audio instruction, default video image refer to Order and/or default touching instruction etc..It should be noted that above-mentioned various instructions set in advance can be used alone, can also tie Close and use.
Wherein, the second button arrangement file can be the button dynamic configuration file downloaded from server, and button is dynamically Corresponding button attribute information is contained in configuration file.Second button arrangement file can also be the button pair in current interface The button arrangement file answered, contains press corresponding with the configured good button of current interface in the second button arrangement file The properties information of button.The present embodiment is not specifically limited the source of the second button arrangement file.
S420, the second button arrangement file of parsing, obtain the second button attribute letter corresponding with the second button arrangement file Breath.
In embodiments of the present invention, the second button arrangement file is parsed, obtains wrapping in the second button arrangement file The the second button attribute information contained.Exemplary, the second button arrangement file can be the button dynamic downloaded from server During configuration file, then from the button dynamic configuration file, button dynamic attribute information is parsed, and by the button dynamic attribute Information is as the second button attribute information.Second button arrangement file can be the corresponding button arrangement of button in current interface During file, from the button arrangement file, button attribute information corresponding with the button in current interface is parsed, as second Button attribute information.Wherein, the second button attribute information can also include:Button quantity information, button-shape information, button are big It is at least one in small information, Button Color information, button location information and button animation information.
S430, the change directive based on user to the second button attribute information, obtain the first button attribute information.
Optionally, when the second button arrangement file can be the button dynamic configuration file downloaded from server, user The attribute information of button in current interface (it can be appreciated that button arrangement interface) is unsatisfied with, at the same to from button dynamic When the button attribute information parsed in configuration file is unsatisfied with there is also part, the second button attribute information parsed is carried out Adaptation, using amended second button attribute information as the first button attribute information.Exemplary, work as prezone Two rectangular buttons are included in face, the color of two rectangular buttons is black, and the button dynamic downloaded from server is matched somebody with somebody It is comprising three buttons to put the button attribute information parsed in file (i.e. the second button arrangement file), is respectively two red The triangle button of round button and a yellow.User is to the button attribute information that is parsed from button dynamic configuration file In the button quantity that includes and shape satisfaction, but to its color it is dissatisfied when, then need in the button attribute to parsing Color attribute information is modified.Two red circular buttons are such as revised as a black round button and a blue circle Button, Green triangle shape button is revised as by Yellow triangles button, and to its size attribute information, shape attribute information, position Put attribute information and animation attributes information is not made an amendment.
Optionally, when the second button arrangement file can be the button corresponding button arrangement file in current interface, use When family is dissatisfied to the attribute information of the button in current interface, directly modify to the button attribute information of current interface, Using the button attribute information in amended current interface as the first button attribute information.Exemplary, wrapped in current interface Containing a round button, the color of the round button is grey, a diameter of 5mm, the lower left of current interface, and is configured without There is animation attributes information., then can be directly to current when user is dissatisfied to each attribute information of button in current interface The button attribute information at interface is modified.Such as the button attribute information correspondence of current interface is revised as two squares and is pressed Button, respectively positioned at the lower left corner of current interface and the lower right corner, the length of side is 8mm, and one, color is red, and one is blueness, and For the animation attributes information of its setting spring.
S440, obtain button arrangement interface information.
S450, according to the first button attribute information and button arrangement interface information, generate the first button arrangement file.
S460, call the first button arrangement file and run, and generates button corresponding with the first button attribute information.
Exemplary, Fig. 5 is that the button display effect provided in an embodiment of the present invention based on push button configuration method configuration is shown It is intended to.As shown in figure 5, left figure is original button display effect schematic diagram in button arrangement interface 510, right figure is based on this hair The push button configuration method that bright embodiment provides, the effect diagram that the button of generation is shown on button arrangement interface 510.
Push button configuration method provided in an embodiment of the present invention, by parsing second from the second button arrangement file of acquisition Button attribute information, and the first button attribute information is generated based on the modification to the second button attribute information, setting can be made First button attribute information is more in line with user demand, realizes that the personalization to button is set dynamically, without to user interface Scripted code carry out secondary development, can effectively reduce development cost, improve the interactive experience of user.
Embodiment five
Fig. 6 is a kind of structure diagram for button arrangement device that the embodiment of the present invention five provides.It is as shown in fig. 6, described Device includes:First button attribute information acquisition module 610, the first button arrangement file generating module 620 and button generation Module 630, wherein:
First button attribute information acquisition module 610, for obtaining the first button attribute information;
First button arrangement file generating module 620, for generating the first button according to the first button attribute information Configuration file;
Button generation module 630, for calling the first button arrangement file and running, generation and first button The corresponding button of attribute information.
Button arrangement device provided in an embodiment of the present invention, by obtaining the first button attribute information, according to the first button Attribute information generates the first button arrangement file, then calls the first button arrangement file and runs, generation and the first button category Property the corresponding button of information, it is possible to achieve personalized dynamic setting is carried out to the button in user interface.Due to can be according to obtaining The button attribute information got automatically generates dynamic button arrangement file, button is configured, without the script to user interface Code carries out secondary development, can effectively reduce development cost, improve the interactive experience of user, meet the button of user individual Configuration needs.
Optionally, the first button arrangement file generating module, including:
Button arrangement template acquiring unit, for obtaining button arrangement template;
First button arrangement file generating unit, for according to the first button attribute information and the button arrangement mould Plate, generates the first button arrangement file.
Optionally, the first button arrangement file generating unit, is used for:
The first button attribute information is added to the button arrangement template, generates button class;
The first button arrangement file is generated based on the button class.
Optionally, the first button arrangement file generating module, is used for:
Obtain button arrangement interface information;
According to the first button attribute information and the button arrangement interface information, the first button arrangement file is generated.
Optionally, the first button attribute information acquisition module, is used for:
When receiving button arrangement instruction input by user, the second button arrangement file is obtained;
The second button arrangement file is parsed, obtains the second button attribute corresponding with the second button arrangement file Information;
Change directive based on user to the second button attribute information, obtains the first button attribute information.
Optionally, the first button attribute information includes:Button quantity information, button-shape information, button size letter It is at least one in breath, Button Color information, button location information and button animation information.
Embodiment six
The embodiment of the present invention six provides a kind of storage medium for including computer executable instructions, and the computer can perform Instruction is used for push button configuration method when being performed by computer processor, and this method includes:
Obtain the first button attribute information;
First button arrangement file is generated according to the first button attribute information;
Call the first button arrangement file and run, generate button corresponding with the first button attribute information.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (example Such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other types Memory or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, or It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet) Calculation machine system.Second computer system can provide programmed instruction and be used to perform to the first computer.Term " storage medium " can With including may reside within diverse location (such as in different computer systems by network connection) two or more Storage medium.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as be implemented as counting Calculation machine program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer The button arrangement operation that executable instruction is not limited to the described above, can also carry out the button that any embodiment of the present invention is provided Relevant operation in collocation method.
Embodiment seven
Fig. 7 provides a kind of structure diagram of intelligent terminal for the embodiment of the present invention seven, as shown in fig. 7, the intelligent terminal It can include:Housing (not shown), memory 701, central processing unit (central processing unit, CPU) 702 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit Plate is placed in the interior volume that the housing surrounds;The CPU702 and the memory 701 are arranged on the circuit board;Institute Power circuit is stated, for each circuit or the device power supply for the intelligent terminal;The memory 701, can hold for storing Line program code;The CPU702 by read the executable program code stored in the memory 701 run with it is described The corresponding computer program of executable program code, to realize following steps:
Obtain the first button attribute information;
First button arrangement file is generated according to the first button attribute information;
Call the first button arrangement file and run, generate button corresponding with the first button attribute information.
The intelligent terminal further includes:Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio-frequency electric Road 706, loudspeaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control devicess 710, Touch-screen 712, other input/control devicess 710 and outside port 704, these components pass through one or more communication bus Or signal wire 707 communicates.
It should be understood that diagram intelligent terminal 700 is only an example of intelligent terminal, and intelligent terminal 700 Can have than more or less components shown in figure, can combine two or more components, or can be with Configured with different components.Various parts shown in figure can be including one or more signal processings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
Below just the intelligent terminal provided in this embodiment for button arrangement be described in detail, the intelligent terminal with Exemplified by mobile phone.
Memory 701, the memory 701 can be accessed by CPU702, Peripheral Interface 703 etc., and the memory 701 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU702 and deposited by Peripheral Interface 703, the Peripheral Interface 703 Reservoir 701.
I/O subsystems 709, the I/O subsystems 709 can be by the input/output peripherals in equipment, such as touch-screen 712 With other input/control devicess 710, Peripheral Interface 703 is connected to.I/O subsystems 709 can include 7091 He of display controller For controlling one or more input controllers 7092 of other input/control devicess 710.Wherein, one or more input controls Device 7092 processed receives electric signal from other input/control devicess 710 or sends electric signal to other input/control devicess 710, Other input/control devicess 710 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 7092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 712, the touch-screen 712 are the input interface and output interface between user's intelligent terminal and user, Visual output is shown to user, visual output can include figure, text, icon, video etc..
Display controller 7091 in I/O subsystems 709 receives electric signal from touch-screen 712 or is sent out to touch-screen 712 Electric signals.Touch-screen 712 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 7091 The interaction of user interface object on touch-screen 712, that is, realize human-computer interaction, the user interface being shown on touch-screen 712 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 705, are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 705 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 705 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 705 can include being used to perform The known circuit of these functions, it includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 706, is mainly used for receiving voice data from Peripheral Interface 703, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 711.
Loudspeaker 711, for the voice signal for receiving mobile phone from wireless network by RF circuits 705, is reduced to sound And play the sound to user.
Power management chip 708, the hardware for being connected by CPU702, I/O subsystem and Peripheral Interface are powered And power management.
Button arrangement device, storage medium and the intelligent terminal provided in above-described embodiment can perform institute of the embodiment of the present invention The corresponding push button configuration method provided, possesses and performs the corresponding function module of this method and beneficial effect.Not in above-mentioned implementation The ins and outs of detailed description in example, reference can be made to the push button configuration method that any embodiment of the present invention is provided.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. push button configuration method, it is characterised in that including:
    Obtain the first button attribute information;
    First button arrangement file is generated according to the first button attribute information;
    Call the first button arrangement file and run, generate button corresponding with the first button attribute information.
  2. 2. according to the method described in claim 1, it is characterized in that, described generate first according to the first button attribute information Button arrangement file, including:
    Obtain button arrangement template;
    According to the first button attribute information and the button arrangement template, the first button arrangement file is generated.
  3. 3. according to the method described in claim 2, it is characterized in that, described according to the first button attribute information and described press Button configuration template, generates the first button arrangement file, including:
    The first button attribute information is added to the button arrangement template, generates button class;
    The first button arrangement file is generated based on the button class.
  4. 4. according to the method described in claim 1, it is characterized in that, described generate first according to the first button attribute information Button arrangement file, including:
    Obtain button arrangement interface information;
    According to the first button attribute information and the button arrangement interface information, the first button arrangement file is generated.
  5. 5. according to the method described in claim 1, it is characterized in that, it is described acquisition the first button attribute information, including:
    When receiving button arrangement instruction input by user, the second button arrangement file is obtained;
    The second button arrangement file is parsed, obtains the second button attribute letter corresponding with the second button arrangement file Breath;
    Change directive based on user to the second button attribute information, obtains the first button attribute information.
  6. 6. according to any methods of claim 1-5, it is characterised in that the first button attribute information includes:Button In quantity information, button-shape information, button size information, Button Color information, button location information and button animation information It is at least one.
  7. A kind of 7. button arrangement device, it is characterised in that including:
    First button attribute information acquisition module, for obtaining the first button attribute information;
    First button arrangement file generating module, for generating the first button arrangement text according to the first button attribute information Part;
    Button generation module, for calling the first button arrangement file and running, generation is believed with the first button attribute Cease corresponding button.
  8. 8. device according to claim 7, it is characterised in that the first button arrangement file generating module, including:
    Button arrangement template acquiring unit, for obtaining button arrangement template;
    First button arrangement file generating unit, for according to the first button attribute information and the button arrangement template, Generate the first button arrangement file.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The push button configuration method as described in claim 1-6 is any is realized during row.
  10. 10. a kind of intelligent terminal, it is characterised in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, it is characterised in that the processor realizes that claim 1-6 such as appoints when performing the computer program Push button configuration method described in one.
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 true CN107992302A (en) 2018-05-04
CN107992302B 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)

Cited By (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070192718A1 (en) * 2006-02-10 2007-08-16 Freedom Scientific, Inc. Graphic User Interface Control Object Stylization
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070192718A1 (en) * 2006-02-10 2007-08-16 Freedom Scientific, Inc. Graphic User Interface Control Object Stylization
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142767A (en) * 2019-12-16 2020-05-12 华为技术有限公司 User-defined key method and device of folding device and storage medium
CN111142767B (en) * 2019-12-16 2021-06-01 华为技术有限公司 User-defined key method and device of folding device and storage medium
US11899929B2 (en) 2019-12-16 2024-02-13 Huawei Technologies Co., Ltd. Method for customizing key of foldable device, device, and storage medium
CN111427567A (en) * 2020-03-20 2020-07-17 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN111427567B (en) * 2020-03-20 2023-08-18 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof

Also Published As

Publication number Publication date
CN107992302B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN107944259A (en) Using the management-control method of startup, device and storage medium and mobile terminal
CN109101352A (en) Algorithm framework, algorithm call method, device, storage medium and mobile terminal
CN107491560A (en) Page pictures display methods, device, storage medium, server and mobile terminal
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN109428911A (en) Apparatus control method, device, terminal device and operating system
CN107844342A (en) Management-control method, device and the storage medium and mobile terminal of application program keep-alive
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
CN108416009A (en) Text searching method, device, storage medium and the mobile terminal of mobile terminal
CN107784492A (en) Information processing method, device, computer installation and computer-readable recording medium
CN106686519B (en) The method, apparatus and terminal of the stereo pairing of audio-frequence player device
CN107943771A (en) Generation method, device, processor and the computer-readable medium of response text
CN107040661A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN108920070A (en) Split screen method, apparatus, storage medium and mobile terminal based on special-shaped display screen
CN107948724A (en) Method for controlling video transmission, device and storage medium and mobile terminal
CN112541203A (en) Electrical design method and electrical design system
CN107992302A (en) A kind of push button configuration method, device, storage medium and intelligent terminal
CN110427213B (en) Method, device, equipment and storage medium for realizing intelligent configuration software
CN110333785B (en) Information processing method and device, storage medium and augmented reality equipment
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN108363574B (en) Front-end customization method and device based on SDK, terminal equipment and storage medium
CN108829712A (en) Transaction management method, apparatus, storage medium and terminal device
CN108986187A (en) A kind of implementation method, device, storage medium and the android terminal of general animation
CN109190316A (en) A kind of recommended method, device, storage medium and mobile terminal for laying article
CN106210318A (en) The method of voice broadcast information, device and mobile terminal
CN107765956B (en) User interface editing method, device, terminal 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
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.