Customizable dynamic image display method

A display method and custom technology, applied in the fields of instruments, electrical digital data processing, program control devices, etc., can solve the problems of inefficiency, unevenness, inability to respond to messages such as buttons and touch screens, and achieve good performance and efficiency. High, brilliant animation effects

Active Publication Date: 2017-03-29
BEIJING KUWO TECH
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, frame animation and deformation animation are drawn based on the View tree, and the efficiency is inherently inefficient.
In addition, on different sizes of mobile phone screens, multi-element combination animation adaptation is cumbersome, and screens of different sizes may be misaligned
[0005] Using frame animation or deformation animation, you need to update the screen in the main UI thread (the UI thread in Android is the main thread), and updating the screen in the main UI thread may cause problems, for example: if the time to update the screen is too long, then The UI main thread will be blocked, so it will not be able to respond to messages such as buttons and touch screens

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Customizable dynamic image display method
  • Customizable dynamic image display method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050]The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0051] The self-definable animation display method of the present invention firstly encapsulates thread creation and loop logic based on the SurfaceView control, and abstracts the two steps of drawing and calculation, and then maintains all element objects of the interface in the sub-controls, and then draws, In the operation, the drawing and operation of the child elements are executed cyclically, so that each child element independently performs its own position and change calculation, and independently draws itself in the parent control canvas. class diagram such as figure 1 shown, including:

[0052] The BaseGameView class inherits from the SurfaceView class and implements the Runnable and SurfaceHolder.Callback interfaces at the same time.

[0053] The BaseGameView class uses the surfaceCreated interface callback to create threads, uses the surfaceChang...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a customizable dynamic image display method. The method comprises the steps of firstly, packaging thread creation and circular logic based on a SurfaceView control, and abstracting out drawing and calculation steps; and secondly, maintaining all element objects of an interface in sub-controls, circularly executing drawing and calculation of sub-elements in drawing and calculation, and enabling the sub-elements to independently perform sub-element position and change calculation, and independently draw themselves in a father control canvas. According to the method, dynamic image display is carried out in an independent thread by using the SurfaceView, so that a main thread of a UI is not blocked, the efficiency is high, and the performance is good; the elements are all dynamically calculated based on a current screen size of a mobile phone; the elements are aligned accurately; and the interaction and matching of an animation effect and an external event can be realized.

Description

technical field [0001] The invention relates to the technical field of multi-element combination animation in Android, in particular to a custom-definable animation (animation) display method. Background technique [0002] In Android, multi-element combined animation is mainly achieved by setting frame animation and deformation animation combination on the control View in the prior art, or directly playing video or GIF for display. [0003] Using video and GIF to display multi-element combined animation (animation for short) has the problem of not being able to interact, the connection between animation and events is uncontrollable, and when performing some rotation and scaling effects, video and GIF are difficult to solve. [0004] Using frame animation or deformation animation, in the complex interface layout, there are problems such as execution lag, different performance on mobile phones with different performances, and serious frame loss on low-end mobile phones. The m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/24G06F8/38
Inventor 纪广兴
Owner BEIJING KUWO TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products