Ericsongyl/IndicateProgress

可以设置进度条的高度吗

Opened this issue · 1 comments

可以设置进度条的高度吗

可以的,你可以在源码上修改:
//画背景
RectF backRectF = new RectF(0, height * 2 / 5, width, height * 3 / 5);

/画进度
RectF progressRectF = new RectF(0, height * 2 / 5, width * getScale(), height * 3 / 5);
LinearGradient lGradient = new LinearGradient(0, height * 2 / 5, width * getScale(), height * 3 / 5, startProgressColor, endProgressColor, Shader.TileMode.MIRROR);
…… …… ……

具体你可以看我的博客里的讲解:https://blog.csdn.net/weiren1101/article/details/53523837