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.

BlurButtonView is an Android button component that renders a live Gaussian blur behind its surface, producing a frosted-glass visual effect. It extends the standard button interaction model with blur radius, overlay color, rounded corners, and full icon customization — letting you create glassy call-to-action buttons that feel native to modern Android design.

Usage

<com.qmdeve.blurview.widget.BlurButtonView
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button Test"
    app:buttonCornerRadius="12dp"
    app:buttonIconPadding="8dp"
    app:buttonIconSize="24dp"
    app:buttonTextBold="true"
    app:blurRadius="12dp"
    app:overlayColor="#80FFFFFF"
    android:icon="?android:attr/actionModeWebSearchDrawable"
    app:buttonIconTint="@color/black"/>

Attributes

AttributeTypeDescription
app:buttonCornerRadiusdimensionCorner radius of the button surface
app:buttonIconPaddingdimensionPadding between the icon and the button text
app:buttonIconSizedimensionSize of the button icon
app:buttonTextBoldbooleanWhether the button label is rendered in bold
app:blurRadiusdimensionBlur radius of the background blur effect
app:overlayColorcolorOverlay color tinted on top of the blurred background
app:buttonIconTintcolorTint color applied to the button icon
android:iconDrawable resource used as the button icon
android:textLabel text displayed on the button
android:textSizeFont size of the button label

API Reference

MethodDescription
setTextSet the button label text
setButtonCornerRadiusSet the corner radius of the button
setTextSizeSet the font size of the label
setTextColorSet the color of the label text
setTextBoldSet whether the label is bold
setIcon / setIconResourceSet the button icon from a Drawable or resource ID
setIconSizeSet the size of the button icon
setIconPaddingSet the padding between the icon and the label
setIconTintSet the tint color applied to the icon

Build docs developers (and LLMs) love