-----已通过JitPack发布
博客:http://blog.csdn.net/sdfdzx/article/details/67639926
可以自定义的属性:
1.仪表盘半径
2.仪表盘宽度
3.指针大小
4.刻度的密度
5.可触发触摸事件对应设置进度(可选择)
6.进度动画(可选择)
<com.xuan.driverprogress.view.DriverProgress
android:layout_width="wrap_content"
android:layout_height="wrap_content"
custom:indicator_radius="10dp"
custom:panel_density="10"
custom:panel_max="100"
custom:panel_point_radius="3dp"
custom:panel_progress="50"
custom:panel_radius="75dp"
custom:panel_width="45dp"
custom:touchable="true"
/>
Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.sdfdzx:DriverProgress:v1.0.4'
}