Visual updated for CollapsingToolbarLayout
- Tweak the margin for expanded title - Increase the height of content scrim - Enlarge the font size for expanded title Bug: 177191754 Test: visual verified Change-Id: I2463aa45cd60de1333b6433310f9bf69f090c958
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
android:id="@+id/appbar_layout"
|
android:id="@+id/appbar_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="160dp"
|
android:layout_height="180dp"
|
||||||
android:theme="@style/Theme.CollapsingToolbar.Settings">
|
android:theme="@style/Theme.CollapsingToolbar.Settings">
|
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
app:collapsedTitleTextAppearance="@style/ToolbarText.Collapsed"
|
app:collapsedTitleTextAppearance="@style/ToolbarText.Collapsed"
|
||||||
app:statusBarScrim="?android:attr/colorPrimary"
|
app:statusBarScrim="?android:attr/colorPrimary"
|
||||||
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
||||||
|
app:expandedTitleMarginStart="18dp"
|
||||||
app:toolbarId="@id/tool_bar">
|
app:toolbarId="@id/tool_bar">
|
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar
|
<androidx.appcompat.widget.Toolbar
|
||||||
|
@@ -887,7 +887,7 @@
|
|||||||
|
|
||||||
<style name="ToolbarText"
|
<style name="ToolbarText"
|
||||||
parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title" >
|
parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title" >
|
||||||
<item name="android:textSize">32sp</item>
|
<item name="android:textSize">36sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="ToolbarText.MoreThanTwoLines">
|
<style name="ToolbarText.MoreThanTwoLines">
|
||||||
|
Reference in New Issue
Block a user