LoadingView
Introduction: 一个类似于环形的 ProgressBar 的,可以自定义 Color,style 等属性的 View,支持 Material 风格.
Tags:
ProgressBar-Loading-刷新-加载-A LoadingView for Android,It's color,style...... can be customized.
Description
This LoadingView is a circular ProgressBar in Android.It's color,style(include material style,linear style),progress style can be customized.
Demo
Usage
Gradle
compile 'com.pitt.loading.library:library:0.8'
Maven
<dependency>
<groupId>com.pitt.loading.library</groupId>
<artifactId>library</artifactId>
<version>0.8</version>
<type>pom</type>
</dependency>
then add the LoadingView to your layout's xml
<com.pitt.loadingview.library.LoadingView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
loadingview:color="#ff00"
loadingview:progress_style="material"
loadingview:ring_radius="15dp"
loadingview:ring_style="round"
loadingview:ring_width="3dp" />
XML attributes
Name | Type | Default | Description |
---|---|---|---|
color | color | 0xFF0099CC | The Ring's Color |
progress_style | enum | material | The Ring's style when execute animation |
ring_radius | dimension | 15dp | The Ring's radius |
ring_style | enum | square | The ring's style(the paint's Cap) |
ring_width | dimension | 3.5dp | The ring's width |
fengshengq@gmail.com