Realization method, device and terminal of dynamic deformation switch assembly
A switch component and dynamic deformation technology, applied in the computer field, can solve the problems that the interaction design of the application software interface cannot be both novel and practical, cannot leave a deep impression on the user, and improve application satisfaction.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] The embodiment of the present invention provides a method for realizing a dynamic deformation switch assembly, such as figure 1 As shown, the method includes:
[0065] Step S101: receiving an instruction from a user to activate the switch assembly.
[0066] For this embodiment, the switch component is a dynamic deformation switch component that can realize the function of opening or closing a certain application software interface, and the switch component has two target states during the dynamic deformation process, one is the open state, and the other is the Disabled. The instruction is used to trigger the switch assembly to switch from a current target state to another target state, for example, switch from an open state to a closed state, or switch from a closed state to an open state.
[0067] Step S102: Responding to the instruction, acquire the current coordinates and the change termination coordinates of the graphic displayed by the switch component; acquire p...
Embodiment 2
[0076] For this embodiment, a specific example is shown in combination with an actual application scenario to further describe in detail the implementation method of the above-mentioned dynamic deformation switch assembly of the present invention. The graphics of the dynamic deformation switch assembly in this embodiment can be realized as figure 2 Gradient process shown from left to right.
[0077] For this embodiment, the instruction received in step S101 is an instruction to switch from the open state to the closed state. When the switch assembly is in the open state, its graphic corresponds to figure 2 The leftmost graph in , which contains three lines, from top to bottom are the first line, the second line and the third line, the first line, the second line and the third line are equal in length and in the same order The three lines have the same longitudinal axis of symmetry, that is, the midpoints of the first line, the second line and the third line are all on the ...
Embodiment 3
[0105] Another possible implementation of the embodiment of the present invention, on the basis of the first or second embodiment, further includes the steps shown in the third embodiment, wherein,
[0106] The obtaining the parameters of the control graph change in the step S102 includes: obtaining the parameters of the control graph change generated based on the preset interpolator and estimator.
[0107] For this embodiment, the value of the parameter between the initial value and the end value may be generated based on an interpolator and an estimator in a preset attribute animation library. Wherein, the attribute animation library is an animation library introduced by the Android development team in version 3.0, the interpolator is used to define the rate of change of graphics, and the estimator is used to calculate the value of the parameter. The interpolator can be various linear interpolators or nonlinear interpolators, such as constant speed, acceleration, deceleratio...
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