CN110109598A - A kind of animation interaction implementation method, device and electronic equipment - Google Patents
A kind of animation interaction implementation method, device and electronic equipment Download PDFInfo
- Publication number
- CN110109598A CN110109598A CN201910371053.7A CN201910371053A CN110109598A CN 110109598 A CN110109598 A CN 110109598A CN 201910371053 A CN201910371053 A CN 201910371053A CN 110109598 A CN110109598 A CN 110109598A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- control configuration
- application program
- control
- interactive animation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of animation interaction implementation method, device and electronic equipments.This method comprises: sending the acquisition instruction of control configuration file to server when detecting the open command for application program target interface;Receive the corresponding control configuration file of the application program that server is sent;When detecting the triggering command of corresponding target widget, the corresponding interactive animation information of the target widget is obtained from the control configuration file;According to the corresponding interactive animation information of the target widget, the corresponding interactive animation of the target widget is shown.Due in the embodiment of the present invention, the interactive animation information of application program is separated with the program file of application program, to which developer can adjust the interactive animation information of application program at any time, the development efficiency of application program is improved, brings good interactive experience to user.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of animation interaction implementation method, device and electronics
Equipment.
Background technique
As the performance of the electronic equipments such as computer, mobile phone improves, more and more application programs will be each in target interface
The interactive animation effect of formula various kinds is presented to user.
For the realization of animation interaction, be in the prior art the corresponding compound action of realization animation interaction is resolved into it is several
Then the combination of elemental motion is recorded in the corresponding program file of application program.Target circle of application program when the user clicks
When each control on face, client is according in the program file of application program, the corresponding animation interactive information of each control, and display is each
The corresponding interactive animation of control.
Inventor has found that at least there are the following problems for the prior art in the implementation of the present invention:
Since the program file of online application program can not be modified, when needs hand over animation in the application program
Mutually when being adjusted, developer is dynamic in the program file for modify application program firstly the need of application program is offline
After drawing the corresponding program code of interaction, then online modified application program again, need to handle a large amount of journey during modification
Sequence code, takes a long time, and reduces the development efficiency of application program.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of animation interaction implementation method, device and electronic equipment, to realize
Improve the development efficiency of application program.
In a first aspect, a kind of method that animation interaction is realized is provided, the method may include:
When detecting the open command for application program target interface, obtaining for control configuration file is sent to server
Instruction fetch;Wherein, the acquisition instruction of the control configuration file includes the mark of the application program;
The corresponding control configuration file of the application program that server is sent is received, the control configuration file is for depositing
Store up the corresponding interactive animation information of each control that interactive animation movement is executed in the application program target interface;
When detecting the triggering command of corresponding target widget, the target widget is obtained from the control configuration file
Corresponding interactive animation information;
According to the corresponding interactive animation information of the target widget, the corresponding interactive animation of the target widget is shown.
Optionally, the corresponding user's operation type of the open command of the application program target interface may include:
One of single-click operation, double click operation and slide.
Optionally, the control configuration file includes to execute the mark of each control of interactive animation movement and each
The corresponding interactive animation information of control;
The method can also include:
According to the mark of target widget in the control configuration file and the corresponding interactive animation information of the target widget,
It will be on the corresponding interactive animation information registering to the target widget of the target widget.
Optionally, the method can also include:
When detecting the out code for application program target interface, it is registered in the target widget described in deletion
The interactive animation information, and close the application program.
Optionally, before the acquisition instruction that control configuration file is sent to server, can also include:
When detecting the open command for application program target interface, judge whether store in local data buffer pool
There is the corresponding control configuration file of the application program;
If being stored with the control configuration file in local data buffer pool, the control configuration text is sent to server
The version information acquisition instruction of part;
The version information for the control configuration file that the server is sent is received, and according to the version information, judgement
The version information of the control configuration file stored in local data buffer pool is matched with the control that the server is sent
Whether the version information for setting file is consistent;
If the version information of the control configuration file stored in the local data buffer pool and the server are sent out
The version information of the control configuration file sent is inconsistent, then executes the acquisition that the control configuration file is sent to server
The step of instruction.
Second aspect provides a kind of device that animation interaction is realized, the apparatus may include:
Sending module, for sending and controlling to server when detecting the open command for application program target interface
The acquisition instruction of part configuration file;Wherein, the acquisition instruction of the control configuration file includes the mark of the application program;
Receiving module, for receiving the corresponding control configuration file of the application program of server transmission, the control
The corresponding interaction of each control that configuration file is used to store execution interactive animation movement in the application program target interface is dynamic
Draw information;
Module is obtained, for being obtained from the control configuration file when detecting the triggering command of corresponding target widget
Take the corresponding interactive animation information of the target widget;
Display module, for showing that the target widget is corresponding according to the corresponding interactive animation information of the target widget
Interactive animation.
Optionally, the corresponding user's operation type of the open command of the application program target interface may include: to click
One of operation, double click operation and slide.
Optionally, the control configuration file includes to execute the mark of each control of interactive animation movement and each
The corresponding interactive animation information of control;
Described device can also include:
Registration module, for corresponding according to the mark of target widget and the target widget in the control configuration file
Interactive animation information, will be on the corresponding interactive animation information registering to the target widget of the target widget.
Optionally, described device can also include:
Removing module, for being registered in described in deletion when detecting the out code for application program target interface
The interactive animation information in the target widget, and close the application program.
Optionally, the sending module may include:
Judging submodule, for judging local data when detecting the open command for application program target interface
Whether the application program corresponding control configuration file is stored in buffer pool;
Acquisition instruction sending submodule, if for being stored with the control configuration file in local data buffer pool, to
Server sends the version information acquisition instruction of the control configuration file;
Version information judging submodule, for receiving the version letter for the control configuration file that the server is sent
Breath, and according to the version information, judge version information and the institute of the control configuration file stored in local data buffer pool
Whether the version information for stating the control configuration file of server transmission is consistent;
Acquisition instruction sending submodule, if the control configuration file for being stored in the local data buffer pool
The version information of version information and the control configuration file that the server is sent is inconsistent, then executes and send to server
The step of acquisition instruction of the control configuration file.
The third aspect provides a kind of electronic equipment, including processor, communication interface, memory and communication bus,
In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes following method and step:
When detecting the open command for application program target interface, obtaining for control configuration file is sent to server
Instruction fetch;Wherein, the acquisition instruction of the control configuration file includes the mark of the application program;
The corresponding control configuration file of the application program that server is sent is received, the control configuration file is for depositing
Store up the corresponding interactive animation information of each control that interactive animation movement is executed in the application program target interface;
When detecting the triggering command of corresponding target widget, the target widget is obtained from the control configuration file
Corresponding interactive animation information;
According to the corresponding interactive animation information of the target widget, the corresponding interactive animation of the target widget is shown.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Computer program is stored in storage media, the computer program realizes that any of the above-described animation interaction is realized when being executed by processor
Method and step.
5th aspect, the embodiment of the invention also provides a kind of computer program products comprising instruction, when it is being calculated
When being run on machine, so that computer executes any of the above-described animation interaction implementation method.
The embodiment of the present invention provides a kind of animation interaction implementation method, device and electronic equipment, when detecting for application
When the open command at program object interface, the acquisition instruction of control configuration file is sent to server;Receive what server was sent
The corresponding control configuration file of the application program;When detecting the triggering command of corresponding target widget, match from the control
It sets and obtains the corresponding interactive animation information of the target widget in file;According to the corresponding interactive animation letter of the target widget
Breath, shows the corresponding interactive animation of the target widget.Due in the embodiment of the present invention, by the interactive animation information of application program
It separates with the program file of application program, so that developer can adjust the interactive animation information of application program at any time, improves
The development efficiency of application program, to user brings good interactive experience.
Certainly, it implements any of the products of the present invention or method is not necessarily required to reach all the above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art, can be with root in the case where not paying the precedent for creating labour
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is that one kind provided in an embodiment of the present invention shows the method flow diagram for showing information in video;
Fig. 2 is a kind of system construction drawing provided in an embodiment of the present invention;
Fig. 3 is that one kind provided in an embodiment of the present invention shows the structure drawing of device for showing information in video;
Fig. 4 is the structure chart of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without making creative work it is acquired it is all its
His embodiment, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of animation interaction implementation method, device and electronic equipment, with realize to user with
Carry out good interactive experience.
Below by specific embodiment, the present invention is described in detail.
As shown in Figure 1, a kind of animation interaction implementation method, this method provided by the embodiment of the present invention can be applied to electricity
Sub- equipment, electronic equipment can be the mobile terminals such as mobile phone or tablet computer, be also possible to personal computer (Personal
Computer, PC), the mobile terminals such as television set.
This method may include steps of:
S101 sends control configuration text to server when detecting the open command for application program target interface
The acquisition instruction of part.
Wherein, the acquisition instruction of control configuration file may include the mark of application program.
In practical applications, the interface for human-computer interaction usually can be all provided in application program, it is man-machine in order to improve
Interactive interest can be provided with interactive animation in some interfaces (i.e. target interface).Correspondingly, may include in application program
Multiple controls for being provided with interactive animation movement.Wherein, above-mentioned control can be the corresponding control of certain button in target interface,
It can be the corresponding control of container comprising multiple buttons.Each button corresponds to a kind of function of application program, for example, certain has
The application program of chat feature includes button 1, button 2 and container 3 in the target interface of the application program.When the user clicks
When container 3, electronic equipment can show inside container 3 each button for including, such as button 4, button 5 within a certain period of time,
Wherein, button 4 is released the button for phonetic function, i.e. user A is by clicking button 4, it can be achieved that being the use of friend relation with user A
Voice communication between the B of family.
Wherein, when the user clicks container 3 when, within a certain period of time, the container 3 in application program target interface shows gradually
The process for each button that container 3 includes out, referred to as interactive animation.
It is that each application program is correspondingly arranged a control configuration file in the present embodiment.Wherein, control configuration file
In have recorded execute interactive animation movement control mark and the corresponding interactive animation information of each control.And by the control
Configuration file is stored in the server with store function, for example, cloud server.Technical staff can be stored by modification
The corresponding interactive animation information of each control in control configuration file in the server, to realize to applying program object interface
The update of upper each achievable animation effect of control.
When implementing, when electronic equipment detects the open command for application program target interface, no matter local number
According to the corresponding control configuration file of the application program whether is stored in cache pool, electronic equipment can directly be sent to server
The acquisition instruction of the corresponding control configuration file of the application program, to guarantee that the control configuration file got is latest edition
Control configuration file.
In a specific embodiment of the invention, electronic equipment can be by judging whether deposit in local data cache pond
The corresponding control configuration file of the application program is contained, thus further determining whether to send control configuration file to server
Acquisition instruction.Specifically, electronic equipment can also include before the acquisition instruction for sending control configuration file to server
Following steps:
Step 1: when detecting the open command for application program target interface, judge in local data buffer pool
Whether application program corresponding control configuration file is stored with.
When implementing, when the user clicks in electronic equipment when the target interface of application program, electronic equipment can then be detected
For the open command of the application program target interface.Then, electronic equipment can be searched in local data cache pond, if
It is stored with the corresponding control configuration file of the application program, and executes step 2.
Step 2: if being stored with control configuration file in local data buffer pool, control configuration text is sent to server
The version information acquisition instruction of part.
In practical applications, since the corresponding control configuration file of the application program stored in server is the application program
The control configuration file of corresponding latest edition, and when updating the corresponding configuration file of each application program in server every time,
Version update notification can't be sent to the electronic equipment for being equipped with the application program.
When implementing, when electronic equipment opens the application program, it is necessary to judge to store in local data buffer pool
The version of control configuration file whether be the control configuration file latest edition, i.e., send control configuration file to server
Version information acquisition instruction.If the version of the control configuration file stored in local data buffer pool is the control configuration file
Latest edition, then electronic equipment directly obtains the control configuration file of the application program from local data buffer pool;Otherwise, electric
Sub- equipment then obtains the latest edition of the control configuration file from server, so that user can timely experience the application
The latest function of the control of program.
Step 3: receiving the version information for the control configuration file that server is sent, and according to the version information, judges this
The version for the control configuration file that the version information and server of the control configuration file stored in ground Data buffer are sent is believed
It whether consistent ceases.
Wherein, the version information of control configuration file is the version identifier of control configuration file, for example, control configuration file
Start context, version name etc. all can be used for distinguishing the mark of the different editions of control configuration file, the present invention is implemented
It is not specifically limited in example.
When implementing, electronic equipment is according to the latest edition mark of the control configuration file stored in the server received
Know, the version identifier of the control configuration file stored in latest edition mark and local data buffer pool is compared.If
The version for the control configuration file that the version identifier and server of the control configuration file stored in local data buffer pool are sent
It identifies identical, illustrates that the control configuration file stored in local data buffer pool is exactly the latest edition of the control configuration file,
Then electronic equipment directly obtains the control configuration file of the application program from local data buffer pool, and executes step S103;
Otherwise, step 4 is executed.
Step 4: if the control that the version information of the control configuration file stored in local data buffer pool and server are sent
The version information of part configuration file is inconsistent, then executes the step of sending the acquisition instruction of control configuration file to server.
When implementing, if what the version identifier of the control configuration file stored in local data buffer pool and server were sent
The version identifier of control configuration file is not identical, then illustrates that the control configuration file stored in local data buffer pool is not the control
The latest edition of part configuration file.Therefore, in order to provide user to the interactive experience of the application program, electronic equipment then need from
The latest edition of the control configuration file is obtained in server, that is, executes the acquisition instruction that control configuration file is sent to server
The step of.
Wherein, it may include the complete content for obtaining control configuration file in the acquisition instruction of control configuration file, it can also
To include the more new content for obtaining control configuration file.
Correspondingly, may include the complete content for obtaining control configuration file in the acquisition instruction of control configuration file, it is
Refer to that electronic equipment can all get the full content of the control configuration file of the latest edition stored in server, then again
Execute subsequent step.Similarly, it may include the more new content for obtaining control configuration file in the acquisition instruction of control configuration file,
Refer to the transmission rate of the data for quickening, the control configuration for the latest edition that electronic equipment can be stored only from server
In file, obtain different from the control configuration file stored in local data buffer pool in the control configuration file of latest edition
Information.
Optionally, the mark of above-mentioned application program can be any mark for being used to distinguish application program, for example, using
Program name, application program ID etc., are not specifically limited in the embodiment of the present application.
It is understood that the corresponding user's operation type of the open command of above-mentioned application program target interface, can wrap
It includes: one of single-click operation, double click operation and slide.Open command may be preset gesture operation, the application
Embodiment is without limitation.
S102 receives the corresponding control configuration file of application program that server is sent.
Wherein, control configuration file is that each of interactive animation movement is executed in the application program target interface for storing
The corresponding interactive animation information of a control.
S103 obtains target widget pair when detecting the triggering command of corresponding target widget from control configuration file
The interactive animation information answered.
In an implementation, when being operated in above-mentioned application program target interface when the user clicks, electronic equipment be can detecte
To the triggering command for being directed to a certain control (i.e. target widget), and according to the triggering command, the control that is obtained from above-mentioned steps
In configuration file, the corresponding interactive animation information of target widget is obtained.
Wherein, the interactive animation information of target widget is to show that the target widget corresponds to the control parameter information of animation.Example
Such as, the displayable animation of certain button gradually becomes colourless from colour developing for button, then the interactive animation information of the target is the button
It is become colorless the parameter informations such as the time parameter information of needs, the execution directional information of animation by display.
Optionally, the corresponding user's operation type of above-mentioned triggering command can be single-click operation, double click operation and sliding behaviour
One of work is a variety of.
In a specific embodiment of the invention, animation interaction implementation method, can with the following steps are included:
According to the mark of target widget in control configuration file and the corresponding interactive animation information of the target widget, by mesh
It marks on the corresponding interactive animation information registering to target widget of control.
In an implementation, it after electronic equipment receives the control configuration file that server is sent, can not usually directly read
Various information in the control configuration file needs to solve above-mentioned control configuration file by preset file parsing tool
Analysis, and then the mark and the corresponding interactive animation information of each control of each control in the control configuration file are got, it then, will
The control mark and the corresponding interactive animation information of each control and corresponding relationship of above-mentioned acquisition are stored in local control and match
It sets in file, that is, realizing will be on the corresponding interactive animation information registering to target widget of target widget.
Further, step S103 obtains the corresponding interactive animation information of target widget from control configuration file, specifically
It may comprise steps of:
From control and the corresponding relationship of interactive animation information, the corresponding interactive animation information of target widget is obtained.
S104, according to the corresponding interactive animation information of target widget, the corresponding interactive animation of displaying target control.
The embodiment of the present invention provides a kind of animation interaction implementation method, is directed to opening for application program target interface when detecting
When opening instruction, control configuration file acquisition instruction is sent to server;Receive the corresponding control of application program that server is sent
Configuration file;When detecting the triggering command of corresponding target widget, it is corresponding that target widget is obtained from control configuration file
Interactive animation information;According to the corresponding interactive animation information of target widget, the corresponding interactive animation of displaying target control.
Since in the embodiment of the present invention, the interactive animation information of application program being separated with the program file of application program,
To which developer can adjust the interactive animation information of application program at any time, the development efficiency of application program is improved, to use
Bring good interactive experience in family.
In a specific embodiment of the invention, in step S104 according to the corresponding interactive animation information of target widget,
After the corresponding interactive animation of displaying target control, it may comprise steps of:
When detecting the out code for application program target interface, it is dynamic to delete the interaction being registered in target widget
Information is drawn, and closes application program.
When implementing, closed in the target interface after the control of application program when the user clicks, electronic equipment can then be examined
Measure out code for this application.After electronic equipment receives above-mentioned out code, electronic equipment will be local
The interactive animation information deletion being registered in target widget in control configuration file, simultaneously closes off the application program.
In embodiments of the present invention, the application program in client every time detect user input out code it
Afterwards, the interactive animation information being registered in target widget is timely deleted to mention to save the memory space of electronic equipment
The high processing speed of application program.
It in a specific embodiment of the invention, can also include each in the corresponding control configuration file of application program
The corresponding prompt animation information of control.And it is dynamic that the corresponding interaction of target widget is obtained in above-mentioned steps S103 control configuration file
Information is drawn, or in step S104 according to the corresponding interactive animation information of target widget, the corresponding interactive animation of displaying target control
Later, from control configuration file, the corresponding prompt animation information of the target widget is obtained.It is then possible to by the prompt animation
On information registering to the target widget, and according to the prompt animation information, the corresponding prompt information frame of the target widget is shown.
For example, in certain application program with chat feature, in the target interface of the application program comprising button 1, press
Button 2 and container 3.When the user clicks when container 3, electronic equipment can show include inside container 3 each within a certain period of time
Button, such as button 4, button 5, wherein button 4 is released the button for phonetic function, i.e. user A by click button 4, it can be achieved that
It is the voice communication between the user B of friend relation with user A.Later, in user A and user B communication process, target circle
Can be according to preset duration on face, the prompting frame of the corresponding animation of the currently performed control of display one, for example, in target interface
The prompting frame of primary " active user is in voice communication " can be shown with 5 seconds.Preferably interaction body is brought to user as a result,
It tests.
It is clearer in order to describe, below from being wrapped in different levels and each of which level inside application program in electronic equipment
The angle of the module contained, to explain how a kind of animation interaction implementation method provided by the invention is realized, as shown in Figure 2.
In practical applications, three layers can be divided into inside some application program with animation effect in electronic equipment:
Animation executing subject layer (boundary layer), cartoon control and base animation realize bottom;Wherein, animation executing subject layer is electronics
Directly and interact one layer of user, contain the application program in the animation executing subject layer may be implemented each of animation to equipment
Control.Cartoon control is the logical process layer to data service, wherein can also include that animation is external in the cartoon control
Interface layer and animation are managed collectively layer.Dynamic effect realizes that bottom may include the basic module and common group for realizing each base animation
Close animation, wherein each basic module can realize certain base animation, for example, amplification animation is to realize mesh
Mark the animation of control amplification animated function.It at least may include two base animation combinations in general combination animation.
For example, including displacement base animation and amplification base animation in general composite module " displacement+amplification " module.
When implementing, when the user clicks in electronic equipment when the target interface of certain application program, electronic equipment can then be detected
To the open command for being directed to the application program target interface.Then, electronic equipment sends a control configuration to cloud server
File acquisition instruction.After electronic equipment receives the control configuration file of the application program, to the control configuration file into
Row parsing is converted into the file format that electronic equipment can identify, and the control configuration file after the parsing is sent out
Give dynamic effect configuration management center.Meanwhile electronic equipment checks all controls for including in target interface, when a certain control
Part will execute in configuration file equipped with specified animation, then the corresponding interactive animation information registering of the control that will acquire arrives this
On control, and a registration dependent event notice is sent to dynamic effect event notice center, dependent event includes executing animation to start
It notifies, is notified in execution, end notification.When the user clicks when some control in the application program target interface, animation is executed
Body layer can detecte the triggering command for a certain control (i.e. target widget), and according to the triggering command, unite to dynamic effect
One management level send a response events request.It is identified in the request comprising target widget.Dynamic effect unified management layer is according to reception
To response events request in target widget mark, judge to execute the target widget and identify whether corresponding control module is group
Mold block.If composite module, is then realized in the general composite module in bottom from animation and call the execution target widget mark
Know corresponding general composite module, completes the display of the corresponding interactive animation of the target widget.If dynamic effect unified management layer judgement
It executes the target widget and identifies corresponding control module as basic module, for example, above-mentioned displacement animation, amplification animation
Deng, then it is realized from animation and the execution target widget is called to identify corresponding basic module in the above-mentioned basic module in bottom,
Complete the display of the corresponding interactive animation of the target widget.
The embodiment of the present invention provides a kind of animation interaction implementation method, device and electronic equipment, when detecting for application
When the open command at program object interface, the acquisition instruction of control configuration file is sent to server;Receive what server was sent
The corresponding control configuration file of application program;When detecting the triggering command of corresponding target widget, from control configuration file
Obtain the corresponding interactive animation information of target widget;According to the corresponding interactive animation information of target widget, displaying target control pair
The interactive animation answered.Due in the embodiment of the present invention, by the interactive animation information of application program and the program file of application program
Separation, so that developer can adjust the interactive animation information of application program at any time, improves the development efficiency of application program,
Good interactive experience is brought to user.
Corresponding with embodiment of the method, the embodiment of the invention also provides a kind of animation interaction realization device, the devices
It can be applied to electronic equipment.
Fig. 3 is the structure chart of animation provided in an embodiment of the present invention interaction realization device, and described device includes:
Sending module 301, for being sent to server when detecting the open command for application program target interface
The acquisition instruction of control configuration file;Wherein, the acquisition instruction of the control configuration file includes the mark of the application program;
Receiving module 302, for receiving the corresponding control configuration file of the application program of server transmission, control is matched
File is set for storing the corresponding interactive animation information of each control for executing interactive animation movement in application program target interface;
Module 303 is obtained, for being obtained from control configuration file when detecting the triggering command of corresponding target widget
The corresponding interactive animation information of the target widget;
Display module 304, for according to the corresponding interactive animation information of target widget, the corresponding interaction of displaying target control
Animation.
In embodiments of the present invention, the corresponding user's operation type of the open command of above-mentioned application program target interface can be with
It include: one of single-click operation, double click operation and slide.
In embodiments of the present invention, control configuration file may include execute interactive animation movement control mark, with
And the corresponding interactive animation information of each control;
Above-mentioned equipment can also include:
Registration module, for according to the mark of target widget in control configuration file and the corresponding interaction of the target widget
Animation information, will be on the corresponding interactive animation information registering to target widget of target widget.
In embodiments of the present invention, above-mentioned apparatus can also include:
Removing module, for when detecting the out code for application program target interface, deletion to be registered in target
Interactive animation information on control, and close application program.
In embodiments of the present invention, above-mentioned sending module may include:
Judging submodule, for judging local data when detecting the open command for application program target interface
Whether application program corresponding control configuration file is stored in buffer pool;
Acquisition instruction sending submodule, if for being stored with control configuration file in local data buffer pool, to service
The version information acquisition instruction of device transmission control configuration file;
Version information judging submodule, the version information of the control configuration file for receiving server transmission, and according to
The version information judges the control that the version information of the control configuration file stored in local data buffer pool and server are sent
Whether the version information of configuration file is consistent;
Acquisition instruction sending submodule, if the version information of the control configuration file for being stored in local data buffer pool
It is inconsistent with the version information of the control configuration file of server transmission, then it executes to server and sends obtaining for control configuration file
The step of instruction fetch.
It is provided in a kind of animation interaction realization device in the embodiment of the present invention, when detecting for application program target interface
Open command when, to server send control configuration file acquisition instruction;It is corresponding to receive the application program that server is sent
Control configuration file;When detecting the triggering command of corresponding target widget, target widget is obtained from control configuration file
Corresponding interactive animation information;According to the corresponding interactive animation information of target widget, the corresponding interactive animation of displaying target control.
Due to the interactive animation information of application program being separated with the program file of application program, to develop in the embodiment of the present invention
Personnel can adjust the interactive animation information of application program at any time, improve the development efficiency of application program, bring to user good
Good interactive experience.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 4, include processor 401, communication interface 402,
Memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are complete by communication bus 404
At mutual communication,
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes following steps:
When detecting the open command for application program target interface, obtaining for control configuration file is sent to server
Instruction fetch;Wherein, the acquisition instruction of control configuration file includes the mark of application program;
The corresponding control configuration file of application program that server is sent is received, control configuration file applies journey for storing
The corresponding interactive animation information of each control of interactive animation movement is executed in sequence target interface;
When detecting the triggering command of corresponding target widget, the corresponding friendship of target widget is obtained from control configuration file
Mutual animation information;
According to the corresponding interactive animation information of target widget, the corresponding interactive animation of displaying target control.
Specific implementation and relevant explanation content about each step of this method may refer to above-mentioned method shown in FIG. 1
Embodiment, this will not be repeated here.
In addition, processor 401 executes the program stored on memory 403 and other realities using setting method for realizing
Existing mode, it is identical as implementation mentioned by preceding method embodiment part, it also repeats no more here.
The communication bus of above-mentioned terminal can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..
Only to be indicated with a thick line in figure, it is not intended that an only bus or a type of bus convenient for indicating.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (FieldProgrammable Gate Array, letter
Claim FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment
The animation interaction implementation method stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any animation interaction implementation method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (11)
1. a kind of animation interaction implementation method, which is characterized in that the described method includes:
When detecting the open command for application program, the acquisition instruction of control configuration file is sent to server;Wherein,
The acquisition instruction of the control configuration file includes the mark of the application program;
The corresponding control configuration file of the application program that server is sent is received, the control configuration file is for being stored in
The corresponding interactive animation information of each control of interactive animation movement is executed in the application program;
The corresponding interactive animation information of each control according to the control configuration file, shows interactive animation.
2. the method according to claim 1, wherein each control according to the control configuration file
The step of corresponding interactive animation information of part, display interactive animation, comprising:
When detecting the triggering command of corresponding target widget, each control for including from the control configuration file is corresponding
Interactive animation information in obtain the corresponding interactive animation information of the target widget;
According to the corresponding interactive animation information of the target widget, the corresponding interactive animation of the target widget is shown.
3. the method according to claim 1, wherein the control configuration file includes to execute interactive animation movement
Each control mark and the corresponding interactive animation information of each control;
It is described after the step of receiving the application program corresponding control configuration file that server is sent, this method is also wrapped
It includes:
It, will be described according to the mark of each control in the control configuration file and the corresponding interactive animation information of each control
The corresponding interactive animation information of each control is registered to respectively on each control.
4. according to the method described in claim 3, it is characterized in that, this method further include:
When detecting the out code for the application program, deletes and execute interactive animation movement in the application program
The interactive animation information registered on control, and close the application program.
5. the method according to claim 1, wherein in the acquisition for sending control configuration file to server
Before the step of instruction, this method further include:
When detecting the open command for application program, judge whether to be stored in local data buffer pool described using journey
The corresponding control configuration file of sequence;
If being stored with the control configuration file in the local data buffer pool, the application program in server is obtained
The version information of corresponding control configuration file;
If version information and the institute of the corresponding control configuration file of the application program stored in the local data buffer pool
The version information for stating the corresponding control configuration file of the application program in server is inconsistent, then executes and send to server
Otherwise the step of acquisition instruction of the control configuration file, executes each control according to the control configuration file
The step of corresponding interactive animation information, display interactive animation.
6. a kind of animation interaction realization device, which is characterized in that described device includes:
Sending module, for sending control to server and matching when detecting the open command for application program target interface
Set the acquisition instruction of file;Wherein, the acquisition instruction of the control configuration file includes the mark of the application program;
Receiving module, for receiving the corresponding control configuration file of the application program of server transmission, the control configuration
File is used to store the corresponding interactive animation letter of each control that interactive animation movement is executed in the application program target interface
Breath;
Module is obtained, for obtaining institute from the control configuration file when detecting the triggering command of corresponding target widget
State the corresponding interactive animation information of target widget;
Display module, for showing the corresponding friendship of the target widget according to the corresponding interactive animation information of the target widget
Mutual animation.
7. device according to claim 6, which is characterized in that the open command of the application program target interface is corresponding
User's operation type includes: one of single-click operation, double click operation and slide.
8. device according to claim 6, which is characterized in that the control configuration file includes to execute interactive animation movement
Each control mark and the corresponding interactive animation information of each control;
Described device further include:
Registration module, for according to the mark of target widget in the control configuration file and the corresponding interaction of the target widget
Animation information, will be on the corresponding interactive animation information registering to the target widget of the target widget.
9. device according to claim 6, which is characterized in that described device further include:
Removing module, it is described for being registered in described in deletion when detecting the out code for application program target interface
The interactive animation information in target widget, and close the application program.
10. device according to claim 6, which is characterized in that the sending module, comprising:
Judging submodule, for when detecting the open command for application program target interface, judging that local data buffers
Whether the application program corresponding control configuration file is stored in pond;
Acquisition instruction sending submodule, if for being stored with the control configuration file in local data buffer pool, to service
Device sends the version information acquisition instruction of the control configuration file;
Version information judging submodule, for receiving the version information for the control configuration file that the server is sent, and
According to the version information, judge the control configuration file stored in local data buffer pool version information and the service
Whether the version information for the control configuration file that device is sent is consistent;
Acquisition instruction sending submodule, if the version of the control configuration file for being stored in the local data buffer pool
Information and the version information for the control configuration file that the server is sent are inconsistent, then execute to described in server transmission
The step of acquisition instruction of control configuration file.
11. a kind of electronic equipment, which is characterized in that the terminal includes processor, communication interface, memory and communication bus,
Wherein, the processor, the communication interface, the memory complete mutual communication by the communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on the memory, realizes any method step of claim 1-5
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910371053.7A CN110109598A (en) | 2019-05-06 | 2019-05-06 | A kind of animation interaction implementation method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910371053.7A CN110109598A (en) | 2019-05-06 | 2019-05-06 | A kind of animation interaction implementation method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110109598A true CN110109598A (en) | 2019-08-09 |
Family
ID=67488304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910371053.7A Pending CN110109598A (en) | 2019-05-06 | 2019-05-06 | A kind of animation interaction implementation method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110109598A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502410A (en) * | 2019-08-26 | 2019-11-26 | 中国人民解放军91550部队 | User terminal state real-time information display method and system based on plug-in unit |
CN110727383A (en) * | 2019-09-18 | 2020-01-24 | 北京百度网讯科技有限公司 | Touch interaction method and device based on small program, electronic equipment and storage medium |
CN112286607A (en) * | 2020-10-27 | 2021-01-29 | 北京奇艺世纪科技有限公司 | View control method and device |
CN112363654A (en) * | 2020-11-27 | 2021-02-12 | 歌尔科技有限公司 | Display control method of wearable device, wearable device and storage medium |
CN112419458A (en) * | 2020-11-20 | 2021-02-26 | 青岛以萨数据技术有限公司 | User interaction method, server, medium and system based on android animation |
CN112835666A (en) * | 2021-02-03 | 2021-05-25 | 广东中兴新支点技术有限公司 | Method, system, device and storage medium for realizing interaction dynamic of desktop control |
CN112955868A (en) * | 2019-12-18 | 2021-06-11 | 深圳市大疆创新科技有限公司 | Software extension method, terminal device, movable platform, load and storage medium |
CN114168878A (en) * | 2021-11-23 | 2022-03-11 | 上海鸿米信息科技有限责任公司 | Dynamic effect playing method, device, equipment, storage medium and program product |
CN117608737A (en) * | 2023-12-04 | 2024-02-27 | 重庆赛力斯新能源汽车设计院有限公司 | Control animation realization method and device in application, electronic equipment and storage medium |
WO2024114722A1 (en) * | 2022-11-30 | 2024-06-06 | 北京字跳网络技术有限公司 | Animation playing method and apparatus, and electronic device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203372A (en) * | 2016-03-18 | 2017-09-26 | 百度在线网络技术(北京)有限公司 | Control shows method and device |
CN107203389A (en) * | 2016-03-18 | 2017-09-26 | 百度在线网络技术(北京)有限公司 | Control shows method and device |
CN108763311A (en) * | 2018-04-24 | 2018-11-06 | 广州视源电子科技股份有限公司 | Interface display method and device, intelligent interactive panel and storage medium |
-
2019
- 2019-05-06 CN CN201910371053.7A patent/CN110109598A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203372A (en) * | 2016-03-18 | 2017-09-26 | 百度在线网络技术(北京)有限公司 | Control shows method and device |
CN107203389A (en) * | 2016-03-18 | 2017-09-26 | 百度在线网络技术(北京)有限公司 | Control shows method and device |
CN108763311A (en) * | 2018-04-24 | 2018-11-06 | 广州视源电子科技股份有限公司 | Interface display method and device, intelligent interactive panel and storage medium |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502410A (en) * | 2019-08-26 | 2019-11-26 | 中国人民解放军91550部队 | User terminal state real-time information display method and system based on plug-in unit |
CN110727383A (en) * | 2019-09-18 | 2020-01-24 | 北京百度网讯科技有限公司 | Touch interaction method and device based on small program, electronic equipment and storage medium |
CN110727383B (en) * | 2019-09-18 | 2024-05-28 | 北京百度网讯科技有限公司 | Touch interaction method and device based on small program, electronic equipment and storage medium |
CN112955868A (en) * | 2019-12-18 | 2021-06-11 | 深圳市大疆创新科技有限公司 | Software extension method, terminal device, movable platform, load and storage medium |
CN112286607A (en) * | 2020-10-27 | 2021-01-29 | 北京奇艺世纪科技有限公司 | View control method and device |
CN112286607B (en) * | 2020-10-27 | 2023-09-08 | 北京奇艺世纪科技有限公司 | View control method and device |
CN112419458A (en) * | 2020-11-20 | 2021-02-26 | 青岛以萨数据技术有限公司 | User interaction method, server, medium and system based on android animation |
CN112363654A (en) * | 2020-11-27 | 2021-02-12 | 歌尔科技有限公司 | Display control method of wearable device, wearable device and storage medium |
CN112835666A (en) * | 2021-02-03 | 2021-05-25 | 广东中兴新支点技术有限公司 | Method, system, device and storage medium for realizing interaction dynamic of desktop control |
CN114168878A (en) * | 2021-11-23 | 2022-03-11 | 上海鸿米信息科技有限责任公司 | Dynamic effect playing method, device, equipment, storage medium and program product |
WO2024114722A1 (en) * | 2022-11-30 | 2024-06-06 | 北京字跳网络技术有限公司 | Animation playing method and apparatus, and electronic device and storage medium |
CN117608737A (en) * | 2023-12-04 | 2024-02-27 | 重庆赛力斯新能源汽车设计院有限公司 | Control animation realization method and device in application, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110109598A (en) | A kind of animation interaction implementation method, device and electronic equipment | |
US20190012142A1 (en) | Device and method for performing functions | |
CN106453053B (en) | Group message display methods and device | |
CN110417988B (en) | Interface display method, device and equipment | |
CN105867751B (en) | Operation information processing method and device | |
CN107077292A (en) | Clip and paste information providing method and device | |
WO2018045562A1 (en) | Method and apparatus for associating notification messages, and mobile terminal | |
US20150205963A1 (en) | Method and device for extracting message format | |
CN106778117B (en) | Permission open method, apparatus and system | |
CN107391768B (en) | Webpage data processing method, device and equipment and computer readable storage medium | |
CN103902056B (en) | Dummy keyboard input method, equipment and system | |
CN103927081A (en) | Method and device for processing notification events | |
CN109814801A (en) | Using login method, device, terminal and storage medium | |
CN108021642A (en) | Application program recommends method, apparatus, mobile terminal and storage medium | |
CN108415657B (en) | Message sending method, device, medium and electronic equipment | |
CN109446832A (en) | A kind of screenshotss method and device | |
CN105930536A (en) | Method and device for creating indexes and method and device for jumping pages | |
CN110347458A (en) | Button control display method and device, storage medium and interactive intelligent panel | |
CN105493018A (en) | Independent hit testing for touchpad manipulations and double-tap zooming | |
WO2015002852A1 (en) | Process flow infrastructure and configuration interface | |
CN107632751B (en) | Information display method and device | |
CN106133780A (en) | Terminal use's performance evaluation | |
CN109901836A (en) | Display methods, device and the client device of information flow | |
CN107391734A (en) | Picture display method and device, electronic equipment and readable storage medium | |
CN109683726B (en) | Character input method, character input device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190809 |
|
RJ01 | Rejection of invention patent application after publication |