新建RoundProgressBar class RoundProgressBar : View { private val paint = Paint() var max = 100 //最大进度 var progress = 0 //当前进度 取值范围 0-max set(value) { field = value invalidate()//调用该方法后 onDraw会执行 } var roundColor = Color.GRAY //圆环颜色 var roundProgressCol…