-
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 #16 from agrawalsuneet/dev
Merge Dev to master for 0.7 release
- Loading branch information
Showing
11 changed files
with
344 additions
and
6 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 |
---|---|---|
|
@@ -33,12 +33,16 @@ latest version : [ ![Download](https://api.bintray.com/packages/agrawalsuneet/an | |
![ringandcircleloader](https://user-images.githubusercontent.com/12999622/45266388-59b2ad00-b452-11e8-9e51-28cdb5c538b3.gif) | ||
|
||
|
||
### ArcProgressLoader | ||
![arcprogressloader](https://user-images.githubusercontent.com/12999622/45809206-3fe05800-bce5-11e8-90ef-f68e46de64cc.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.6' | ||
implementation 'com.agrawalsuneet.androidlibs:loaderspack:0.7' | ||
``` | ||
|
||
### ClockLoader | ||
|
@@ -381,6 +385,49 @@ implementation 'com.agrawalsuneet.androidlibs:loaderspack:0.6' | |
``` | ||
|
||
|
||
|
||
### ArcProgressLoader | ||
``` | ||
<array name="colors_rgb"> | ||
<item>@color/red</item> | ||
<item>@color/amber</item> | ||
<item>@color/green</item> | ||
<item>@color/grey</item> | ||
</array> | ||
``` | ||
|
||
##### Through XML | ||
``` | ||
<com.agrawalsuneet.loaderspack.loaders.ArcProgressLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:arcprogress_arcColorsArray="@array/colors_rgb" | ||
app:arcprogress_arcRadius="60dp" | ||
app:arcprogress_arcWidth="8dp" | ||
app:arcprogress_incrementalAngle="7.0" | ||
app:arcprogress_maxArcAngle="220.0" /> | ||
``` | ||
##### Through Code | ||
* Kotlin | ||
``` | ||
val arcProgressLoader = ArcProgressLoader(this, | ||
120, 20, | ||
10.0f, 180.0f, | ||
resources.getIntArray(R.array.colors_rgb)) | ||
containerLayout.addView(arcProgressLoader) | ||
``` | ||
|
||
* Java | ||
``` | ||
ArcProgressLoader arcProgressLoader = new ArcProgressLoader(this, | ||
120, 20, | ||
10.0f, 180.0f, | ||
getResources().getIntArray(R.array.colors_rgb)); | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?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.ArcProgressLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:arcprogress_arcColorsArray="@array/colors_red" | ||
app:arcprogress_arcRadius="30dp" | ||
app:arcprogress_arcWidth="5dp" | ||
app:arcprogress_incrementalAngle="8.0" | ||
app:arcprogress_maxArcAngle="200.0" /> | ||
|
||
|
||
<com.agrawalsuneet.loaderspack.loaders.ArcProgressLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:arcprogress_arcColorsArray="@array/colors_amber" | ||
app:arcprogress_arcRadius="30dp" | ||
app:arcprogress_arcWidth="5dp" | ||
app:arcprogress_incrementalAngle="8.0" | ||
app:arcprogress_maxArcAngle="200.0" /> | ||
|
||
<com.agrawalsuneet.loaderspack.loaders.ArcProgressLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:arcprogress_arcColorsArray="@array/colors_green" | ||
app:arcprogress_arcRadius="30dp" | ||
app:arcprogress_arcWidth="5dp" | ||
app:arcprogress_incrementalAngle="8.0" | ||
app:arcprogress_maxArcAngle="200.0" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
<com.agrawalsuneet.loaderspack.loaders.ArcProgressLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:arcprogress_arcColorsArray="@array/colors_rgb" | ||
app:arcprogress_arcRadius="60dp" | ||
app:arcprogress_arcWidth="8dp" | ||
app:arcprogress_incrementalAngle="7.0" | ||
app:arcprogress_maxArcAngle="220.0" /> | ||
|
||
<com.agrawalsuneet.loaderspack.loaders.ArcProgressLoader | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:arcprogress_arcColorsArray="@array/colors_blue" | ||
app:arcprogress_arcRadius="40dp" | ||
app:arcprogress_arcWidth="6dp" | ||
app:arcprogress_incrementalAngle="6.0" | ||
app:arcprogress_maxArcAngle="150.0" /> | ||
|
||
|
||
</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
Oops, something went wrong.