可觸摸圓形進度條

今天需要畫個圓,還要是支持觸摸變化的圓,網上只找到了,沒找到觸摸,於是。。。

演示效果

自己的庫

本示例已經做成了庫,使用方法:

dependencies {
    compile 'com.xuie:circleprogress:1.0.1' 
}
<com.github.cool.circleprogress.DonutProgress
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_margin="10dp"
    app:donut_progress="45" />

<com.github.cool.circleprogress.CircleProgress
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_margin="10dp"
    app:circle_progress="80" />

<com.github.cool.circleprogress.ArcProgress
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_margin="10dp"
    app:arc_finished_color="#ff00ff00"
    app:arc_progress="45" />

參考方法:

源碼

源碼下載

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章