From 8bf35944326a70265bcdb82640315826348f6951 Mon Sep 17 00:00:00 2001 From: saviukd Date: Thu, 1 Sep 2016 21:04:23 +0200 Subject: [PATCH] Update readme --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0e3032d..c8fd82c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ 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); ``` @@ -41,17 +41,21 @@ It honors its position and size changes, including view animation and property a ```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