AVLoadingIndicatorView is a collection of nice loading animations for Android.
You can also find iOS version of this here.
Add dependencies in build.gradle.
dependencies {
compile 'com.wang.avi:library:1.0.5'
compile 'com.nineoldandroids:library:2.4.0'
}
Add the AVLoadingIndicatorView to your layout:
<com.wang.avi.AVLoadingIndicatorView
android:id="@+id/avloadingIndicatorView"
android:layout_width="wrap_content" //or your custom size
android:layout_height="wrap_content" //or your custom size
android:visibility="visible" //visible or gone
app:indicator="BallPulse"
app:indicator_color="your color"
/>
It's very simple use just like Progressbar.
void startAnim(){
findViewById(R.id.avloadingIndicatorView).setVisibility(View.VISIBLE);
}
void stopAnim(){
findViewById(R.id.avloadingIndicatorView).setVisibility(View.GONE);
}
If you want use this with Dialog , Here are mine com.wang.avi.sample.MainActivity.
As seen above in the Demo, the indicators are as follows:
Row 1
BallPulse
BallGridPulse
BallClipRotate
BallClipRotatePulse
Row 2
SquareSpin
BallClipRotateMultiple
BallPulseRise
BallRotate
Row 3
CubeTransition
BallZigZag
BallZigZagDeflect
BallTrianglePath
Row 4
BallScale
LineScale
LineScaleParty
BallScaleMultiple
Row 5
BallPulseSync
BallBeat
LineScalePulseOut
LineScalePulseOutRapid
Row 6
BallScaleRipple
BallScaleRippleMultiple
BallSpinFadeLoader
LineSpinFadeLoader
Row 7
TriangleSkewSpin
Pacman
BallGridBeat
SemiCircleSpin
##Contact me
If you have a better idea or way on this project, please let me know, thanks :)
Copyright 2015 jack wang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
avloadingindicatorview's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.