Android custom animation implementation method, device, storage medium and terminal
A technology of Android system and implementation method, which is applied in the direction of instrumentation, electrical digital data processing, calculation, etc., can solve problems such as a large amount of manpower and material cost, complex construction process, and limitation of animation types
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 It is a flow chart of the implementation method of the Android system custom animation provided by Embodiment 1 of the present invention. This embodiment is applicable to the realization of the custom animation type, and the method can be implemented by the implementation device of the custom animation provided by the embodiment of the present invention. To execute, the device may be implemented by software and / or hardware, and may be integrated into the terminal.
[0036] Such as figure 1 As shown, the implementation method of the Android system custom animation includes:
[0037] S110. Acquire an animation type; wherein, the animation type includes: a displacement animation type, a scaling animation type, a rotation animation type, and a transparency animation type; the animation type further includes: a custom animation type.
[0038] Among them, the displacement animation type, scaling animation type, rotation animation type and transparency animation typ...
Embodiment 2
[0086] Embodiment 2 is a preferred embodiment provided by the present invention. In order to enable those skilled in the art to understand the technical solutions provided by the embodiments of the present invention more clearly, on the basis of the above embodiments, this preferred embodiment provides the following manners of the solutions.
[0087] The specific animation implementation method is as follows:
[0088] First define a Handler object mHandler, where the Handler class is a class used for information transmission between the sub-thread and the main thread in the Android system. The specific definition method is as follows:
[0089]
[0090] When defining the mHandler object, the @Override keyword is used to override the handleMessage method in the system Handler object. This overridden handleMessage method will process the message accordingly to achieve the display of animation effects.
[0091] In the start animation function startAnim, first send an empty mes...
Embodiment 3
[0104] figure 2 It is a schematic structural diagram of a device for implementing a custom animation provided in Embodiment 3 of the present invention. Such as figure 2 As shown, the implementation means of the custom animation includes:
[0105] The animation type acquiring module 210 is used to acquire the animation type; wherein, the animation type includes: displacement animation type, scaling animation type, rotation animation type and transparency animation type; the animation type also includes: custom animation type;
[0106] The custom animation execution module 220 is configured to execute the custom animation type by calling a predefined animation start function when the animation type is a custom animation type;
[0107] The animation effect realization module 230 is configured to realize the animation effect of the custom animation type by acquiring change information of the animation view.
[0108]The technical solution provided by the embodiment of the pres...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com