41

Android自定义View-记录一个简单却又常见的效果实现 - CSDN博客

 5 years ago
source link: https://blog.csdn.net/weixin_38251977/article/details/82286127
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
上周遇到一个需求,用一个圆形进度条的形式来展示某项操作所占的比例,虽然类似的轮子已经有很多了,但是这种简单的自定义View个人觉得有时间的话,还是自己写写比较好。首先来看一下效果图: 分析: 从效果图可以看到,这个效果整体分为以下几部分:背景圆环进度圆弧终点小圆圈(进度为0和进度为100%的时候应当没有)内部三行文字怎么实现: 分析出整体框架之后,思路其实已...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK