一个类似于环形的 ProgressBar 的,可以自定义 Color,style 等属性的 View,支持 Material 风格.

来源:互联网 发布:网络称谓谜材 编辑:程序博客网 时间:2024/05/22 14:28

LoadingView

项目地址:LoadingView
简介:一个类似于环形的 ProgressBar 的,可以自定义 Color,style 等属性的 View,支持 Material 风格.

A LoadingView for Android,It's color,style...... can be customized.

Description



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

NameTypeDefaultDescriptioncolorcolor0xFF0099CCThe Ring's Colorprogress_styleenummaterialThe Ring's style when execute animationring_radiusdimension15dpThe Ring's radiusring_styleenumsquareThe ring's style(the paint's Cap)ring_widthdimension3.5dpThe ring's width

1 0