@@ -14,7 +14,7 @@ Or get it using **Gradle:**
1414
1515```` groovy
1616dependencies {
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);
5456imageView. setBorderWidth(TypedValue . COMPLEX_UNIT_DIP , 2 );
5557imageView. setPlaceholder(" CV" , Color . BLACK , Color . WHITE );
5658imageView. 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
8190Methods 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() ` )
0 commit comments