uknownothingsnow / CircleProgress

CircleProgress, DonutProgress, ArcProgress
3.81k stars 921 forks source link

Solve the innerText adaptation problem of different Android systems / DonutProgress #149

Open HAPENLY opened 2 years ago

HAPENLY commented 2 years ago

Please add this below code on DonutProgress.java under onDraw method after 500 line

  if(innerBottomTextHeight == 0) { 
                innerBottomTextHeight  = getHeight() - (getHeight() * 3) / 4;
            }

The value of innerbottomtextheight in different systems is 0, which leads to problems

This is a common problem of this library. If you encounter similar problems in arcprogress and circleprogress, you can refer to it