Skip to content

BlurTitlebarView

Use in XML layout

xml
<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"/>

Attribute Description

Attribute NameType
app:titleTextstring
app:subtitleTextstring
app:titleTextColorcolor
app:subtitleTextColorcolor
app:showBackboolean
app:backIconreference
app:backIconTintcolor
app:menuTextstring
app:menuTextColorcolor
app:menuIconreference
app:menuIconTintcolor
app:centerTitleboolean

Use code to dynamically switch the position of the title

java
blurTitlebarView.setCenterTitle(true);