Algorithm of progress bar of breathing lamp effect

A progress bar and breathing light technology, which is applied in computing, instruments, electrical digital data processing, etc., can solve problems such as heavy CPU and GPU load, serious power consumption, and application crashes, and achieve good versatility, less resource consumption, and algorithmic high efficiency effect

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

AI Technical Summary

Problems solved by technology

Usually, the burn-in process lasts for a long time, ranging from 10 to 100 hours. Therefore, in the process of fortification, an intelligent display of the burn-in progress is needed. If the animation is not handled properly, the memory will continue to increase, and the CPU will continue to increase. And the GPU is overburdened, which will cause the phone to heat up, consume a lot of power, and even the application crashes

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
  • Algorithm of progress bar of breathing lamp effect
  • Algorithm of progress bar of breathing lamp effect

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0053] like figure 1 , 2 As shown, the algorithm of the progress bar of the breathing lamp effect described in the present invention comprises the following steps:

[0054] Step 1, based on the layout control Linearlayout, customize the new control class BurnProgressView, add initialization methods to the constructor, including: construct 200 brush blur filters, set the radius of the circular progress bar, initialize the drawing progress and use A brush for drawing the background;

[0055] Step 2, in the onSizeChanged callback, initialize the size of the circular progress bar according to the size of the control, and determine the inner and outer circle areas according to the width of the brush, so as to draw gradient arc lines on both sides of the progress bar to achieve a concave-convex three-dimensional effect;

[0056] Step 3: Open the thread for chang...

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 an algorithm of a progress bar of a breathing lamp effect. The algorithm includes the steps that firstly, a new control class BurnProgressView is user-defined on the basis of layout control Linearlayout, and an initialization method is added to a construction function; secondly, in onSizeChanged callback, the size of the circular progress bar is initialized according to the control size, and an inner ring area and an outer ring area are determined according to the width of a drawing pen so that gradient radian lines can be conveniently drawn on the two sides of the progress bar; thirdly, a thread of a breathing lamp change is started, the radiuses of a drawing pen fuzzy filter are circularly switched, and a height mark of corrugated lines is changed to be consistent with the rhythm of a breathing lamp; fourthly, in onDraw callback, progresses and effects are sequentially and dynamically drawn. According to the algorithm, the ring-shaped progress bar and the surrounding of the breathing lamp effect are adopted, attractive, personalized, visually and easily understood progress bar display is achieved through the circular progress bar and the breathing lamp effect, the algorithm efficiency is high, few resources are occupied, the universality is good, and the algorithm is suitable for being used in the Android system.

Description

technical field [0001] The invention relates to the technical field of progress bar calculation and presentation, in particular to an algorithm for a progress bar with a breathing light effect. Background technique [0002] The Android input control is a component used for human-computer interaction. The Android SDK provides a variety of input controls for this purpose, including: [0003] Native controls, such as: text field (TextView), button (Button), edit box (EditText), radio button (RadioButton), list control (ListView) and display picture control (ImageView), etc., [0004] Layout controls, such as: Linearlayout, Relativelayout, Framelayout, and less commonly used TableLayout, etc. [0005] Using these basic input controls, ordinary layout display can be realized, but for special application scenarios, such as complex animation display, or special graphics and image requirements, these basic input controls cannot be realized, so custom controls are needed to Meet sp...

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/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