Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ironsteel/blur-view-library

Using render script to blur background of views
https://github.com/ironsteel/blur-view-library

Last synced: about 1 month ago
JSON representation

Using render script to blur background of views

Awesome Lists containing this project

README

        

# Blur view library

[![Build Status](https://travis-ci.org/masconsult/blur-view-library.png?branch=master)](https://travis-ci.org/masconsult/blur-view-library)

FrameLayout view which blurs the parent view behind it using render script blur intrinsic from render script support library.

This library is a work in progress mainly becouse of performance issues when the parent view is not static (ie ScrollView, ListView).
Which means that its recomended for use with less dynamic layout.

## Requirements
+ ADT version >= 22.2
+ SDK Tools version >= 22.2
+ Android Build Tools version >= 18.1.0

## Sample

+ Sample app included in blur-view-sample

## Usage

+ Clone
+ Import blur-view-library in your IDE
+ Reference the library from your application project (e.g. project.properties)
+ Add android:hardwareAccelerated="false" in your activity declaration in AndroidManifest.xml
+ Declare custom namespace in your xml layout

Example:
```xml

```

+ Example usage in layout

```xml



```
**Default blur radius is 15 if omitted in xml layout.**

+ Get/Set blur radius from code

```java
view.setBlurRadius(val);
view.getBlurRaduis();
```

## Alternative libraries

- BlurEffectForAndroidDesign -
- android\_annblur -

## Credits

- Background image is from Nicolas Pomepuy's Blur Effect for Android Design -project

https://github.com/PomepuyN/BlurEffectForAndroidDesign