-
Notifications
You must be signed in to change notification settings - Fork 20
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 #18 from agrawalsuneet/dev
Merge Dev to master for 0.8 release
- Loading branch information
Showing
23 changed files
with
462 additions
and
66 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -37,12 +37,16 @@ latest version : [ ![Download](https://api.bintray.com/packages/agrawalsuneet/an | |
![arcprogressloader](https://user-images.githubusercontent.com/12999622/45809206-3fe05800-bce5-11e8-90ef-f68e46de64cc.gif) | ||
|
||
|
||
### FidgetLoader | ||
![fidgetloader](https://user-images.githubusercontent.com/12999622/45921114-dfac0a80-becc-11e8-8a1e-8c8d78c31dd4.gif) | ||
|
||
|
||
Check all other loaders [here](https://agrawalsuneet.github.io/agrawalsuneet/opensourcecontribution/) | ||
|
||
## How To use | ||
include below dependency in build.gradle of application and compile it | ||
``` | ||
implementation 'com.agrawalsuneet.androidlibs:loaderspack:0.7' | ||
implementation 'com.agrawalsuneet.androidlibs:loaderspack:0.8' | ||
``` | ||
|
||
### ClockLoader | ||
|
@@ -396,6 +400,50 @@ implementation 'com.agrawalsuneet.androidlibs:loaderspack:0.7' | |
</array> | ||
``` | ||
|
||
##### Through XML | ||
``` | ||
<com.agrawalsuneet.loaderspack.loaders.FidgetLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:fidget_animDuration="3000" | ||
app:fidget_bodyColor="@color/blue_selected" | ||
app:fidget_fidgetRadius="30dp" | ||
app:fidget_interpolator="@android:anim/accelerate_decelerate_interpolator" | ||
app:fidget_noOfRotation="10" | ||
app:fidget_sideCirclesColor="@android:color/darker_gray" /> | ||
``` | ||
##### Through Code | ||
* Kotlin | ||
``` | ||
val fidgetLoader = FidgetLoader(this, | ||
20, | ||
ContextCompat.getColor(this, R.color.blue_selected), | ||
ContextCompat.getColor(this, R.color.amber)) | ||
.apply { | ||
animDuration = 3000 | ||
noOfRotation = 1 | ||
interpolator = BounceInterpolator() | ||
} | ||
containerLayout.addView(fidgetLoader) | ||
``` | ||
|
||
* Java | ||
``` | ||
FidgetLoader fidgetLoader = new FidgetLoader(this, | ||
20, | ||
ContextCompat.getColor(this, R.color.blue_selected), | ||
ContextCompat.getColor(this, R.color.amber)); | ||
fidgetLoader.setAnimDuration(3000); | ||
fidgetLoader.setNoOfRotation(1); | ||
fidgetLoader.setInterpolator(new BounceInterpolator()); | ||
container.addView(fidgetLoader); | ||
``` | ||
|
||
|
||
### FidgetLoader | ||
##### Through XML | ||
``` | ||
<com.agrawalsuneet.loaderspack.loaders.ArcProgressLoader | ||
|
@@ -428,6 +476,7 @@ implementation 'com.agrawalsuneet.androidlibs:loaderspack:0.7' | |
container.addView(arcProgressLoader); | ||
``` | ||
|
||
|
||
Please take a 2 mins survey to make this library better [here](https://goo.gl/forms/v0SZS0oI9rvInzdB3). | ||
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
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
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,76 @@ | ||
<?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:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
android:orientation="horizontal"> | ||
|
||
<com.agrawalsuneet.loaderspack.loaders.FidgetLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
app:fidget_animDuration="5000" | ||
app:fidget_bodyColor="@color/red" | ||
app:fidget_fidgetRadius="18dp" | ||
app:fidget_interpolator="@android:anim/linear_interpolator" | ||
app:fidget_noOfRotation="5" | ||
app:fidget_sideCirclesColor="@android:color/darker_gray" /> | ||
|
||
<com.agrawalsuneet.loaderspack.loaders.FidgetLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
app:fidget_animDuration="5000" | ||
app:fidget_bodyColor="@color/amber" | ||
app:fidget_fidgetRadius="18dp" | ||
app:fidget_interpolator="@android:anim/linear_interpolator" | ||
app:fidget_noOfRotation="5" | ||
app:fidget_sideCirclesColor="@android:color/darker_gray" /> | ||
|
||
<com.agrawalsuneet.loaderspack.loaders.FidgetLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
app:fidget_animDuration="5000" | ||
app:fidget_bodyColor="@color/green" | ||
app:fidget_fidgetRadius="18dp" | ||
app:fidget_interpolator="@android:anim/linear_interpolator" | ||
app:fidget_noOfRotation="5" | ||
app:fidget_sideCirclesColor="@android:color/darker_gray" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
<com.agrawalsuneet.loaderspack.loaders.FidgetLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
app:fidget_animDuration="3000" | ||
app:fidget_bodyColor="@color/blue_selected" | ||
app:fidget_fidgetRadius="30dp" | ||
app:fidget_interpolator="@android:anim/accelerate_decelerate_interpolator" | ||
app:fidget_noOfRotation="10" | ||
app:fidget_sideCirclesColor="@android:color/darker_gray" /> | ||
|
||
|
||
<com.agrawalsuneet.loaderspack.loaders.FidgetLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
app:fidget_animDuration="1000" | ||
app:fidget_bodyColor="@android:color/black" | ||
app:fidget_fidgetRadius="25dp" | ||
app:fidget_interpolator="@android:anim/linear_interpolator" | ||
app:fidget_noOfRotation="1" | ||
app:fidget_sideCirclesColor="@color/darkmagenta" /> | ||
|
||
|
||
</LinearLayout> |
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
Oops, something went wrong.