Skip to content

Commit 0ae84b0

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 013afed + 1017de5 commit 0ae84b0

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ USAGE
1616
To make a circular ImageView add CircularImageView in your layout XML and add CircularImageView library in your project or you can also grab it via Gradle:
1717

1818
```groovy
19-
compile 'com.mikhaellopez:circularimageview:2.0.1'
19+
compile 'com.mikhaellopez:circularimageview:2.0.2'
2020
```
2121

2222
XML
@@ -29,27 +29,36 @@ XML
2929
android:src="@drawable/image"
3030
app:border_color="#EEEEEE"
3131
app:border_width="4dp"
32-
app:shadow="true" />
32+
app:shadow="true"
33+
app:shadow_radius="10"
34+
app:shadow_color="#8BC34A"/>
3335
```
3436

3537
You must use the following properties in your XML to change your CircularImageView.
3638

3739

3840
#####Properties:
3941

40-
* `app:border` (boolean) -> default true
41-
* `app:border_color` (color) -> default WHITE
42-
* `app:border_width` (dimension) -> default 4dp
43-
* `app:shadow` (boolean) -> default false
42+
* `app:border` (boolean) -> default true
43+
* `app:border_color` (color) -> default WHITE
44+
* `app:border_width` (dimension) -> default 4dp
45+
* `app:shadow` (boolean) -> default false
46+
* `app:shadow_color` (color) -> default BLACK
47+
* `app:shadow_radius` (float) -> default 8.0f
4448

4549
JAVA
4650
-----
4751

4852
```java
4953
CircularImageView circularImageView = (CircularImageView)findViewById(R.id.yourCircularImageView);
54+
// Set Border
5055
circularImageView.setBorderColor(getResources().getColor(R.color.GrayLight));
5156
circularImageView.setBorderWidth(10);
57+
// Add Shadow with default param
5258
circularImageView.addShadow();
59+
// or with custom param
60+
circularImageView.setShadowRadius(15);
61+
circularImageView.setShadowColor(Color.RED);
5362
```
5463

5564
LINK

0 commit comments

Comments
 (0)