Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ironsteel/blur-view-library
- Owner: ironsteel
- Created: 2014-02-04T10:30:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-05T16:36:20.000Z (almost 11 years ago)
- Last Synced: 2023-03-11T04:29:51.364Z (almost 2 years ago)
- Language: Java
- Size: 2.35 MB
- Stars: 58
- Watchers: 8
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - blur-view-library - Using render script to blur background of views (etc)
- awesome - blur-view-library - Using render script to blur background of views (etc)
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 layoutExample:
```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