Loading Gear Animation Library

23:16 12 Comments

Title Splash Screen Loading Animation Sample - Future Image
In this post I come up with loading gear animation view as repository, Explaining code is hard so this time i published this as a repository so you can easily import this in your project. We can use this while content loading from internet. If you want change something like color of gear or changing the gear drawable, you can edit it. This is implemented with usual animation in android. with   BounceInterpolator .


For gradle import

dependencies {
    compile 'info.androidramp:loading-gear:1.0.4'
}
Usage
In XML file<FrameLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    
    //place your contents here
    
    <info.androidramp.gearload.Loading
        android:id="@+id/loading"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</FrameLayout>
In ActivityLoading loading = (Loading) findViewById(R.id.loading);
//to sart
loading.Start();
//to cancel
loading.Cancel();

The view is visible only if method Start() is called.


Unknown

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a Mad

12 comments: