|
8 | 8 | 
|
9 | 9 | 
|
10 | 10 |
|
11 |
| - |
12 |
| -### ZipZapLoader |
13 |
| - |
14 |
| - |
15 |
| - |
16 |
| -### WaveLoader |
17 |
| - |
18 |
| - |
19 | 11 | please check a better quality demo [here](https://youtu.be/v0rr80_kAtw)
|
20 | 12 |
|
21 |
| -Other loaders: [SVGLoader](https://github.com/agrawalsuneet/SVGLoadersPack-Android), [ClockLoader](https://github.com/agrawalsuneet/LoadersPack), [RippleLoader](https://github.com/agrawalsuneet/LoadersPack), [LinearDotsLoader](https://github.com/agrawalsuneet/DotsLoader), [CircularDotsLoader](https://github.com/agrawalsuneet/DotsLoader), [LazyLoader](https://github.com/agrawalsuneet/DotsLoader), [TashieLoader](https://github.com/agrawalsuneet/DotsLoader), [SlidingLoader](https://github.com/agrawalsuneet/DotsLoader) |
| 13 | +Other loaders: [SVGLoader](https://github.com/agrawalsuneet/SVGLoadersPack-Android), [ClockLoader](https://github.com/agrawalsuneet/LoadersPack), [RippleLoader](https://github.com/agrawalsuneet/LoadersPack), [RotatingCircularSticksLoader](https://github.com/agrawalsuneet/LoadersPack), [LinearDotsLoader](https://github.com/agrawalsuneet/DotsLoader), [CircularDotsLoader](https://github.com/agrawalsuneet/DotsLoader), [LazyLoader](https://github.com/agrawalsuneet/DotsLoader), [TashieLoader](https://github.com/agrawalsuneet/DotsLoader), [SlidingLoader](https://github.com/agrawalsuneet/DotsLoader), [RotatingCircularDotsLoader](https://github.com/agrawalsuneet/DotsLoader), [ZipZapLoader](https://github.com/agrawalsuneet/SquareLoadersPack-Android), [WaveLoader](https://github.com/agrawalsuneet/SquareLoadersPack-Android) |
22 | 14 |
|
23 | 15 | ## How To use
|
24 | 16 | include below dependency in build.gradle of application and compile it
|
@@ -107,124 +99,12 @@ view.setOnClickListener(new View.OnClickListener() {
|
107 | 99 | });
|
108 | 100 |
|
109 | 101 | ```
|
110 |
| - |
111 | 102 |
|
112 |
| -### ZipZapLoader |
113 |
| -##### Through XML |
114 |
| -``` |
115 |
| -<com.agrawalsuneet.fourfoldloader.loaders.ZipZapLoader |
116 |
| - android:id="@+id/zipzap" |
117 |
| - android:layout_width="wrap_content" |
118 |
| - android:layout_height="wrap_content" |
119 |
| - app:loader_animDuration="200" |
120 |
| - app:loader_firstSquareColor="@color/blue" |
121 |
| - app:loader_forthSquareColor="@color/blue" |
122 |
| - app:loader_secondSquareColor="@color/blue" |
123 |
| - app:loader_squareLength="40dp" |
124 |
| - app:loader_startLoadingDefault="false" |
125 |
| - app:loader_thirdSquareColor="@color/blue" |
126 |
| - app:zipzap_fromScale="0.9" |
127 |
| - app:zipzap_toScale="0.7" /> |
128 |
| -``` |
129 |
| -##### Through Code |
130 |
| -* Kotlin |
131 |
| -``` |
132 |
| - zipzap = ZipZapLoader(this, 120, |
133 |
| - ContextCompat.getColor(this, R.color.red), |
134 |
| - ContextCompat.getColor(this, R.color.red), |
135 |
| - ContextCompat.getColor(this, R.color.red), |
136 |
| - ContextCompat.getColor(this, R.color.red), |
137 |
| - false).apply { |
138 |
| - fromScale = 1.0f |
139 |
| - toScale = 0.8f |
140 |
| - animationDuration = 1000 |
141 |
| - } |
142 |
| -
|
143 |
| - container.addView(zipzap) |
144 |
| -``` |
145 |
| - |
146 |
| -* Java |
147 |
| -```ZipZapLoader zipZapLoader = new ZipZapLoader(this, 40, |
148 |
| - ContextCompat.getColor(this, R.color.red), |
149 |
| - ContextCompat.getColor(this, R.color.green), |
150 |
| - ContextCompat.getColor(this, R.color.blue), |
151 |
| - ContextCompat.getColor(this, R.color.colorAccent), |
152 |
| - true); |
153 |
| - |
154 |
| - zipZapLoader.setAnimationDuration(500); |
155 |
| - zipZapLoader.setFromScale(1.0f); |
156 |
| - zipZapLoader.setToScale(0.8f); |
157 |
| -
|
158 |
| - container.addView(zipZapLoader); |
159 |
| -``` |
160 |
| - |
161 |
| - |
162 |
| -### WaveLoader |
163 |
| -##### Through XML |
164 |
| -``` |
165 |
| -<com.agrawalsuneet.fourfoldloader.loaders.WaveLoader |
166 |
| - android:layout_width="wrap_content" |
167 |
| - android:layout_height="wrap_content" |
168 |
| - app:wave_animDuration="500" |
169 |
| - app:wave_delayDuration="100" |
170 |
| - app:wave_interpolator="@android:anim/linear_interpolator" |
171 |
| - app:wave_isSingleColor="true" |
172 |
| - app:wave_noOfDots="10" |
173 |
| - app:wave_rectColor="@color/blue" |
174 |
| - app:wave_rectDistance="8dp" |
175 |
| - app:wave_rectHeight="80dp" |
176 |
| - app:wave_rectWidth="16dp" /> |
177 |
| -
|
178 |
| -
|
179 |
| - <com.agrawalsuneet.fourfoldloader.loaders.WaveLoader |
180 |
| - android:layout_width="wrap_content" |
181 |
| - android:layout_height="wrap_content" |
182 |
| - app:wave_animDuration="500" |
183 |
| - app:wave_delayDuration="100" |
184 |
| - app:wave_interpolator="@android:anim/linear_interpolator" |
185 |
| - app:wave_isSingleColor="false" |
186 |
| - app:wave_noOfDots="4" |
187 |
| - app:wave_rectColorsArray="@array/waveloader_colorsarray" |
188 |
| - app:wave_rectDistance="8dp" |
189 |
| - app:wave_rectHeight="80dp" |
190 |
| - app:wave_rectWidth="16dp" /> |
191 |
| -``` |
192 |
| -##### Through Code |
193 |
| -* Kotlin |
194 |
| -``` |
195 |
| - val waveLoader = WaveLoader(this, 8, 40, |
196 |
| - 200, 20, ContextCompat.getColor(baseContext, R.color.blue)) |
197 |
| - .apply { |
198 |
| - //isSingleColor = false |
199 |
| - //rectColorsArray = resources.getIntArray(R.array.waveloader_colorsarray) |
200 |
| - interpolator = LinearInterpolator() |
201 |
| - animDuration = 1000 |
202 |
| - delayDuration = 100 |
203 |
| - } |
204 |
| - |
205 |
| - container.addView(waveLoader) |
206 |
| -``` |
207 |
| - |
208 |
| -* Java |
209 |
| -``` |
210 |
| -WaveLoader waveLoader = new WaveLoader(this, 8, 40, |
211 |
| - 200, 20, ContextCompat.getColor(getBaseContext(), R.color.blue)); |
212 |
| - |
213 |
| - //waveLoader.setSingleColor(false); |
214 |
| - //waveLoader.setRectColorsArray(getResources().getIntArray(R.array.waveloader_colorsarray)); |
215 |
| - waveLoader.setInterpolator(new LinearInterpolator()); |
216 |
| - waveLoader.setAnimDuration(1000); |
217 |
| - waveLoader.setDelayDuration(100); |
218 |
| - |
219 |
| - |
220 |
| - container.addView(waveLoader); |
221 |
| -``` |
222 |
| - |
| 103 | +### Please note that minimum API level required to import this library is API 18 because of Android class ViewOverlay. |
223 | 104 |
|
| 105 | +ZipZapLoader and WaveLoader were moved to [SquareLoadersPack-Android](https://github.com/agrawalsuneet/SquareLoadersPack-Android) because of minimum API level 18 dependency in this library. Moving forward, all the square and rectangle loaders will be added in SquareLoadersPack only. |
224 | 106 |
|
225 | 107 |
|
226 |
| -### Please note that minimum API level required to import this library is API 18 because of Android class ViewOverlay. |
227 |
| - |
228 | 108 | Please take a 2 mins survey to make this library better [here](https://goo.gl/forms/ok6U8r2awTNkZC912).
|
229 | 109 | It won't take more than 2 mins I promise :) or feel free to drop an email at agrawalsuneet@gmail.com if face any issue or require any additional functionality in it.
|
230 | 110 | ```
|
|
0 commit comments