Skip to content

Commit a0d4fa0

Browse files
afohrmanimhappi
authored andcommitted
[Side Sheet] Changed side sheet title text appearance to Title Large.
This change is in the Catalog, since the developer is responsible for layout elements within the side sheet. Also changed some other elements of the side sheet content layouts to balance out the visual look of the sheets. PiperOrigin-RevId: 532788247
1 parent af1fa70 commit a0d4fa0

File tree

5 files changed

+39
-15
lines changed

5 files changed

+39
-15
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
android:id="@+id/side_sheet_title_text"
4040
android:layout_width="0dp"
4141
android:layout_height="wrap_content"
42+
android:paddingBottom="24dp"
4243
android:text="@string/cat_sidesheet_standard_title"
43-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
44+
android:textAppearance="?attr/textAppearanceTitleLarge"
4445
app:layout_constraintEnd_toStartOf="@id/close_icon_button"
4546
app:layout_constraintStart_toStartOf="parent"
4647
app:layout_constraintTop_toTopOf="parent" />
@@ -49,8 +50,10 @@
4950
android:id="@+id/side_sheet_state_text"
5051
android:layout_width="wrap_content"
5152
android:layout_height="wrap_content"
53+
android:layout_gravity="center"
54+
android:paddingBottom="4dp"
5255
android:text="@string/cat_sidesheet_state_settling"
53-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
56+
android:textAppearance="?attr/textAppearanceBodyLarge"
5457
android:visibility="gone"
5558
app:layout_constraintEnd_toEndOf="parent"
5659
app:layout_constraintStart_toStartOf="parent"
@@ -60,8 +63,9 @@
6063
android:id="@+id/side_sheet_slide_offset_text"
6164
android:layout_width="wrap_content"
6265
android:layout_height="wrap_content"
66+
android:layout_gravity="center"
6367
android:text="@string/cat_sidesheet_slide_offset_text"
64-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
68+
android:textAppearance="?attr/textAppearanceBodyLarge"
6569
android:visibility="gone"
6670
app:layout_constraintEnd_toEndOf="parent"
6771
app:layout_constraintStart_toStartOf="parent"

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
android:id="@+id/coplanar_side_sheet_title_text"
3838
android:layout_width="0dp"
3939
android:layout_height="wrap_content"
40+
android:paddingBottom="24dp"
4041
android:text="@string/cat_sidesheet_coplanar_title"
41-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
42+
android:textAppearance="?attr/textAppearanceTitleLarge"
4243
app:layout_constraintEnd_toStartOf="@id/coplanar_side_sheet_close_icon_button"
4344
app:layout_constraintStart_toStartOf="parent"
4445
app:layout_constraintTop_toTopOf="parent" />
@@ -59,19 +60,23 @@
5960
android:id="@+id/coplanar_side_sheet_state_text"
6061
android:layout_width="wrap_content"
6162
android:layout_height="wrap_content"
63+
android:layout_gravity="center"
64+
android:paddingBottom="4dp"
6265
android:text="@string/cat_sidesheet_state_settling"
63-
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
66+
android:textAppearance="?attr/textAppearanceBodyLarge" />
6467

6568
<TextView
6669
android:id="@+id/coplanar_side_sheet_slide_offset_text"
6770
android:layout_width="wrap_content"
6871
android:layout_height="wrap_content"
72+
android:layout_gravity="center"
6973
android:text="@string/cat_sidesheet_slide_offset_text"
70-
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
74+
android:textAppearance="?attr/textAppearanceBodyLarge" />
7175

7276
<TextView
7377
android:layout_width="wrap_content"
7478
android:layout_height="wrap_content"
79+
android:paddingTop="24dp"
7580
android:text="@string/cat_sidesheet_filler_text" />
7681
</LinearLayout>
7782
</androidx.core.widget.NestedScrollView>

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
android:id="@+id/coplanar_detached_side_sheet_title_text"
3838
android:layout_width="0dp"
3939
android:layout_height="wrap_content"
40+
android:paddingBottom="24dp"
4041
android:text="@string/cat_sidesheet_coplanar_detached_title"
41-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
42+
android:textAppearance="?attr/textAppearanceTitleLarge"
4243
app:layout_constraintEnd_toStartOf="@id/coplanar_detached_side_sheet_close_icon_button"
4344
app:layout_constraintStart_toStartOf="parent"
4445
app:layout_constraintTop_toTopOf="parent" />
@@ -59,19 +60,23 @@
5960
android:id="@+id/coplanar_detached_side_sheet_state_text"
6061
android:layout_width="wrap_content"
6162
android:layout_height="wrap_content"
63+
android:layout_gravity="center"
64+
android:paddingBottom="4dp"
6265
android:text="@string/cat_sidesheet_state_settling"
63-
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
66+
android:textAppearance="?attr/textAppearanceBodyLarge" />
6467

