【开源】CircularBarPager
CircularBarPager
- https://github.com/OrangeGangsters/CircularBarPager
介绍:
material 风格的数字圆圈进度显示库(api10 +)运行效果:
![]()
使用说明:
在build.gradle中添加依赖
|
1
2
|
//CircularBarPager compile 'com.github.orangegangsters:library:1.0.0@aar' |
xml中添加
|
1
2
3
4
5
6
7
8
|
<com.github.OrangeGangsters.circularbarpager.library.CircularBarPager android:id="@+id/circularBarPager" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingLeft="30dp" android:paddingRight="30dp" android:layout_centerInParent="true" style="@style/CircularBarPagerStyle"/> |
在styles.xml中
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<style name="CircularBarPagerStyle"> <item name="android:layout_height">match_parent</item> <item name="android:layout_width">match_parent</item> <item name="progress_arc_max">100</item> <item name="arc_progress">0</item> <item name="progress_arc_clockwise_outline_width">0.75dp</item> <item name="progress_arc_counter_clockwise_outline_width">0.75dp</item> <item name="progress_arc_clockwise_width">8dp</item> <item name="progress_arc_counter_clockwise_width">8dp</item></style> |
posted on 2015-04-14 09:29 wasdchenhao 阅读(155) 评论(0) 收藏 举报

浙公网安备 33010602011771号