Skip to content

Commit 03228ff

Browse files
committed
Update 1.0.0
1 parent 36bd1a5 commit 03228ff

File tree

4 files changed

+78
-56
lines changed

4 files changed

+78
-56
lines changed

README.md

Lines changed: 69 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11

2-
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ShadowLayout-blue.svg?style=flat-square)](http://android-arsenal.com/details/1/3524)
3-
4-
ShadowLayout
2+
PulseView
53
===================
64

7-
This library allows you to create a shadow effect for your layout based on your child.
5+
Widget that generates pulsation relative to your icons.
86

9-
![](https://lh4.googleusercontent.com/-2JB-2cEv8lk/Vx4FmHQhjOI/AAAAAAAACTA/nrRGFjcQXBsGiISYSZ5k8gUsVcRw5GSRQCL0B/w349-h552-no/sl.png)
7+
![](https://lh4.googleusercontent.com/-mqVBaXK0XM0/VyhroJmmU7I/AAAAAAAACUs/OmfzeRZsYNQhNAdgFmKvFIU5XDiJ3-z3wCL0B/w401-h689-no/pv.gif)
108

11-
U can check the sample app [here](https://github.com/DevLight-Mobile-Agency/ShadowLayout/tree/master/app).
9+
U can check the sample app [here](https://github.com/DevLight-Mobile-Agency/PulseView/tree/master/app).
1210

1311
Download
1412
------------
1513

16-
You can download a .aar` from GitHub's [releases page](https://github.com/DevLight-Mobile-Agency/ShadowLayout/releases).
14+
You can download a .aar` from GitHub's [releases page](https://github.com/DevLight-Mobile-Agency/PulseView/releases).
1715

1816
Or use Gradle jCenter:
1917

@@ -25,21 +23,21 @@ dependencies {
2523
url 'http://dl.bintray.com/gigamole/maven/'
2624
}
2725
}
28-
compile 'com.github.devlight.shadowlayout:library:+'
26+
compile 'com.github.devlight.pulseview:library:+'
2927
}
3028
```
3129

3230
Or Gradle Maven Central:
3331

3432
```groovy
35-
compile 'com.github.devlight.shadowlayout:library:1.0.0'
33+
compile 'com.github.devlight.pulseview:library:1.0.0'
3634
```
3735

3836
Or Maven:
3937

4038
```groovy
4139
<dependency>
42-
<groupId>com.github.devlight.shadowlayout</groupId>
40+
<groupId>com.github.devlight.pulseview</groupId>
4341
<artifactId>library</artifactId>
4442
<version>1.0.0</version>
4543
<type>aar</type>
@@ -49,77 +47,102 @@ Or Maven:
4947
Android SDK Version
5048
=========
5149

52-
ShadowLayout requires a minimum sdk version of 11.
50+
PulseView requires a minimum sdk version of 11.
5351

5452
Sample
5553
========
56-
57-
For ShadowLayout you can set such parameters as:
54+
55+
For PulseView you can set such parameters as:
5856

59-
- shadowed:
57+
- icon:
6058

61-
allows you to handle shadow visibility.
59+
at first you need to set icon for PulseView.
6260

63-
- shadow distance:
61+
- icon width and height:
6462

65-
allows you to set distance of shadow.
66-
67-
- shadow angle:
63+
allows you to set size of the icon.
64+
65+
- pulse side measure:
66+
67+
allows you to set pulse side measure. Width or height of PulseView.
68+
69+
- pulse count:
6870

69-
allows you to set shadow angle.
71+
allows you to set pulse count.
7072

71-
- shadow radius:
73+
- pulse spawn period:
7274

73-
allows you to set shadow radius.
75+
allows you to set pulse spawn period.
7476

75-
- shadow color:
77+
- pulse alpha:
7678

77-
allows you to set shadow color.
79+
allows you to set alpha to pulse.
80+
81+
- pulse color:
82+
83+
allows you to set pulse color.
7884

79-
Angle can only be positive and be in range from 0 to 360 degrees.
85+
- interpolator:
86+
87+
allows you to set pulse interpolator. Choose yours.
8088

81-
ShadowLayout automatically set padding for shadow space draw.
89+
- listener:
90+
91+
allows you to set pulse listener. OnStart and OnFinish listeners.
92+
93+
In preview mode PulseView presents incorrectly cause of canvas can`t make scale in this mode.
8294

8395
Check out in code init:
8496

8597
```java
86-
final ShadowLayout shadowLayout = (ShadowLayout) findViewById(R.id.sl);
87-
shadowLayout.setIsShadowed(true);
88-
shadowLayout.setShadowAngle(45);
89-
shadowLayout.setShadowRadius(20);
90-
shadowLayout.setShadowDistance(30);
91-
shadowLayout.setShadowColor(Color.DKGRAY);
98+
final PulseView pulseView = (PulseView) findViewById(R.id.pv);
99+
pulseView.setPulseColor(Color.BLACK);
100+
pulseView.setPulseCount(5);
101+
pulseView.setPulseMeasure(PulseView.PulseMeasure.WIDTH);
102+
pulseView.setIconHeight(200);
103+
pulseView.setIconWidth(200);
104+
pulseView.setIconRes(R.drawable.icon);
105+
pulseView.setPulseAlpha(70);
106+
pulseView.setInterpolator(new LinearInterpolator());
107+
pulseView.setPulseListener(new PulseView.PulseListener(...));
108+
```
109+
110+
To start or finish pulse you need to call methods:
111+
112+
```java
113+
pulseView.startPulse();
114+
pulseView.finishPulse();
92115
```
93116
94117
Other methods check out in sample.
95118

96119
And XML init:
97120

98121
```xml
99-
<com.gigamole.samples.ShadowLayout
122+
<com.gigamole.library.PulseView
123+
android:id="@+id/pv"
100124
android:layout_width="match_parent"
101-
android:layout_height="wrap_content"
102-
app:sl_shadowed="true"
103-
app:sl_shadow_angle="45"
104-
app:sl_shadow_radius="20dp"
105-
app:sl_shadow_distance="30dp"
106-
app:sl_shadow_color="#000">
107-
108-
<!-- Set your child`s-->
109-
110-
</com.gigamole.samples.ShadowLayout>
125+
android:layout_height="match_parent"
126+
app:pv_icon="@drawable/icon"
127+
app:pv_alpha="70"
128+
app:pv_color="#eae761"
129+
app:pv_count="8"
130+
app:pv_measure="height"
131+
app:pv_icon_width="168dp"
132+
app:pv_icon_height="194dp"
133+
app:pv_spawn_period="700"
134+
app:pv_interpolator="@android:anim/linear_interpolator"/>
111135
```
112136

113137
Getting Help
114138
======
115139

116-
To report a specific problem or feature request, [open a new issue on Github](https://github.com/DevLight-Mobile-Agency/ShadowLayout/issues/new).
140+
To report a specific problem or feature request, [open a new issue on Github](https://github.com/DevLight-Mobile-Agency/PulseView/issues/new).
117141

118142
License
119143
======
120144

121-
Apache 2.0 and MIT. See [LICENSE](https://github.com/DevLight-Mobile-Agency/ShadowLayout/blob/master/LICENSE.txt) file for details.
122-
145+
Apache 2.0 and MIT. See [LICENSE](https://github.com/DevLight-Mobile-Agency/PulseView/blob/master/LICENSE.txt) file for details.
123146

124147
Author
125148
=======

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
app:pv_measure="height"
1818
app:pv_icon_width="168dp"
1919
app:pv_icon_height="194dp"
20-
app:pv_spawn_period="600"
20+
app:pv_spawn_period="700"
2121
app:pv_interpolator="@android:anim/linear_interpolator"/>
2222

2323
<TextView

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
9+
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1"
810
classpath 'com.android.tools.build:gradle:2.1.0'
9-
10-
// NOTE: Do not place your application dependencies here; they belong
11-
// in the individual module build.gradle files
1211
}
1312
}
1413

library/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ dependencies {
4545
compile 'org.jsoup:jsoup:+'
4646
}
4747

48-
def siteUrl = 'https://github.com/DevLight-Mobile-Agency/ShadowLayout'
49-
def gitUrl = 'https://github.com/DevLight-Mobile-Agency/ShadowLayout.git'
50-
group = "com.github.devlight.shadowlayout"
48+
def siteUrl = 'https://github.com/DevLight-Mobile-Agency/PulseView'
49+
def gitUrl = 'https://github.com/DevLight-Mobile-Agency/PulseView.git'
50+
group = "com.github.devlight.pulseview"
5151

5252
install {
5353
repositories.mavenInstaller {
@@ -57,8 +57,8 @@ install {
5757
packaging 'aar'
5858

5959
// Add your description here
60-
name 'ShadowLayout'
61-
description = 'This library allows you to create a shadow effect for your layout based on your child.'
60+
name 'PulseView'
61+
description = 'Widget that generates pulsation relative to your icons.'
6262
url siteUrl
6363

6464
// Set your license
@@ -115,7 +115,7 @@ bintray {
115115
pkg {
116116
repo = "maven"
117117
// it is the name that appears in bintray when logged
118-
name = "shadowlayout"
118+
name = "pulseview"
119119
websiteUrl = siteUrl
120120
vcsUrl = gitUrl
121121
licenses = ["Apache-2.0"]

0 commit comments

Comments
 (0)