500px-android-blur

Additional

Language
Java
Version
N/A
Created
Mar 13, 2015
Updated
Apr 20, 2020 (Retired)
Owner
500px
Contributors
Priyesh Patel (ItsPriyesh)
Martin K (mck182)
wangcong (king6cong)
3
Activity
Badge
Generate
Download
Source code

[Currently unmaintained]

500px Android Blurring View

For more information, please see our blog post.

Download

Define via Gradle:

repositories {
    maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' }
}

dependencies {
    compile 'com.fivehundredpx:blurringview:1.0.0'
}

Enable renderscript in your module's defaultConfig:

android {
    defaultConfig {

        renderscriptTargetApi 21
        renderscriptSupportModeEnabled true
        ...
    }
}

Usage

First, give the blurring view a reference to the view to be blurred:

blurringView.setBlurredView(blurredView);

and then whenever the blurred view changes, invalidate the blurring view:

blurringView.invalidate();

Demo

License

This project is licensed under the terms of the MIT license.