The Android Arsenal – Animations

A easy library to clearly show a loader all over the edges of a materail chip

Utilization

put in root make.gradle

                   allprojects 
                         repositories 
                             ...
                         maven  url 'https://jitpack.io' 
                    
                    

in module establish.gradle

           implementation 'com.github.AbhinavChauhan97:LoaderChip:1..4'

Merely put in your structure file

      

by deault a pink loading line will display up , you can customize with next attributes

attribute format desciption
loaderColor colour give a wished-for colour to loader line
loaderWidth dimension give sought after with to loading line
lapDuration integer give wanted length in millis for a comprehensive rotation of loader line all around the chip
loadOnClick boolean signifies irrespective of whether or not you want to start the laoder on the click on of the chip , defaut value is legitimate
loaderColorStart/loaderColorEnd shade these attributes falls in just one column since there result is only visible if equally of them are present they are utilized to draw loading line in a gradient color , where loaderColorStart presents the start off colour and loaderColorEnd provides the stop coloration of the gradient , when these attributes are current loaderColor attributes is dismissed if current , if only a person of them is existing loaderColor is utilised.
reverseEffect boolean suggests whether or not or not loader should really go back and forth
loadingText String optional textual content to display while loading
loadingTextColor colour textual content color to demonstrate although loading
loaderStyle enum use to give a loading type achievable values bounce , speed up , decelerate , accelerateThenDecelerate(default) , linear , overshoot , fastOutSlowIn

Default Loader

Gradient Loader (Use both of those loaderColorStart and loaderColorEnd characteristics for gradient loader of individuals two colors)

Loader with width = 4dp and lapduration = 4000 milliseconds

Loader with overshoot loaderStyle

Loader with bounce loaderStyle

Loaders with reverseEffect enabled and with vairous corner radius

xml file of earlier mentioned Display

    

    

   

     


Model 1..5 ( 10-july-2021)

give optional textual content whilte loading , attributes loadingText , loadingTextColor are included

Contributions many thanks to cheticamp from stackoverflow for correcting this important bug.

Next Post

Georgia Tech Dominated by Ole Miss, Drops to 1-2 on the Season

Georgia Tech was hosting No.20 Ole Miss in Bobby Dodd Stadium today and hoping to get the signature win of the Geoff Collins era. Ole Miss made the decision to start Jaxson Dart at quarterback after speculation about who would get the start all week.  It was another poor performance […]
Georgia Tech Dominated by Ole Miss, Drops to 1-2 on the Season

You May Like