<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"/>
| 属性名 | 类型 | 默认值 | 说明 |
|---|
app:titleText | string | - | 标题文本 |
app:subtitleText | string | - | 副标题文本 |
app:titleTextColor | color | - | 标题文本颜色 |
app:subtitleTextColor | color | - | 副标题文本颜色 |
app:showBack | boolean | false | 是否显示返回按钮 |
app:backIcon | reference | - | 返回图标资源 |
app:backIconTint | color | - | 返回图标色调 |
app:menuText | string | - | 菜单文本 |
app:menuTextColor | color | - | 菜单文本颜色 |
app:menuIcon | reference | - | 菜单图标资源 |
app:menuIconTint | color | - | 菜单图标色调 |
app:centerTitle | boolean | false | 是否居中显示标题 |
blurTitlebarView.setCenterTitle(true);