摘要: 圆形进度条.jpg 先在attrs.xml中自定义属性 <declare-styleable name="CircleProgressBar"> <attr name="backgroundColor" format="color" /> <attr name="progressColor" for 阅读全文
posted @ 2019-12-31 09:46 aruba_233 阅读(22) 评论(0) 推荐(0)
摘要: 文字线谱.png 其中top,bottom,ascent,descent的值都是基于baseline,所以-top-(bottom - top)/2为文字中心到baseline的距离,即文字真正应该绘制的y坐标为y-(top+bottom)/2 阅读全文
posted @ 2019-12-31 09:39 aruba_233 阅读(34) 评论(0) 推荐(0)