Skip to content

Commit

Permalink
docs: 📝 add detailded example code for collapsing toolbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
cworld1 committed Dec 9, 2023
1 parent 392acf9 commit 13b8fd3
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 13b8fd3

Please sign in to comment.