When you want to load a picture from the network, you may use the progress bar to display the progress of the picture,This project uses the Drawable injection, support Fresco, UIL, GLIDE, Picasso
Four picture frames,Dumplites of Fresco。
###阅读中文文档 请点击这里
```Java compile 'com.jpeng:LoadingProgress:1.1.0' ``` [Jar package Download](https://github.com/peng8350/LoadingProgress/blob/master/loadprogress.jar)Can dynamically change the progress of text size, color,type,can visiable。
Can change the progress and background color。
Ring support gradient。
There are two styles of rings。
Support into ListView Cache;
More style of progress
Specific referenceDEMO
CircleProgressprogress = newCircleProgress.Builder().
setTextColor(Color.RED)
//setting your property...
.build();
// if you use ImageView to load(Glide,UIL,Picasso)progress.inject(yourImageView);
//if you use Frescoprogress.injectFresco(yourSimpleDraweeView)/* * Congratulations, you don't need to listen to the picture to load the progress of change *///In the interface provided by ImageLoadingProgressListener UIL inside:@OverridepublicvoidonProgressUpdate(Strings, Viewview, inti, inti1) {
progress.setLevel(i);
progress.setMaxValue(i1);
}
/* *If you are use Glide and Picasso *you can refer to my demo how to listening the Downloading ×But in my demo seems not corrent *Because in my test,some pictures cannot display * may be the reason is about okhttp *///In your progress monitor callback methodprogress.setLevel(current);
progress.setMaxValue(total);
If all of the above is not what you want.,you can custom a class extends BaseProgress,Draw a picture of what you want.:
publicclassCustomProgressextendsBaseProgress{
@OverridepublicvoidDrawOther(Canvascanvas){
//Custom yourself
}
}`setTextSize` Set the size of the middle of the progress bar
`setTextShow` Set whether the intermediate text is displayed
`setTextType` set the text type
`setCustomText` set the custom text replace the origin number text
`setTextXOffset` set the X distance to the center pointer
`setTextYOffset` set the Y distance to the center pointer
setCircleWidth Set the width of the ringsetCircleRadius Set the radius of the circlesetProgressColor Set the ring has been loaded on the progress of the colorsetBottomColor Set the color of the ring not loadedsetStyle Channge the style,enum of CircleStyle.Fan or RingsetGradientColor set the color of gradientsetBottomWidth set the width of bottomsetFanPadding set the padding line to the circle with FanStyle
setRecBottomColor Set the color of the bottom of the long progresssetRecProgressColor Set the background color that the long progress has been loadedsetProgressColor Set the ring has been loaded on the progress of the colorsetRecHeight Set the width of the long progresssetRectProgressImage Use custom images to replace text to display (set up will not display text)setPosition Set the position of the display indicator
`setDirection` set the rotate direction `EnableAlpha` allow the alpha change by progress # Hope
If you find that you can listen to Xutils2,3 or volley and other frameworks to download progress changes in the way, you can tell me, I modify the.
If you find BUG, can also be written in issue。
a junior student still study at School, love programming, especially Android
Email:peng8350@gmail.com




