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.