Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/QmDeve/QmBlurView-Docs/llms.txt

Use this file to discover all available pages before exploring further.

BlurView is a drop-in Android view that renders a live Gaussian blur over whatever content sits behind it. Use it anywhere you want a frosted-glass panel — floating cards, bottom sheets, dialog backgrounds, or any overlay that needs to feel visually connected to the content underneath while keeping that content legible.

Usage

<com.qmdeve.blurview.widget.BlurView
    android:id="@+id/blurView"
    android:layout_width="match_parent"
    android:layout_height="100dp"
    app:blurRadius="20dp"
    app:overlayColor="#80FFFFFF"
    app:cornerRadius="24dp"/>

Attributes

app:blurRadius
dimension
default:"10"
Blur radius. Higher values produce a stronger, wider blur.
app:overlayColor
color
default:"#AAFFFFFF"
Overlay color tinted on top of the blurred content. Use an alpha channel to control opacity.
app:cornerRadius
dimension
default:"0"
Corner radius of the view. Set to clip the blur surface to rounded corners.
app:setDownsampleFactor
float
default:"0"
Downsample factor applied before blurring. Higher values improve rendering performance at the cost of blur quality.

API Reference

MethodDescription
setBlurRadius(float)Set the blur radius
setOverlayColor(int)Set the overlay color
setCornerRadius(float)Set the corner radius
setDownsampleFactor(float)Set the downsample factor
On lower-end devices, call setDownsampleFactor() with a value greater than 1 to reduce the resolution of the blur input bitmap before processing. Start around 24 and tune until you reach an acceptable balance between frame rate and visual quality.

Build docs developers (and LLMs) love