Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
saviukd authored and saviukd committed Sep 1, 2016
1 parent d0b693a commit 8bf3594
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,29 @@ It honors its position and size changes, including view animation and property a

blurView.setupWith(rootView)
.windowBackground(windowBackground)
.blurAlgorithm(new RenderScriptBlur(this, true)) //Preferable algorithm, needs RenderScript support mode enabled
.blurAlgorithm(new RenderScriptBlur(this, true)) //optional, enabled by default
.blurRadius(radius);
```

## Enable RenderScript support mode:

```Groovy
defaultConfig {
renderscriptTargetApi 23
renderscriptTargetApi 24
renderscriptSupportModeEnabled true
}
```

## Perfomance
## Important:
BlurView can be used only in hardware-accelerated window.
Otherwise, blur will not be drawn. It will fallback to a regular FrameLayout drawing process.

## Performance
It takes 1-4ms on Nexus 5 and Nexus 4 to draw BlurView with the setup given in example project

## Gradle
```Groovy
compile 'com.eightbitlab:blurview:1.1.2'
compile 'com.eightbitlab:blurview:1.2.0'
```

License
Expand Down

0 comments on commit 8bf3594

Please sign in to comment.