ImageLoadingView
Abstract ??
???????????????????loading
Gif ??
Demo ????
Usage ????
Step 1
Gradle ??
dependencies {
compile 'com.yinglan.imageloadingview:library:0.1.0'
}
Step 2
In layout
<com.yinglan.imageloadingview.ImageLoadingView
android:id="@+id/loadingview"
android:layout_centerInParent="true"
android:layout_width="50dp"
android:layout_height="50dp" />
or
In Java Code
{
ImageLoadingView loadingView = new ImageLoadingView(this);
loadingView.setTargetView(imageView);
}
Step 3
????: loadingView.setProgress(float f);
//0.0 ~ 1.0; loadingView.loadCompleted();
loadingView.loadCompleted(ImageLoadingView.ViewType.IMAGE);
loadingView.loadCompleted(ImageLoadingView.ViewType.VIDEO);
loadingView.loadFaild();
loadingView.setInsideCircleColor(int color);
loadingView.setOutsideCircleColor(int color);
FAQ ??
???????????ImageLoadingView?,????????????????,???setTargetView(imageView). ?demo????imageloader??????????????
LICENSE ????
Apache License Version 2.0