Skip to content

Commit

Permalink
[Side Sheet] Changed side sheet title text appearance to Title Large.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
afohrman authored and imhappi committed May 22, 2023
1 parent af1fa70 commit a0d4fa0
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
android:id="@+id/side_sheet_title_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingBottom="24dp"
android:text="@string/cat_sidesheet_standard_title"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceTitleLarge"
app:layout_constraintEnd_toStartOf="@id/close_icon_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -49,8 +50,10 @@
android:id="@+id/side_sheet_state_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="4dp"
android:text="@string/cat_sidesheet_state_settling"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceBodyLarge"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -60,8 +63,9 @@
android:id="@+id/side_sheet_slide_offset_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/cat_sidesheet_slide_offset_text"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceBodyLarge"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
android:id="@+id/coplanar_side_sheet_title_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingBottom="24dp"
android:text="@string/cat_sidesheet_coplanar_title"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceTitleLarge"
app:layout_constraintEnd_toStartOf="@id/coplanar_side_sheet_close_icon_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -59,19 +60,23 @@
android:id="@+id/coplanar_side_sheet_state_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="4dp"
android:text="@string/cat_sidesheet_state_settling"
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
android:textAppearance="?attr/textAppearanceBodyLarge" />

<TextView
android:id="@+id/coplanar_side_sheet_slide_offset_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/cat_sidesheet_slide_offset_text"
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
android:textAppearance="?attr/textAppearanceBodyLarge" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="24dp"
android:text="@string/cat_sidesheet_filler_text" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
android:id="@+id/coplanar_detached_side_sheet_title_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingBottom="24dp"
android:text="@string/cat_sidesheet_coplanar_detached_title"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceTitleLarge"
app:layout_constraintEnd_toStartOf="@id/coplanar_detached_side_sheet_close_icon_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -59,19 +60,23 @@
android:id="@+id/coplanar_detached_side_sheet_state_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="4dp"
android:text="@string/cat_sidesheet_state_settling"
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
android:textAppearance="?attr/textAppearanceBodyLarge" />

<TextView
android:id="@+id/coplanar_detached_side_sheet_slide_offset_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/cat_sidesheet_slide_offset_text"
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
android:textAppearance="?attr/textAppearanceBodyLarge" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="24dp"
android:text="@string/cat_sidesheet_filler_text" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
android:id="@+id/vertically_scrolling_side_sheet_title_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingBottom="24dp"
android:text="@string/cat_sidesheet_standard_title"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceTitleLarge"
app:layout_constraintEnd_toStartOf="@id/vertically_scrolling_side_sheet_close_icon_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -59,19 +60,23 @@
android:id="@+id/vertically_scrolling_side_sheet_state_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="4dp"
android:text="@string/cat_sidesheet_state_settling"
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
android:textAppearance="?attr/textAppearanceBodyLarge" />

<TextView
android:id="@+id/vertically_scrolling_side_sheet_slide_offset_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/cat_sidesheet_slide_offset_text"
android:textAppearance="?attr/textAppearanceHeadlineSmall" />
android:textAppearance="?attr/textAppearanceBodyLarge" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="24dp"
android:text="@string/cat_sidesheet_filler_text" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
android:id="@+id/detached_side_sheet_title_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="24dp"
android:text="@string/cat_sidesheet_standard_detached_title"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceTitleLarge"
app:layout_constraintEnd_toStartOf="@id/detached_close_icon_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -49,8 +51,10 @@
android:id="@+id/detached_side_sheet_state_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="4dp"
android:text="@string/cat_sidesheet_state_settling"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceBodyLarge"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/detached_side_sheet_title_text" />
Expand All @@ -59,8 +63,9 @@
android:id="@+id/detached_side_sheet_slide_offset_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/cat_sidesheet_slide_offset_text"
android:textAppearance="?attr/textAppearanceHeadlineSmall"
android:textAppearance="?attr/textAppearanceBodyLarge"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/detached_side_sheet_state_text" />
Expand Down

0 comments on commit a0d4fa0

Please sign in to comment.