-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from agrawalsuneet/dev
Merge Dev to master for 0.8 release
- Loading branch information
Showing
19 changed files
with
401 additions
and
237 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,17 @@ | |
|
||
please check a better quality demo [here](https://www.youtube.com/watch?v=24xl6td1LBg) | ||
|
||
Other loaders: [FourFoldLoader](https://github.com/agrawalsuneet/FourFoldLoader), [ZipZapLoader](https://github.com/agrawalsuneet/FourFoldLoader), [ClockLoader](https://github.com/agrawalsuneet/LoadersPack), [RippleLoader](https://github.com/agrawalsuneet/LoadersPack), [SVGLoader](https://github.com/agrawalsuneet/SVGLoadersPack-Android) | ||
### RotatingCircularDotsLoader | ||
|
||
|
||
please check a better quality demo [here]() | ||
|
||
Other loaders: [SVGLoader](https://github.com/agrawalsuneet/SVGLoadersPack-Android), [ClockLoader](https://github.com/agrawalsuneet/LoadersPack), [RippleLoader](https://github.com/agrawalsuneet/LoadersPack), [FourFoldLoader](https://github.com/agrawalsuneet/FourFoldLoader), [ZipZapLoader](https://github.com/agrawalsuneet/FourFoldLoader), [WaveLoader](https://github.com/agrawalsuneet/FourFoldLoader) | ||
|
||
## How To use | ||
include below dependency in build.gradle of application and compile it | ||
``` | ||
compile 'com.agrawalsuneet.androidlibs:dotsloader:0.7' | ||
compile 'com.agrawalsuneet.androidlibs:dotsloader:0.8' | ||
``` | ||
|
||
### LinearDotsLoader | ||
|
@@ -285,6 +290,40 @@ SlidingLoader sliding = new SlidingLoader(this, 40, 10, | |
containerLL.addView(sliding); | ||
``` | ||
|
||
### RotatingCircularDotsLoader | ||
##### Through XML | ||
``` | ||
<com.agrawalsuneet.dotsloader.loaders.RotatingCircularDotsLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:rotatingcircular_animDur="3000" | ||
app:rotatingcircular_bigCircleRadius="42dp" | ||
app:rotatingcircular_dotsColor="@color/blue_selected" | ||
app:rotatingcircular_dotsRadius="14dp" /> | ||
``` | ||
|
||
##### Through Code | ||
|
||
* Kotlin | ||
``` | ||
val loader = RotatingCircularDotsLoader(this, | ||
20, 60, ContextCompat.getColor(this, R.color.red)) | ||
.apply { | ||
animDuration = 3000 | ||
} | ||
containerLL.addView(loader) | ||
``` | ||
|
||
* Java | ||
``` | ||
RotatingCircularDotsLoader loader = new RotatingCircularDotsLoader(this, | ||
20, 60, ContextCompat.getColor(this, R.color.red)); | ||
loader.setAnimDuration(3000); | ||
containerLL.addView(loader); | ||
``` | ||
|
||
Please take a 2 mins survey to make this library better [here](https://goo.gl/forms/81Cf63sL2X1WhXHl2). | ||
It won't take more than 2 mins I promise :) or feel free to drop an email at [email protected] if face any issue or require any additional functionality in it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
app/src/main/java/com/agrawalsuneet/loaders/dialog/DotsLoaderDialog.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:background="@color/grey_cool" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:orientation="horizontal" | ||
android:layout_margin="16dp"> | ||
|
||
<com.agrawalsuneet.dotsloader.loaders.RotatingCircularDotsLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:rotatingcircular_animDur="5000" | ||
app:rotatingcircular_bigCircleRadius="15dp" | ||
app:rotatingcircular_dotsColor="@color/red" | ||
app:rotatingcircular_dotsRadius="5dp" /> | ||
|
||
<com.agrawalsuneet.dotsloader.loaders.RotatingCircularDotsLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:rotatingcircular_animDur="5000" | ||
app:rotatingcircular_bigCircleRadius="15dp" | ||
app:rotatingcircular_dotsColor="@color/yellow" | ||
app:rotatingcircular_dotsRadius="5dp" /> | ||
|
||
<com.agrawalsuneet.dotsloader.loaders.RotatingCircularDotsLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:rotatingcircular_animDur="5000" | ||
app:rotatingcircular_bigCircleRadius="15dp" | ||
app:rotatingcircular_dotsColor="@color/green" | ||
app:rotatingcircular_dotsRadius="5dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<com.agrawalsuneet.dotsloader.loaders.RotatingCircularDotsLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:rotatingcircular_animDur="3000" | ||
app:rotatingcircular_bigCircleRadius="42dp" | ||
app:rotatingcircular_dotsColor="@color/blue_selected" | ||
app:rotatingcircular_dotsRadius="14dp" /> | ||
|
||
<com.agrawalsuneet.dotsloader.loaders.RotatingCircularDotsLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:rotatingcircular_animDur="4000" /> | ||
|
||
|
||
</LinearLayout> |
Oops, something went wrong.