The missing Android blurring library. Fast blur-behind layout that parallels iOS.
Switch branches/tags
Nothing to show
Clone or download
Latest commit a335e73 Nov 2, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.repo Update README buttons and code Oct 11, 2018
blurkit Increment version Nov 2, 2018
demo Rename package name from com to io Oct 11, 2018
gradle/wrapper Update Gradle and SDK versions Sep 25, 2018
.gitignore Add badges and update header on README Sep 15, 2018
LICENSE Add LICENSE Nov 25, 2016 Increment version Nov 2, 2018
build.gradle Increment version Nov 2, 2018 initial commit Nov 6, 2016
gradlew initial commit Nov 6, 2016
gradlew.bat initial commit Nov 6, 2016
settings.gradle initial commit Nov 6, 2016

BlurKit Header

Join Spectrum Buddy.Works

What Is BlurKit?

BlurKit is an extraordinarily easy to use and performant utility to render real time blur effects in Android.

BlurKit Demo


BlurKit is faster than other blurring libraries due to a number of bitmap retrieval and drawing optimizations. We've been logging benchmarks for the basic high-intensity tasks for a 300dp x 100dp BlurView:

Task BlurKit time Avg. time without BlurKit
Retrieve source bitmap 1-2 ms 8-25 ms
Blur and draw to BlurView 1-2 ms 10-50ms

This results in an average work/frame time of 2-4ms, which will be a seamless experience for most users and apps.


Add BlurKit to the dependencies block of the app level build.gradle:

dependencies {
    implementation 'io.alterac.blurkit:blurkit:1.1.0'



Add a BlurLayout to your XML layout just like any other view.


In the you need to override the onStart() and onStop() methods to include the BlurLayout functionality.

BlurLayout blurLayout;

protected void onCreate(Bundle savedInstanceState) {
    blurLayout = findViewById(;

protected void onStart() {

protected void onStop() {

The layout background will continuously blur the content behind it. If you know your background content will be somewhat static, you can set the layout fps to 0. At any time you can re-blur the background content by calling invalidate() on the BlurLayout.

    blurkit:blk_fps="0" />

Other attributes you can configure are the blur radius and the downscale factor. Getting these to work together well can take some experimentation. The downscale factor is a performance optimization; the bitmap for the background content will be downsized by this factor before being drawn and blurred.

    blurkit:blk_fps="60" />

Creating BlurKit Outside Of A Layout

You can use the BlurKit class which has a few useful blurring utilities. Before using this class outside of a BlurLayout, you need to initialize BlurKit.

public class MyApplication extends Application {
    public void onCreate() {

You can blur a View, or a Bitmap directly.

// View
BlurKit.getInstance().blur(View src, int radius);

// Bitmap
BlurKit.getInstance().blur(Bitmap src, int radius);

You can also fastBlur a View. This optimizes the view blurring process by allocating a downsized bitmap and using a Matrix with the bitmaps Canvas to prescale the drawing of the view to the bitmap.

BlurKit.getInstance().fastBlur(View src, int radius, float downscaleFactor);

Upcoming Features

  • SurfaceView support
  • Support for use outside of an Activity (dialogs, etc.)
  • Enhance retrieval of background content to only include views drawn behind the BlurLayout.


BlurKit is MIT licensed.

Blurkit is a sister project of CameraKit and maintained by the CameraKit team.