Fork from https://github.com/Rogero0o/CatLoadingView
loadingview
// set view custom background resource
setBgResId(@DrawableRes int bgResId)
// set loading text
setMsgText(CharSequence msgText) || setMsgResId(@StringRes int msgResId)
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.zzice:AnimalLoadingView:0.0.1'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.zzice</groupId>
<artifactId>AnimalLoadingView</artifactId>
<version>0.0.1</version>
</dependency>
AnimalLoadingView loadingView = new AnimalLoadingView();
// config loadingview
// Example
// loadingView.setMsgText("Google大法好");
/**
* @param FragmentManager manager
* @param String tag
*/
loadingView.show(manager, tag);
- custom animal loading view # add dog , cat and many more