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.

BlurTitlebarView is a ready-to-use Android toolbar replacement that renders a real-time Gaussian blur behind its surface. Drop it at the top of any screen to give your app bar a frosted-glass appearance while keeping the content scrolling beneath it fully visible. It supports a primary title, an optional subtitle, a configurable back button, a menu action (icon or text), and a centered-title layout mode — all configurable via XML attributes or the programmatic API.

Usage

<com.qmdeve.blurview.widget.BlurTitlebarView
    android:id="@+id/blurTitlebar1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:overlayColor="#D1FFFFFF"
    app:blurRadius="30dp"
    app:showBack="true"
    app:menuIcon="?android:attr/actionModeWebSearchDrawable"
    app:titleText="Title Test"
    app:subtitleText="Subheading Test"
    app:centerTitle="false"/>

Attributes

AttributeTypeDescription
app:titleTextstringPrimary title text displayed in the bar
app:subtitleTextstringSecondary subtitle text displayed below the title
app:titleTextColorcolorColor of the title text
app:subtitleTextColorcolorColor of the subtitle text
app:showBackbooleanWhether to show the back navigation button
app:backIconreferenceDrawable resource used as the back button icon
app:backIconTintcolorTint color applied to the back button icon
app:menuTextstringText label for the menu action
app:menuTextColorcolorColor of the menu action text
app:menuIconreferenceDrawable resource used as the menu action icon
app:menuIconTintcolorTint color applied to the menu action icon
app:centerTitlebooleanWhether to center the title and subtitle horizontally

API Reference

MethodDescription
setTitleText(String)Set the primary title text
setSubtitleText(String)Set the subtitle text
setTitleTextColor(int)Set the color of the title text
setSubtitleTextColor(int)Set the color of the subtitle text
setShowBack(boolean)Show or hide the back navigation button
setBackIcon(Drawable)Set the back button icon from a Drawable
setBackIconTint(int)Set the tint color of the back button icon
setMenuText(String)Set the menu action label text
setMenuTextColor(int)Set the color of the menu action text
setMenuIcon(Drawable)Set the menu action icon from a Drawable
setMenuIconTint(int)Set the tint color of the menu action icon
setCenterTitle(boolean)Enable or disable centered title layout

Build docs developers (and LLMs) love