1 效果图
3 代码实现
这里我们采用PercentRelativeLayout布局,首尾我们用半圆shape实现,代码如下
color.xml
<color name="progress_first">#1ebBd5</color><color name="progress_second">#f36f53</color><color name="progress_third">#6F2BD5</color><color name="progress_four">#0083f1</color><color name="progress_five">#3CC43C</color><color name="progress_six">#ffe161</color><color name="progress_seven">#4D000000</color>
shape_start.xml
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http:/