Skip to content

Commit

Permalink
[Doc][TopAppBar] Detailed description of code example for collapsing …
Browse files Browse the repository at this point in the history
…toolbar style

Resolves #3915

GIT_ORIGIN_REV_ID=88bb0c690dc9fb8386165acfffcf9d18ae897f1d
PiperOrigin-RevId: 601582020

(cherry picked from commit b80efdd)
  • Loading branch information
cworld1 authored and hunterstich committed Mar 21, 2024
1 parent 104043c commit 29d3895
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/components/TopAppBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ In the layout:

<com.google.android.material.appbar.MaterialToolbar
...
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:elevation="0dp" />

</com.google.android.material.appbar.CollapsingToolbarLayout>
Expand Down Expand Up @@ -533,6 +535,8 @@ In the layout:
android:layout_height="?attr/collapsingToolbarLayoutLargeSize">

<com.google.android.material.appbar.MaterialToolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
...
android:elevation="0dp" />

Expand Down Expand Up @@ -580,6 +584,8 @@ In the layout:
android:contentDescription="@string/content_description_media" />

<com.google.android.material.appbar.MaterialToolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
...
android:background="@android:color/transparent" />

Expand Down Expand Up @@ -623,6 +629,7 @@ In the layout:

<com.google.android.material.appbar.MaterialToolbar
...
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
/>

Expand Down

0 comments on commit 29d3895

Please sign in to comment.