模仿github 头像上的progress的效果写的
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.sychaos:ProgressAvatarView:0.0.5'
}
// startAnim
circleImageView.startAnim()
// stopAnim
circleImageView.stopAnim()
<cloudist.cc.library.ProgressAvatarView
android:id="@+id/circle_image_view"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/aaa"
app:pav_border_width="5dp"
app:pav_border_color="#FF000000"/>