Skip to content

Commit 690cd5d

Browse files
afohrmanimhappi
authored andcommitted
[Side Sheet] Changed side sheet child containers in Catalog from LinearLayouts to FrameLayouts.
The LinearLayouts each contained only one child, so a FrameLayout is a better choice; more lightweight and slightly more performant. This is a visual no-op. PiperOrigin-RevId: 532823326
1 parent a0d4fa0 commit 690cd5d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

catalog/java/io/material/catalog/sidesheet/res/layout/cat_sidesheets.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<merge xmlns:android="http://schemas.android.com/apk/res/android"
1717
xmlns:app="http://schemas.android.com/apk/res-auto"
1818
xmlns:tools="http://schemas.android.com/tools">
19-
<LinearLayout
19+
<FrameLayout
2020
android:id="@+id/standard_side_sheet_container"
2121
style="@style/Widget.Material3.SideSheet"
2222
android:layout_width="256dp"
@@ -25,9 +25,9 @@
2525
app:layout_behavior="@string/side_sheet_behavior"
2626
tools:targetApi="lollipop">
2727
<include layout="@layout/cat_sidesheet_content" />
28-
</LinearLayout>
28+
</FrameLayout>
2929

30-
<LinearLayout
30+
<FrameLayout
3131
android:id="@+id/standard_detached_side_sheet_container"
3232
style="@style/Widget.Material3.SideSheet.Detached"
3333
android:layout_width="256dp"
@@ -36,9 +36,9 @@
3636
app:layout_behavior="@string/side_sheet_behavior"
3737
tools:targetApi="lollipop">
3838
<include layout="@layout/cat_sidesheet_detached_content" />
39-
</LinearLayout>
39+
</FrameLayout>
4040

41-
<LinearLayout
41+
<FrameLayout
4242
android:id="@+id/vertically_scrolling_side_sheet_container"
4343
style="@style/Widget.Material3.SideSheet"
4444
android:layout_width="256dp"
@@ -47,9 +47,9 @@
4747
app:layout_behavior="@string/side_sheet_behavior"
4848
tools:targetApi="lollipop">
4949
<include layout="@layout/cat_sidesheet_content_vertically_scrolling" />
50-
</LinearLayout>
50+
</FrameLayout>
5151

52-
<LinearLayout
52+
<FrameLayout
5353
android:id="@+id/coplanar_side_sheet_container"
5454
style="@style/Widget.Material3.SideSheet"
5555
android:layout_width="256dp"
@@ -59,9 +59,9 @@
5959
app:layout_behavior="@string/side_sheet_behavior"
6060
tools:targetApi="lollipop">
6161
<include layout="@layout/cat_sidesheet_content_coplanar" />
62-
</LinearLayout>
62+
</FrameLayout>
6363

64-
<LinearLayout
64+
<FrameLayout
6565
android:id="@+id/coplanar_detached_side_sheet_container"
6666
style="@style/Widget.Material3.SideSheet.Detached"
6767
android:layout_width="256dp"
@@ -71,5 +71,5 @@
7171
app:layout_behavior="@string/side_sheet_behavior"
7272
tools:targetApi="lollipop">
7373
<include layout="@layout/cat_sidesheet_content_coplanar_detached" />
74-
</LinearLayout>
74+
</FrameLayout>
7575
</merge>

0 commit comments

Comments
 (0)