6568
<TextView
6669
android:id="@+id/coplanar_detached_side_sheet_slide_offset_text"
6770
android:layout_width="wrap_content"
6871
android:layout_height="wrap_content"
72+
android:layout_gravity="center"
6973
android:text="@string/cat_sidesheet_slide_offset_text"
70-
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
74+
android:textAppearance="?attr/textAppearanceBodyLarge" />
7175

7276
<TextView
7377
android:layout_width="wrap_content"
7478
android:layout_height="wrap_content"
79+
android:paddingTop="24dp"
7580
android:text="@string/cat_sidesheet_filler_text" />
7681
</LinearLayout>
7782
</androidx.core.widget.NestedScrollView>

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
android:id="@+id/vertically_scrolling_side_sheet_title_text"
3838
android:layout_width="0dp"
3939
android:layout_height="wrap_content"
40+
android:paddingBottom="24dp"
4041
android:text="@string/cat_sidesheet_standard_title"
41-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
42+
android:textAppearance="?attr/textAppearanceTitleLarge"
4243
app:layout_constraintEnd_toStartOf="@id/vertically_scrolling_side_sheet_close_icon_button"
4344
app:layout_constraintStart_toStartOf="parent"
4445
app:layout_constraintTop_toTopOf="parent" />
@@ -59,19 +60,23 @@
5960
android:id="@+id/vertically_scrolling_side_sheet_state_text"
6061
android:layout_width="wrap_content"
6162
android:layout_height="wrap_content"
63+
android:layout_gravity="center"
64+
android:paddingBottom="4dp"
6265
android:text="@string/cat_sidesheet_state_settling"
63-
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
66+
android:textAppearance="?attr/textAppearanceBodyLarge" />
6467

6568
<TextView
6669
android:id="@+id/vertically_scrolling_side_sheet_slide_offset_text"
6770
android:layout_width="wrap_content"
6871
android:layout_height="wrap_content"
72+
android:layout_gravity="center"
6973
android:text="@string/cat_sidesheet_slide_offset_text"
70-
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
74+
android:textAppearance="?attr/textAppearanceBodyLarge" />
7175

7276
<TextView
7377
android:layout_width="wrap_content"
7478
android:layout_height="wrap_content"
79+
android:paddingTop="24dp"
7580
android:text="@string/cat_sidesheet_filler_text" />
7681
</LinearLayout>
7782
</androidx.core.widget.NestedScrollView>

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
android:id="@+id/detached_side_sheet_title_text"
4040
android:layout_width="0dp"
4141
android:layout_height="wrap_content"
42+
android:layout_gravity="center"
43+
android:paddingBottom="24dp"
4244
android:text="@string/cat_sidesheet_standard_detached_title"
43-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
45+
android:textAppearance="?attr/textAppearanceTitleLarge"
4446
app:layout_constraintEnd_toStartOf="@id/detached_close_icon_button"
4547
app:layout_constraintStart_toStartOf="parent"
4648
app:layout_constraintTop_toTopOf="parent" />
@@ -49,8 +51,10 @@
4951
android:id="@+id/detached_side_sheet_state_text"
5052
android:layout_width="wrap_content"
5153
android:layout_height="wrap_content"
54+
android:layout_gravity="center"
55+
android:paddingBottom="4dp"
5256
android:text="@string/cat_sidesheet_state_settling"
53-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
57+
android:textAppearance="?attr/textAppearanceBodyLarge"
5458
app:layout_constraintEnd_toEndOf="parent"
5559
app:layout_constraintStart_toStartOf="parent"
5660
app:layout_constraintTop_toBottomOf="@id/detached_side_sheet_title_text" />
@@ -59,8 +63,9 @@
5963
android:id="@+id/detached_side_sheet_slide_offset_text"
6064
android:layout_width="wrap_content"
6165
android:layout_height="wrap_content"
66+
android:layout_gravity="center"
6267
android:text="@string/cat_sidesheet_slide_offset_text"
63-
android:textAppearance="?attr/textAppearanceHeadlineSmall"
68+
android:textAppearance="?attr/textAppearanceBodyLarge"
6469
app:layout_constraintEnd_toEndOf="parent"
6570
app:layout_constraintStart_toStartOf="parent"
6671
app:layout_constraintTop_toBottomOf="@id/detached_side_sheet_state_text" />

0 commit comments

Comments
 (0)