diff options
author | Tony Wickham <twickham@google.com> | 2017-04-11 17:21:12 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-04-13 12:12:52 -0700 |
commit | b5ac4ed5ec47cd6018bb6575852e2ec69c3592e8 (patch) | |
tree | 7b624dfce2edd399f564ab1fed9fa4d2d127870a /res | |
parent | 25e8f6d83e41e80a49d31fbbe4d9a94d854f726d (diff) | |
download | android_packages_apps_Trebuchet-b5ac4ed5ec47cd6018bb6575852e2ec69c3592e8.tar.gz android_packages_apps_Trebuchet-b5ac4ed5ec47cd6018bb6575852e2ec69c3592e8.tar.bz2 android_packages_apps_Trebuchet-b5ac4ed5ec47cd6018bb6575852e2ec69c3592e8.zip |
Update widgets bottom sheet to match redlines
- Remove "Configurable shortcuts" row, and put all widgets in one row
- Update some sizes and colors and text
- Center widget row if only one widget
Bug: 35766387
Change-Id: Ic3850feadee1cbbbdd68a772f597741d54949703
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/widgets_and_more.xml | 50 | ||||
-rw-r--r-- | res/values/strings.xml | 4 |
2 files changed, 14 insertions, 40 deletions
diff --git a/res/layout/widgets_and_more.xml b/res/layout/widgets_and_more.xml index 7a6d00688..6764aa7cb 100644 --- a/res/layout/widgets_and_more.xml +++ b/res/layout/widgets_and_more.xml @@ -19,7 +19,8 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="8dp" + android:paddingStart="16dp" + android:paddingTop="28dp" android:background="?android:attr/colorPrimary" android:elevation="@dimen/deep_shortcuts_elevation" android:layout_gravity="bottom"> @@ -27,54 +28,27 @@ <TextView android:id="@+id/title" android:layout_width="match_parent" - android:layout_height="48dp" - android:gravity="center_horizontal|bottom" - android:fontFamily="sans-serif" - android:textStyle="bold" - android:textColor="?android:attr/textColorPrimary" - android:textSize="20sp"/> - - <TextView - android:layout_width="match_parent" - android:layout_height="48dp" - android:gravity="center_horizontal|top" + android:layout_height="wrap_content" + android:gravity="center_horizontal" android:fontFamily="sans-serif" android:textColor="?android:attr/textColorPrimary" - android:textSize="16sp" - android:text="@string/long_press_widget_to_add"/> + android:textSize="24sp"/> <TextView - android:id="@+id/widgets_header" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:paddingTop="4dp" android:fontFamily="sans-serif" - android:textColor="?android:attr/textColorPrimary" - android:textSize="16sp" - android:textStyle="bold" - android:text="@string/widget_button_text"/> + android:textColor="?android:attr/textColorTertiary" + android:textSize="14sp" + android:text="@string/long_press_widget_to_add"/> <include layout="@layout/widgets_scroll_container" android:id="@+id/widgets" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/widget_row_padding" - android:layout_marginBottom="@dimen/widget_row_padding"/> - - <TextView - android:id="@+id/shortcuts_header" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fontFamily="sans-serif" - android:textColor="?android:attr/textColorPrimary" - android:textSize="16sp" - android:textStyle="bold" - android:text="@string/widgets_bottom_sheet_custom_shortcuts_section_title"/> - - <include layout="@layout/widgets_scroll_container" - android:id="@+id/shortcuts" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/widget_row_padding" - android:layout_marginBottom="@dimen/widget_row_padding" /> + android:layout_marginTop="45dp" + android:layout_marginBottom="40dp"/> </com.android.launcher3.widget.WidgetsAndMore>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index eddae621e..4bee87d33 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -205,8 +205,8 @@ <string name="app_waiting_download_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> waiting to install</string> <!-- Strings for widgets & more in the popup container/bottom sheet --> - <string name="widgets_and_more" translatable="false">Widgets & more</string> - <string name="widgets_bottom_sheet_custom_shortcuts_section_title" translatable="false">Custom shortcuts</string> + <!-- Title for a bottom sheet that shows widgets for a particular app --> + <string name="widgets_bottom_sheet_title"><xliff:g id="name" example="Messenger">%1$s</xliff:g> widgets</string> <!-- Strings for accessibility actions --> <!-- Accessibility action to add an app to workspace. [CHAR_LIMIT=30] --> |