3535
3636# Download Demo App
3737
38- Download the demo app <code ><b >.apk</b ></code > file here
38+ Download the demo app <code ><b >.apk</b ></code > file here
3939
4040<a href =" apk/BlurShadow.apk " >
4141<img src="apk/preview/app_icon_demo_app.png" width="280"
4242 alt="Demo App" /></a >
4343
44- ## Scan to Download
44+ ## Scan to Download
4545<img src =" apk/app_barcode.PNG " width =" 180 " alt =" Demo App " />
4646
4747
@@ -59,11 +59,11 @@ allprojects {
5959Add the following dependency to your app build.gradle file :
6060``` js
6161dependencies {
62- implementation ' com.github.virtualvivek:BlurShadowImageView:2.0 '
62+ implementation ' com.github.virtualvivek:BlurShadowImageView:2.1 '
6363 }
6464 ```
6565
66- # How to use
66+ # How to use
6767## Using Xml to config
6868
6969``` xml
@@ -72,6 +72,7 @@ dependencies {
7272 android:layout_width=" 200dp"
7373 android:layout_height=" 220dp"
7474 android:layout_gravity=" center"
75+ android:scaleType=" centerCrop"
7576 app:v_shadowOffset=" 40dp"
7677 app:v_imageRound=" 20dp"
7778 app:v_imageSrc=" @drawable/nature" />
@@ -83,16 +84,16 @@ dependencies {
8384BlurShadowImageView blurshadowimageview = findViewById (R .id .blurSImageView );
8485
8586// Sets Border Round Radius
86- blurshadowimageview .setRound ((int) value);
87+ blurshadowimageview .setRound ((int) value);
8788
8889// Sets Image Resource
89- blurshadowimageview .setImageResource (ImgRes);
90+ blurshadowimageview .setImageResource (ImgRes);
9091
9192// Sets Image Drawable
92- blurshadowimageview .setImageDrawable (drawable);
93+ blurshadowimageview .setImageDrawable (drawable);
9394
9495// Sets Image Bitmap
95- blurshadowimageview .setImageBitmap (bitmap);
96+ blurshadowimageview .setImageBitmap (bitmap);
9697
9798```
9899
@@ -133,13 +134,19 @@ Picasso.get().load("https://i.imgur.com/DvpvklR.png").into(target);
133134```
134135
135136
136- # Documentation
137+ # Documentation
137138
138- | Name| Format| Default| Details|
139- | :---:| :---:| :---:| :---:|
140- | app: v_imageSrc | reference| image| sets image to the ImageView|
141- | app: v_imageRound | dimension| 10dp| sets border radius to the ImageView|
142- | app: v_shadowOffset | dimension| 40dp| configure the distance between the Image and the Shadow|
139+ #### app: v_imageSrc
140+ #### app: v_imageRound
141+ #### app: v_shadowOffset
142+ #### android: scaleType
143+
144+ | Name| Format| Default| Details|
145+ | :---:| :---:| :---:| :---:|
146+ | app: v_imageSrc | reference| image| sets image to the ImageView|
147+ | app: v_imageRound | dimension| 10dp| sets border radius to the ImageView|
148+ | app: v_shadowOffset | dimension| 40dp| configure the distance between the Image and the Shadow|
149+ | android: scaleType | string| "centerCrop"| configure the Image scaling|
143150
144151
145152## Find this library useful? :heart :
0 commit comments