CN107885553B - Animation loading method and device and electronic equipment - Google Patents

Animation loading method and device and electronic equipment Download PDF

Info

Publication number
CN107885553B
CN107885553B CN201711237468.2A CN201711237468A CN107885553B CN 107885553 B CN107885553 B CN 107885553B CN 201711237468 A CN201711237468 A CN 201711237468A CN 107885553 B CN107885553 B CN 107885553B
Authority
CN
China
Prior art keywords
animation
type
user interface
determining
index value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711237468.2A
Other languages
Chinese (zh)
Other versions
CN107885553A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711237468.2A priority Critical patent/CN107885553B/en
Publication of CN107885553A publication Critical patent/CN107885553A/en
Application granted granted Critical
Publication of CN107885553B publication Critical patent/CN107885553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure relates to an animation loading method, an animation loading device and electronic equipment, wherein the method comprises the following steps: if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation; if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface; loading the first type of animation on the user interface. The method and the device can realize that the animation loading of the user interface is controlled according to the index value of the interactive operation, the first type animation corresponding to the user interface is determined when the index value of the interactive operation meets the preset condition, and the first type animation is loaded on the user interface, so that background processing resources can be saved, and the battery power of the terminal device can be saved.

Description

Animation loading method and device and electronic equipment
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an animation loading method and apparatus, and an electronic device.
Background
In the related art, once the target user interface of the application detects the interaction operation (such as sliding or clicking) of the user, the preset animation is loaded to achieve a corresponding dynamic effect while the user interface is displayed, however, more background processing resources are consumed, and more battery power of the terminal device is consumed.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an animation loading method and apparatus, and an electronic device, so as to solve the disadvantages in the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided an animation loading method, including:
if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation;
if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface;
loading the first type of animation on the user interface.
In an embodiment, the determining an index value of an evaluation index of the interactive operation includes:
determining a type of the interactive operation;
determining an evaluation index of the interactive operation based on the type;
and determining an index value of the evaluation index.
In an embodiment, the method further comprises:
comparing the index value with a preset threshold value to obtain a comparison result;
and if the comparison result shows that the index value is smaller than the preset threshold value, determining that the index value meets a preset condition.
In an embodiment, the determining that the user interface corresponds to the first type of animation includes:
and inquiring a first type of animation corresponding to the user interface from a first corresponding relation table stored in advance, wherein the first corresponding relation table is used for recording the corresponding relation between the user interface and the first type of animation.
In an embodiment, the method further comprises:
if the index value is determined not to meet the preset condition, determining a second type of animation corresponding to the user interface;
loading the second type of animation on the user interface.
In an embodiment, the determining the second type of animation to which the user interface corresponds includes:
and querying a second type of animation corresponding to the user interface from a pre-stored second corresponding relation table, wherein the second corresponding relation table is used for recording the corresponding relation between the user interface and the second type of animation.
According to a second aspect of the embodiments of the present disclosure, there is provided an animation loading apparatus including:
the evaluation index determining module is used for determining an index value of an evaluation index of the interactive operation when the interactive operation aiming at the user interface is detected;
the first animation determination module is used for determining a first type of animation corresponding to the user interface when the index value is determined to meet a preset condition;
a first animation loading module for loading the first type of animation on the user interface.
In one embodiment, the evaluation index determination module includes:
the interactive type determining unit is used for determining the type of the interactive operation;
an evaluation index determination unit configured to determine an evaluation index of the interactive operation based on the type;
and an index value determination unit for determining an index value of the evaluation index.
In one embodiment, the apparatus further comprises:
the index threshold comparison module is used for comparing the index value with a preset threshold to obtain a comparison result;
and the satisfaction condition determining module is used for determining that the index value meets a preset condition when the comparison result shows that the index value is smaller than the preset threshold value.
In one embodiment, the first animation determination module includes:
and the first animation query unit is used for querying a first type of animation corresponding to the user interface from a pre-stored first corresponding relation table, and the first corresponding relation table is used for recording the corresponding relation between the user interface and the first type of animation.
In one embodiment, the apparatus further comprises:
the second animation determination module is used for determining a second type of animation corresponding to the user interface when the index value is determined not to meet the preset condition;
and the second animation loading module is used for loading the second type of animation on the user interface.
In one embodiment, the second animation determination module includes:
and the second animation query unit is used for querying a second type of animation corresponding to the user interface from a pre-stored second corresponding relation table, and the second corresponding relation table is used for recording the corresponding relation between the user interface and the second type of animation.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to perform the method of:
if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation;
if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface;
loading the first type of animation on the user interface.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when processed by a processor, implements:
if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation;
if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface;
loading the first type of animation on the user interface.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
it can be known from the foregoing embodiments that, according to the present disclosure, when an interactive operation for a user interface is detected, an index value of an evaluation index of the interactive operation is determined, and when it is determined that the index value satisfies a preset condition, a first type animation corresponding to the user interface is determined, and then the first type animation is loaded on the user interface, so that animation loading of the user interface can be controlled according to the index value of the interactive operation, and by determining the first type animation corresponding to the user interface when the index value of the interactive operation satisfies the preset condition, and loading the first type animation on the user interface, background processing resources can be saved, and battery power of a terminal device can be saved. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of animation loading in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating how an indicator value of an evaluation index of an interoperation is determined according to an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another animation loading method in accordance with an illustrative embodiment;
FIG. 4 is a flowchart illustrating how a first type of animation corresponding to the user interface is determined in accordance with an illustrative embodiment;
FIG. 5 is a flow diagram illustrating another animation loading method in accordance with an illustrative embodiment;
FIG. 6 is a flowchart illustrating how a second type of animation corresponding to the user interface is determined in accordance with an illustrative embodiment;
FIG. 7 is a diagram of an application scenario illustrating a method of animation loading in accordance with an illustrative embodiment;
FIG. 8 is a block diagram illustrating an animation loading apparatus in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating another animation loading device in accordance with an illustrative embodiment;
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
FIG. 1 is a flow diagram illustrating a method of animation loading in accordance with an illustrative embodiment; this embodiment may be used for a terminal device (e.g. a mobile phone, a tablet, a personal computer, etc.), as shown in fig. 1, the method comprising the following steps S101-S103:
s101: and if the interactive operation aiming at the user interface is detected, determining the index value of the evaluation index of the interactive operation.
In an embodiment, the User Interface may be a User Interface (User Interface) of an application (e.g., a desktop) in the terminal device.
In one embodiment, the interactive operation includes a sliding operation or a clicking operation of a terminal screen by a finger of a user.
In an embodiment, if the screen of the terminal device detects the interactive operation for the user interface, the index value of the evaluation index of the interactive operation is determined through a corresponding algorithm.
In one embodiment, the evaluation index includes a speed of finger sliding of the user, or a frequency of clicking, and the like. Accordingly, the index value may be a speed value of the user's finger sliding, or a frequency value of the click.
In an embodiment, the manner of determining the index value of the evaluation index of the interactive operation may be referred to the following embodiment shown in fig. 2, and will not be described in detail here.
S102: and if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface.
In an embodiment, after the terminal device determines the index value of the evaluation index of the interactive operation, it is determined whether the index value meets a preset condition.
In one embodiment, when the index value is determined to meet the preset condition, a first type of animation corresponding to the user interface is determined.
In one embodiment, the first type animation may be used to show complete dynamic effects, such as a cool shaking effect of an icon on a desktop of the terminal device, a real-time rotation effect of a clock pointer, and the like.
In an embodiment, the method for determining whether the index value satisfies the predetermined condition may refer to the following embodiment shown in fig. 3, which is not repeated herein.
In an embodiment, the method for determining the first type of animation corresponding to the user interface may refer to the following embodiment shown in fig. 4, which is not repeated herein.
S103: loading the first type of animation on the user interface.
In one embodiment, when a first type of animation corresponding to a user interface is determined, the first type of animation may be loaded on the user interface.
As can be seen from the above description, in the embodiment of the present disclosure, through the steps S101 to S103, when the interactive operation for the user interface is detected, the index value of the evaluation index of the interactive operation is determined, and when the index value is determined to meet the preset condition, the first type animation corresponding to the user interface is determined, and then the first type animation is loaded on the user interface, so that the animation loading of the user interface can be controlled according to the index value of the interactive operation, and by determining the first type animation corresponding to the user interface when the index value of the interactive operation meets the preset condition, and loading the first type animation on the user interface, the background processing resource can be saved, and the battery power of the terminal device can be saved.
FIG. 2 is a flow diagram illustrating how an indicator value of an evaluation index of an interoperation is determined according to an exemplary embodiment; the present embodiment is exemplarily illustrated on the basis of the embodiment shown in fig. 1, by taking how to determine the index value of the evaluation index of the interactive operation as an example. As shown in fig. 2, the determining the index value of the evaluation index of the interactive operation in step S101 may include the following steps S201 to S203:
s201: determining a type of the interactive operation;
in one embodiment, the operation mode of detecting the finger of the user on the screen of the terminal equipment can be determined as the type of the interactive operation.
In an embodiment, the type of the interaction operation may be a sliding of a finger of the user, a click of a finger of the user, or the like.
S202: determining an evaluation index of the interactive operation based on the type;
in an embodiment, after determining the type of the interactive operation, an evaluation index of the interactive operation may be determined based on the type.
For example, if the type of the interactive operation is sliding of a finger of the user, the corresponding evaluation index may be a sliding speed; if the type of the interactive operation is clicking of the user finger, the corresponding evaluation index may be clicking frequency.
S203: and determining an index value of the evaluation index.
In one embodiment, after determining the evaluation index of the interactive operation, a corresponding index value may be determined based on the evaluation index.
For example, if the evaluation index is a sliding speed, the index value of the corresponding evaluation index may be a specific numerical value of the sliding speed; if the evaluation index is the click frequency, the index value of the corresponding evaluation index may be a specific numerical value of the click frequency.
As can be seen from the above description, according to the embodiment of the present disclosure, by determining the type of the interactive operation, and determining the evaluation index of the interactive operation based on the type, the index value of the evaluation index of the interactive operation can be determined quickly and accurately, so that subsequent animation loading can be implemented, background processing resources can be saved, and the battery power of the terminal device can be saved.
FIG. 3 is a flow diagram illustrating another animation loading method in accordance with an illustrative embodiment; as shown in fig. 3, the method comprises the following steps S301-S305:
s301: and if the interactive operation aiming at the user interface is detected, determining the index value of the evaluation index of the interactive operation.
S302: and comparing the index value with a preset threshold value to obtain a comparison result.
In an embodiment, after determining the index value of the evaluation index of the interactive operation, the index value may be compared with a preset threshold to obtain a comparison result, for example, the comparison result may be: the index value is larger than or equal to a preset threshold value, or the index value is smaller than the preset threshold value.
S303: and if the comparison result shows that the index value is smaller than the preset threshold value, determining that the index value meets a preset condition.
In an embodiment, when it is determined that the index value is smaller than the preset threshold value, it may be determined that the index value satisfies a preset condition.
In an embodiment, when it is determined that the index value is smaller than the preset threshold, it may be determined that the interactive operation of the user for the user interface is slow, that is, it may be determined that the user currently wants to stay at the current user interface, and therefore, the subsequent loading of the first type animation may be implemented by determining that the index value satisfies the preset condition.
S304: and if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface.
S305: loading the first type of animation on the user interface.
Steps S301 and S304-S305 are the same as steps S101-S103 in the embodiment described in fig. 1, and are not repeated herein.
According to the technical scheme, the index value is compared with the preset threshold value to obtain the comparison result, and when the comparison result shows that the index value is smaller than the preset threshold value, the index value is determined to meet the preset condition, whether the index value meets the preset condition can be accurately judged, and then the following determination of the first type animation corresponding to the user interface and the loading of the first type animation on the user interface can be realized, background processing resources can be saved, and the battery power of the terminal device can be saved.
FIG. 4 is a flowchart illustrating how a first type of animation corresponding to the user interface is determined in accordance with an illustrative embodiment; the embodiment is based on the embodiment shown in fig. 1, and an example of how to determine the first type of animation corresponding to the user interface is given. As shown in fig. 4, the determining of the first type of animation corresponding to the user interface in step S102 may include:
s401: and inquiring a first type of animation corresponding to the user interface from a first corresponding relation table stored in advance, wherein the first corresponding relation table is used for recording the corresponding relation between the user interface and the first type of animation.
In one embodiment, the correspondence between a plurality of user interfaces and corresponding animations of the first type may be pre-stored, as shown in table one below.
In an embodiment, after the user interface is determined to be the desktop of the terminal device, the animation 1 may be swayed according to the first type of animation, i.e., the icon, determined to correspond to the desktop.
Watch 1
Figure BDA0001489264660000091
As can be seen from the above description, in the embodiment of the present disclosure, the first-type animation corresponding to the user interface is queried from the first mapping table stored in advance, so that the first-type animation corresponding to the current user interface can be determined quickly and accurately, and further, subsequent animation loading can be achieved, background processing resources are saved, and battery power of the terminal device can be saved.
FIG. 5 is a flow diagram illustrating another animation loading method in accordance with an illustrative embodiment; as shown in fig. 5, the method includes the following steps S501 to S506:
s501: and if the interactive operation aiming at the user interface is detected, determining the index value of the evaluation index of the interactive operation.
S502: if the index value is determined to meet the preset condition; if yes, execute the step
S503-S504; if not, steps S505-S506 are executed.
S503: and determining a first type of animation corresponding to the user interface.
S504: loading the first type of animation on the user interface.
Steps S501 and S503 to S504 are the same as steps S101 to S103 in the embodiment shown in fig. 1, and are not repeated.
S505: and determining a second type of animation corresponding to the user interface.
In an embodiment, when it is determined that the comparison result indicates that the index value is greater than or equal to the preset threshold, it is determined that the index value does not satisfy a preset condition.
In an embodiment, when the index value is determined not to meet the preset condition, the second type of animation corresponding to the user interface is determined.
In an embodiment, when it is determined that the index value is greater than or equal to the preset threshold, it may be determined that the interactive operation of the user for the user interface is relatively fast, that is, it may be determined that the user does not want to stay at the current user interface, and therefore, the index value is determined to not satisfy the preset condition, and the loading of the first type animation may be stopped, so that background processing resources may be saved to a certain extent, and the battery power of the terminal device may be saved.
In an embodiment, the second type animation may be used to show partial dynamic effects (e.g. only showing an animation composed of the first frame and the last frame of the first type animation, or only showing one of the preset images), such as a simple shaking effect of an icon on the desktop of the terminal device, a simple rotation effect of a clock pointer, and the like.
In an embodiment, the method for determining the second type of animation corresponding to the user interface may refer to the following embodiment shown in fig. 6, which is not repeated herein.
S506: loading the second type of animation on the user interface.
In one embodiment, when a second type of animation corresponding to the user interface is determined, the second type of animation may be loaded on the user interface.
As can be seen from the above description, in the embodiment of the present disclosure, when it is determined that the index value does not satisfy the preset condition, the second type animation corresponding to the user interface is determined, and then the second type animation is loaded on the user interface, so that animation loading of the user interface can be controlled according to the index value of the interactive operation, and by determining the second type animation corresponding to the user interface when the index value of the interactive operation does not satisfy the preset condition, and loading the second type animation on the user interface, background processing resources can be saved, and battery power of the terminal device can be saved.
FIG. 6 is a flow diagram illustrating how a first type of animation corresponding to the user interface is determined in accordance with an illustrative embodiment; the embodiment is based on the embodiment shown in fig. 5, and an example of how to determine the second type of animation corresponding to the user interface is provided. As shown in fig. 6, the determining of the second type of animation corresponding to the user interface in step S501 may include:
s601: and querying a second type of animation corresponding to the user interface from a pre-stored second corresponding relation table, wherein the second corresponding relation table is used for recording the corresponding relation between the user interface and the second type of animation.
In one embodiment, the correspondence between a plurality of user interfaces and corresponding animations of the second type may be stored in advance, as shown in table two below.
In an embodiment, after the user interface is determined to be the desktop of the terminal device, the animation 2 may be swayed according to the second type of animation, i.e. the icon, determined to correspond to the desktop.
Watch two
Figure BDA0001489264660000111
As can be seen from the above description, in the embodiment of the present disclosure, the second type animation corresponding to the user interface is queried from the second mapping table stored in advance, so that the second type animation corresponding to the current user interface can be determined quickly and accurately, and further, subsequent animation loading can be achieved, background processing resources are saved, and the battery power of the terminal device can be saved.
FIG. 7 is a diagram of an application scenario illustrating a method of animation loading in accordance with an illustrative embodiment; as shown in fig. 7, when the terminal device 710 detects an interactive operation (e.g., a sliding operation) of the user 720 with respect to the user interface 711, an index value (e.g., a sliding speed) of an evaluation index of the interactive operation is determined, and the index value is compared with a preset threshold, and when the index value is determined to be smaller than the preset threshold, the index value is determined to satisfy a preset condition, and a first type of animation (e.g., icon shaking animation 1 for loading the first type of animation on the user interface) corresponding to the user interface is determined, however, when the index value is determined to be greater than or equal to the preset threshold, the index value is determined not to satisfy the preset condition, and a second type of animation (e.g., icon shaking animation 2, which may be a simplified version of the icon shaking animation 1, and a specific form may be designed by a developer or a user according to actual needs) corresponding to the user interface is determined, to load the second type of animation on the user interface.
According to the embodiment, the index value of the evaluation index of the interactive operation is determined when the interactive operation aiming at the user interface is detected, the first type animation corresponding to the user interface is determined when the index value is determined to meet the preset condition, and then the first type animation is loaded on the user interface; and when the index value is determined not to meet the preset condition, determining a second type of animation corresponding to the user interface, and further loading the second type of animation on the user interface, so that the animation loading of the user interface can be controlled according to the index value of the interactive operation, background processing resources can be saved, and the battery power of the terminal equipment can be saved.
FIG. 8 is a block diagram illustrating an animation loading apparatus in accordance with an exemplary embodiment; as shown in fig. 8, the apparatus includes: an evaluation index determination module 110, a first animation determination module 120, and a first animation loading module 130, wherein:
an evaluation index determination module 110, configured to determine, when an interactive operation for a user interface is detected, an index value of an evaluation index of the interactive operation;
the first animation determination module 120 is configured to determine a first type of animation corresponding to the user interface when it is determined that the index value satisfies a preset condition;
a first animation loading module 130 for loading the first type of animation on the user interface.
FIG. 9 is a block diagram illustrating another animation loading device in accordance with an illustrative embodiment; the functions of the evaluation index determining module 210, the first animation determining module 240, and the first animation loading module 250 are the same as the functions of the evaluation index determining module 110, the first animation determining module 120, and the first animation loading module 130 in the embodiment described in fig. 8, and are not described herein again. As shown in fig. 9, the evaluation index determining module 210 may include:
an interaction type determining unit 211, configured to determine a type of the interaction operation;
an evaluation index determination unit 212 for determining an evaluation index of the interactive operation based on the type;
an index value determination unit 213 for determining an index value of the evaluation index.
In an embodiment, the apparatus may further include:
an index threshold comparison module 220, configured to compare the index value with a preset threshold to obtain a comparison result;
a satisfaction condition determining module 230, configured to determine that the index value satisfies a preset condition when the comparison result indicates that the index value is smaller than the preset threshold.
In an embodiment, the first animation determination module 240 may include:
the first animation query unit 241 is configured to query a first type of animation corresponding to the user interface from a first pre-stored correspondence table, where the first correspondence table is used to record a correspondence between the user interface and the first type of animation.
In an embodiment, the apparatus may further include:
the second animation determination module 260 is configured to determine a second type of animation corresponding to the user interface when it is determined that the index value does not satisfy the preset condition;
a second animation loading module 270 for loading the second type of animation on the user interface.
In an embodiment, the second animation determination module 260 may include:
the second animation query unit 261 is configured to query a second type of animation corresponding to the user interface from a second pre-stored correspondence table, where the second correspondence table is used to record a correspondence between the user interface and the second type of animation.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the animation loading methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the animation loading method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An animation loading method, comprising:
if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation;
if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface, wherein the first type of animation is used for displaying a complete dynamic effect;
loading the first type of animation on the user interface;
the method further comprises the following steps:
if the index value is determined not to meet the preset condition, determining a second type of animation corresponding to the user interface, wherein the second type of animation is used for displaying partial dynamic effects;
loading the second type of animation on the user interface.
2. The method according to claim 1, wherein the determining an index value of an evaluation index of the interactive operation comprises:
determining a type of the interactive operation;
determining an evaluation index of the interactive operation based on the type;
and determining an index value of the evaluation index.
3. The method of claim 1, further comprising:
comparing the index value with a preset threshold value to obtain a comparison result;
and if the comparison result shows that the index value is smaller than the preset threshold value, determining that the index value meets a preset condition.
4. The method of claim 1, wherein the determining that the user interface corresponds to a first type of animation comprises:
and inquiring a first type of animation corresponding to the user interface from a first corresponding relation table stored in advance, wherein the first corresponding relation table is used for recording the corresponding relation between the user interface and the first type of animation.
5. The method of claim 1, wherein the determining the second type of animation to which the user interface corresponds comprises:
and querying a second type of animation corresponding to the user interface from a pre-stored second corresponding relation table, wherein the second corresponding relation table is used for recording the corresponding relation between the user interface and the second type of animation.
6. An animation loading device, comprising:
the evaluation index determining module is used for determining an index value of an evaluation index of the interactive operation when the interactive operation aiming at the user interface is detected;
the first animation determination module is used for determining a first type of animation corresponding to the user interface when the index value is determined to meet a preset condition, and the first type of animation is used for displaying a complete dynamic effect;
a first animation loading module for loading the first type of animation on the user interface;
the device further comprises:
the second animation determination module is used for determining a second type of animation corresponding to the user interface when the index value is determined not to meet the preset condition, and the second type of animation is used for displaying partial dynamic effects;
and the second animation loading module is used for loading the second type of animation on the user interface.
7. The apparatus of claim 6, wherein the evaluation index determination module comprises:
the interactive type determining unit is used for determining the type of the interactive operation;
an evaluation index determination unit configured to determine an evaluation index of the interactive operation based on the type;
and an index value determination unit for determining an index value of the evaluation index.
8. The apparatus of claim 6, further comprising:
the index threshold comparison module is used for comparing the index value with a preset threshold to obtain a comparison result;
and the satisfaction condition determining module is used for determining that the index value meets a preset condition when the comparison result shows that the index value is smaller than the preset threshold value.
9. The apparatus of claim 6, wherein the first animation determination module comprises:
and the first animation query unit is used for querying a first type of animation corresponding to the user interface from a pre-stored first corresponding relation table, and the first corresponding relation table is used for recording the corresponding relation between the user interface and the first type of animation.
10. The apparatus of claim 6, wherein the second animation determination module comprises:
and the second animation query unit is used for querying a second type of animation corresponding to the user interface from a pre-stored second corresponding relation table, and the second corresponding relation table is used for recording the corresponding relation between the user interface and the second type of animation.
11. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to perform the method of:
if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation;
if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface, wherein the first type of animation is used for displaying a complete dynamic effect;
loading the first type of animation on the user interface;
further comprising:
if the index value is determined not to meet the preset condition, determining a second type of animation corresponding to the user interface, wherein the second type of animation is used for displaying partial dynamic effects;
loading the second type of animation on the user interface.
12. A computer-readable storage medium, on which a computer program is stored, which program, when being processed by a processor, is adapted to carry out:
if the interactive operation aiming at the user interface is detected, determining an index value of an evaluation index of the interactive operation;
if the index value is determined to meet the preset condition, determining a first type of animation corresponding to the user interface, wherein the first type of animation is used for displaying a complete dynamic effect;
loading the first type of animation on the user interface;
further comprising:
if the index value is determined not to meet the preset condition, determining a second type of animation corresponding to the user interface, wherein the second type of animation is used for displaying partial dynamic effects;
loading the second type of animation on the user interface.
CN201711237468.2A 2017-11-30 2017-11-30 Animation loading method and device and electronic equipment Active CN107885553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711237468.2A CN107885553B (en) 2017-11-30 2017-11-30 Animation loading method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711237468.2A CN107885553B (en) 2017-11-30 2017-11-30 Animation loading method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107885553A CN107885553A (en) 2018-04-06
CN107885553B true CN107885553B (en) 2021-05-18

