很强势的进度条表现方式RoundCornerProgressBar,(圆角,倾斜度,颜色,开关)

284 阅读1分钟

首先是可以实现的效果图:

这里写图片描述
这里写图片描述
集成方法:
buildgradle中
compile ‘com.akexorcist:RoundCornerProgressBar:2.0.3’

xml中直接使用

      <!--进度条-->
                                <com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar
                                    android:id="@+id/rcpb_jindu"
                                    android:layout_width="match_parent"
                                    android:layout_height="5dp"
                                    android:layout_below="@id/huiyan_name"
                                    android:layout_marginLeft="5dp"
                                    android:layout_marginTop="@dimen/margin_5dp"
                                    app:rcBackgroundColor="#e9e5e4"
                                    app:rcMax="2000"
                                    app:rcProgress="800"
                                    app:rcProgressColor="#ffc501"
                                    app:rcRadius="5dp" />
>更多使用方法参考GitHub上说明:

github.com/akexorcist/…