Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit 89b5f51

Browse files
committed
Updated readme, new sample app APK
1 parent 3eda17d commit 89b5f51

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Or get it using **Gradle:**
1414

1515
````groovy
1616
dependencies {
17-
compile 'com.subinkrishna:circularimageview:1.1.0'
17+
compile 'com.subinkrishna:circularimageview:1.2.1'
1818
}
1919
````
2020

@@ -24,7 +24,7 @@ Or **Maven:**
2424
<dependency>
2525
<groupId>com.subinkrishna</groupId>
2626
<artifactId>circularimageview</artifactId>
27-
<version>1.1.0</version>
27+
<version>1.2.1</version>
2828
</dependency>
2929
````
3030

@@ -43,7 +43,9 @@ Or **Maven:**
4343
app:ci_placeholderBackgroundColor="@android:color/black"
4444
app:ci_placeholderText="CV"
4545
app:ci_placeholderTextSize="22sp"
46-
app:ci_placeholderTextColor="@android:color/white" />
46+
app:ci_placeholderTextColor="@android:color/white"
47+
app:ci_shadowRadius="5.0"
48+
app:ci_shadowColor="#999999" />
4749
````
4850

4951
**Java:**
@@ -54,6 +56,8 @@ imageView.setBorderColor(Color.WHITE);
5456
imageView.setBorderWidth(TypedValue.COMPLEX_UNIT_DIP, 2);
5557
imageView.setPlaceholder("CV", Color.BLACK, Color.WHITE);
5658
imageView.setPlaceholderTextSize(TypedValue.COMPLEX_UNIT_SP, 22);
59+
imageView.setShadowRadius(5.0f);
60+
imageView.setShadowColor(0xFF999999);
5761
````
5862

5963
**Custom Attributes**
@@ -66,6 +70,8 @@ imageView.setPlaceholderTextSize(TypedValue.COMPLEX_UNIT_SP, 22);
6670
* `ci_placeholderBackgroundColor` (default: `#FFDDDDDD`)
6771
* `ci_checked` (default: `false`)
6872
* `ci_checkedStateBackgroundColor` (default: `#FFBBBBBB`)
73+
* `ci_shadowRadius` (default: `0`)
74+
* `ci_shadowColor` (default: `#FF666666`)
6975

7076
**Java Methods**
7177

@@ -77,6 +83,9 @@ imageView.setPlaceholderTextSize(TypedValue.COMPLEX_UNIT_SP, 22);
7783
* `setCheckedStateBackgroundColor(@ColorInt int backgroundColor)`
7884
* `setImageAlpha(int alpha)`
7985
* `allowCheckStateAnimation(boolean allowAnimation)`
86+
* `setShadowRadius(float radius)`
87+
* `setShadowColor(@ColorInt int shadowColor)`
88+
* `allowCheckStateShadow(boolean allowShadow)`
8089

8190
Methods implemented from `android.widget.Checkable`
8291

@@ -169,6 +178,10 @@ Placeholder text is shown along with custom border & background when no bitmap i
169178

170179
## Changelog
171180

181+
#### 1.2.1
182+
183+
* Added support for shadows
184+
172185
#### 1.1.0
173186

174187
* Added support for alpha (`setImageAlpha(int alpha)` & `getImageAlpha()`)

apk/sample-app.apk

1.82 KB
Binary file not shown.

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ android {
3131
}
3232

3333
dependencies {
34-
compile project(':circularimageview')
34+
// compile project(':circularimageview')
3535
// compile fileTree(dir: 'libs', include: ['*.jar'])
3636
compile 'com.android.support:appcompat-v7:23.1.1'
3737
compile 'com.github.bumptech.glide:glide:3.6.1'
3838
compile 'com.squareup.picasso:picasso:2.5.2'
3939
compile 'com.jakewharton:butterknife:7.0.1'
40-
// compile 'com.subinkrishna:circularimageview:1.2.0'
40+
compile 'com.subinkrishna:circularimageview:1.2.1'
4141
compile 'com.android.support:design:23.1.1'
4242
}

0 commit comments

Comments
 (0)