Family

ID=61776113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711237468.2A Active CN107885553B (en) 2017-11-30 2017-11-30 Animation loading method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107885553B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device
KR102109054B1 (en) * 2013-04-26 2020-05-28 삼성전자주식회사 User terminal device for providing animation effect and display method thereof
CN104156144B (en) * 2013-05-14 2018-02-27 腾讯科技(深圳)有限公司 Electric document page-turning effect implementation method and device
US10289302B1 (en) * 2013-09-09 2019-05-14 Apple Inc. Virtual keyboard animation

Also Published As

Publication number Publication date
CN107885553A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
EP3454192B1 (en) Method and device for displaying page
US9860844B2 (en) Method and apparatus of temperature control
US11086482B2 (en) Method and device for displaying history pages in application program and computer-readable medium
CN110231901B (en) Application interface display method and device
US20190235745A1 (en) Method and device for displaying descriptive information
US10444953B2 (en) View angle switching method and apparatus
CN106354504B (en) Message display method and device
CN110262692B (en) Touch screen scanning method, device and medium
US20170316805A1 (en) Method and apparatus for adjusting playing progress of media file
CN106155703B (en) Emotional state display method and device
CN112269556A (en) Information display method, device, system, equipment, server and storage medium
CN108829475B (en) UI drawing method, device and storage medium
CN110968364A (en) Method and device for adding shortcut plug-in and intelligent equipment
CN107656694B (en) Display control method and device of user interface
US10229165B2 (en) Method and device for presenting tasks
US20160349947A1 (en) Method and device for sending message
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN107491238B (en) Display method and device of push information
CN107656616B (en) Input interface display method and device and electronic equipment
CN106447747B (en) Image processing method and device
CN105260088B (en) Information classification display processing method and device
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN107832112B (en) Wallpaper setting method and device
CN107885571B (en) Display page control method and device
CN107203315B (en) Click event processing method and device and terminal

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