Skip to content

Repository files navigation

Android ProgressImageView

DownloadBuild Status

An iOS style progress ImageView.

Demo

demo

Demo apk download

or scan demo

Install

gradle :

dependencies {
compile'me.ydcool.lib:progressimageview:latest.integration'
}

Usage

in your layout xml:

<me.ydcool.lib.progressimageview.ProgressImageView
android:id="@+id/Main_piv"android:layout_width="200dp"android:layout_height="200dp"android:src="@mipmap/ic_launcher"app:pi_mask_color="#CC233333"app:pi_progress="0"app:pi_radius="60dp"app:pi_stroke="6dp"/>

setter and getter:

//setterprogressImageView.setProgress(yourProgress);
//getterintcurrentProgress = progressImageView.getProgress();

Attributes

attrdescription
pi_mask_colormask color.argb will looks better. default is Color.argb(180,0,0,0)
pi_progressthe progress ,default is 0.
pi_radiusthe radius of inner circle. default is 1/4 of the min side.
pi_strokestroke for the transparent ring.default is 8dp.

TODO

  • support for pause and resume

License

Apache License 2.0

About

An iOS style progress ImageView for Android.

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages