|
5 | 5 |
|
6 | 6 | latest version : [  ](https://bintray.com/agrawalsuneet/androidlibs/squareloaderspack/_latestVersion)
|
7 | 7 |
|
8 |
| -[]( https://android-arsenal.com/details/1/7246 ) [](https://circleci.com/gh/agrawalsuneet/SquareLoadersPack-Android) |
| 8 | +[]( https://android-arsenal.com/details/1/7246 ) [](https://circleci.com/gh/agrawalsuneet/SquareLoadersPack-Android) [](https://circleci.com/gh/agrawalsuneet/SquareLoadersPack-Android) |
9 | 9 |
|
| 10 | +  |
10 | 11 |
|
11 |
| -### SquareGridLoader |
12 |
| - |
13 |
| - |
14 |
| - |
15 |
| -### ZipZapLoader |
16 |
| - |
17 | 12 |
|
18 |
| - |
19 |
| -### WaveLoader |
20 |
| - |
| 13 | +  |
21 | 14 |
|
22 | 15 |
|
23 | 16 | ### MusicPlayerLoader
|
24 |
| - |
25 |
| - |
26 |
| - |
27 |
| -### RotatingSquareLoader |
28 |
| - |
| 17 | +  |
29 | 18 |
|
30 | 19 | Check all other loaders [here](https://agrawalsuneet.github.io/agrawalsuneet/opensourcecontribution/)
|
31 | 20 |
|
32 | 21 |
|
33 | 22 | ## How To use
|
34 | 23 | include below dependency in build.gradle of application and compile it
|
35 | 24 | ```
|
36 |
| -implementation 'com.agrawalsuneet.androidlibs:squareloaderspack:0.4' |
| 25 | +implementation 'com.agrawalsuneet.androidlibs:squareloaderspack:0.5' |
| 26 | +``` |
| 27 | + |
| 28 | +### UsainBoltLoader |
| 29 | +##### Through XML |
| 30 | +``` |
| 31 | +<com.agrawalsuneet.squareloaderspack.loaders.UsainBoltLoader |
| 32 | + android:layout_width="wrap_content" |
| 33 | + android:layout_height="wrap_content" |
| 34 | + app:usainbolt_animDuration="400" |
| 35 | + app:usainbolt_interpolator="@android:interpolator/linear" |
| 36 | + app:usainbolt_rectangleColor="@color/blue" |
| 37 | + app:usainbolt_rectangleWidth="18dp"/> |
| 38 | +``` |
| 39 | +##### Through Code |
| 40 | +* Kotlin |
| 41 | +``` |
| 42 | + val usainBoltLoader = UsainBoltLoader(this, |
| 43 | + 60, ContextCompat.getColor(this, R.color.purple)) |
| 44 | + .apply { |
| 45 | + animDuration = 1000 |
| 46 | + interpolator = LinearInterpolator() |
| 47 | + } |
| 48 | +
|
| 49 | + container.addView(usainBoltLoader) |
37 | 50 | ```
|
38 | 51 |
|
| 52 | +* Java |
| 53 | +``` |
| 54 | +UsainBoltLoader usainBoltLoader = new UsainBoltLoader(this, |
| 55 | + 60, ContextCompat.getColor(this, R.color.purple)); |
| 56 | +
|
| 57 | + usainBoltLoader.setAnimDuration(1000); |
| 58 | + usainBoltLoader.setInterpolator(new LinearInterpolator()); |
| 59 | +
|
| 60 | +
|
| 61 | + container.addView(usainBoltLoader); |
| 62 | +``` |
| 63 | + |
| 64 | + |
39 | 65 | ### SquareGridLoader
|
40 | 66 | ##### Through XML
|
41 | 67 | ```
|
|
0 commit comments