Set a maximum width for the settings bottom panel on large screens

Bug: 187297703
Test: manual
Change-Id: I18ec554dbb6edae88b1d73f4682a77106f787461
This commit is contained in:
Alex Florescu
2021-08-12 14:32:30 +01:00
parent e9f836a004
commit 9fab04b913
3 changed files with 5 additions and 1 deletions

View File

@@ -18,8 +18,9 @@
<FrameLayout <FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/panel_container" android:id="@+id/panel_container"
android:layout_width="match_parent" android:layout_width="@dimen/settings_panel_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@drawable/settings_panel_rounded_top_corner_background" > android:background="@drawable/settings_panel_rounded_top_corner_background" >
<LinearLayout <LinearLayout

View File

@@ -66,4 +66,6 @@
<!-- Padding for screen pinning --> <!-- Padding for screen pinning -->
<dimen name="screen_pinning_padding_start">40dp</dimen> <dimen name="screen_pinning_padding_start">40dp</dimen>
<dimen name="screen_pinning_padding_end">40dp</dimen> <dimen name="screen_pinning_padding_end">40dp</dimen>
<dimen name="settings_panel_width">560dp</dimen>
</resources> </resources>

View File

@@ -426,6 +426,7 @@
<!-- Settings panel related dimensions --> <!-- Settings panel related dimensions -->
<dimen name="settings_panel_corner_radius">28dp</dimen> <dimen name="settings_panel_corner_radius">28dp</dimen>
<dimen name="settings_panel_title_margin">24dp</dimen> <dimen name="settings_panel_title_margin">24dp</dimen>
<dimen name="settings_panel_width">@dimen/match_parent</dimen>
<!-- Text padding for EmptyTextSettings --> <!-- Text padding for EmptyTextSettings -->
<dimen name="empty_text_padding">24dp</dimen> <dimen name="empty_text_padding">24dp</dimen>