<com.timqi.sectorprogressview.ColorfulRingProgressView
xmlns:app="http://schemas.android.com/apk/res-auto"android:id="@+id/crpv"android:layout_width="match_parent"android:layout_height="match_parent"app:bgColor="#e1e1e1" // The Backgroud Color of Ring
app:fgColorEnd="#ff4800" // defaul color, red
app:fgColorStart="#ffe400" // defaul color, yellow
app:percent="75" // Current percent. "100" is full
app:startAngle="0" // Start Angle of the foreground sector
app:strokeWidth="21dp" // Width of the Ring
/>
<com.timqi.sectorprogressview.SectorProgressView
xmlns:app="http://schemas.android.com/apk/res-auto"android:id="@+id/spv"app:bgColor="#e5e5e5" // The Backgroud Color of Circle
app:fgColor="#ff765c" // The Foregroud Color of Circle
app:percent="25" // Current percent. "100" is full
app:startAngle="0" // Start Angle of the foreground sector
/>
Or you can Clone the repo from github. If you are using Android Studio. Select File -> New -> Import Module and navigate the source directory to the library folder is OK!
Copyright 2015 Tim Qi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.