Skip to content

500px/500px-android-blur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

01bd56f · Apr 20, 2020

History

25 Commits
Oct 14, 2016
Oct 14, 2016
Oct 14, 2016
Feb 25, 2016
Mar 13, 2015
Mar 30, 2015
Apr 20, 2020
Mar 24, 2015
Oct 14, 2016
Mar 13, 2015
Mar 13, 2015
Mar 13, 2015
Mar 13, 2015

Repository files navigation

[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

500px Blurring View Demo

License

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