An open API service indexing awesome lists of open source software.

https://github.com/virtualvivek/blurshadowimageview

A library for Android provides blurred drop shadows to ImageView similar to iOS image backdrop shadows.Provides fast canvas draw as no renderscript needed .The similar shadow blurred effects can also be seen in iOS Music App.
https://github.com/virtualvivek/blurshadowimageview

android android-library android-ui backdrop-shadows blur blur-imageview blurimageview blurred-background blurred-drop-shadows blurview image imageview ios-music java library shadow-imageview

Last synced: about 1 month ago
JSON representation

A library for Android provides blurred drop shadows to ImageView similar to iOS image backdrop shadows.Provides fast canvas draw as no renderscript needed .The similar shadow blurred effects can also be seen in iOS Music App.

Awesome Lists containing this project

README

        




Android



MinSDK



JitPack



Codacy Badge



Library Size


This library provides blurred drop shadows to ImageView similar to iOS backdrop shadows.Provides fast canvas draw as no renderscript needed .The similar shadow blurred effects can also be seen in iOS Music App.

# Download Demo App

Download the demo app .apk file here


Demo App


## Scan to Download
Demo App

# Installation
Add it in your root build.gradle at the end of repositories :
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

Add the following dependency to your app build.gradle file :
```gradle
dependencies {
implementation 'com.github.virtualvivek:BlurShadowImageView:4.0'
}
```

# How to use
## Using Xml to config

```xml

```

## Use Java code to config
```js
BlurShadowImageView blurshadowimageview = findViewById(R.id.blurSImageView);

//Sets Border Round Radius
blurshadowimageview.setRound((int) value);

//Sets Image Resource
blurshadowimageview.setImageResource(ImgRes);

//Sets Image Drawable
blurshadowimageview.setImageDrawable(drawable);

//Sets Image Bitmap
blurshadowimageview.setImageBitmap(bitmap);

```

# Load image with Picasso

```js
Target target = new Target() {
@Override
public void onBitmapLoaded(Bitmap bitmap,
Picasso.LoadedFrom from) {
// Bitmap is loaded, use Image here
demo_img.setImageBitmap(bitmap);
}
@Override
public void onBitmapFailed(Exception e, Drawable d) {
// Fires if bitmap couldn't be loaded.
}
@Override
public void onPrepareLoad(Drawable d){
// Fires bitmap on prepare.
}
};

//Use this target for the Picasso.into() method
Picasso.get().load("https://i.imgur.com/DvpvklR.png").into(target);

```

# Image Blur Backdrop Offset

# Documentation

```yaml
app:v_imageSrc: "../refrence"
```
```yaml
app:v_imageRound: "(int)dp"
```
```yaml
app:v_shadowOffset: "(int)dp"
```
```yaml
android:scaleType: ["center","centerCrop","fitEnd","fitCenter","fitXY","centerInside","fitStart","matrix"]
```

|Name|Format|Default|Details|
|:---:|:---:|:---:|:---:|
|app:v_imageSrc |reference|image|sets image to the ImageView|
|app:v_imageRound |dimension|10dp|sets border radius to the ImageView|
|app:v_shadowOffset|dimension|40dp|configure the distance between the Image and the Shadow|
|android:scaleType|string|"centerCrop"|configure the Image scaling|


## Find this library useful? :heart:
Support it by joining [**stargazers**](https://github.com/virtualvivek/BlurShadowImageView/stargazers) for this repository. :star:

# Branches
Branch -version 4.x [ AndroidX ] Current Branch

Branch -version 1.x Support Library View Branch

# License

BlurShadowImageView is licensed under `MIT license`. View [license](https://github.com/virtualvivek/BlurShadowImageView/blob/master/LICENSE).

Copyright (c) 2020-24 [**Vivek Verma**](https://github.com/virtualvivek)