From eb500d53d974b9427c6708f13707414da20d61e3 Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Mon, 23 Aug 2021 15:19:34 -0700 Subject: [PATCH] [AllApps] Polish views according to specs Bug: 196391749 Update work edu button stroke color Bug: 195497351 Update header font size for work apps paused state Bug: 192673256 Show ArrowTip elevation Bug: 192668800 Support for two line PopupOption view Test: visual Change-Id: I65f8c6152f54306756d6cb66de2581aff45b8d47 Merged-In: I65f8c6152f54306756d6cb66de2581aff45b8d47 --- res/drawable/padded_rounded_action_button.xml | 13 ++--- res/drawable/rounded_action_button.xml | 4 +- res/layout/arrow_toast.xml | 6 +-- res/layout/system_shortcut.xml | 3 +- res/layout/system_shortcut_content.xml | 47 +++++++++++++++++++ res/layout/work_apps_paused.xml | 2 +- res/values/dimens.xml | 3 ++ 7 files changed, 61 insertions(+), 17 deletions(-) create mode 100644 res/layout/system_shortcut_content.xml diff --git a/res/drawable/padded_rounded_action_button.xml b/res/drawable/padded_rounded_action_button.xml index 6432efd539..6863f92f0c 100644 --- a/res/drawable/padded_rounded_action_button.xml +++ b/res/drawable/padded_rounded_action_button.xml @@ -14,18 +14,11 @@ ~ limitations under the License. --> - + - - - - - + android:bottom="@dimen/padded_rounded_button_padding" /> - diff --git a/res/drawable/rounded_action_button.xml b/res/drawable/rounded_action_button.xml index f04389399f..b9942c0c92 100644 --- a/res/drawable/rounded_action_button.xml +++ b/res/drawable/rounded_action_button.xml @@ -19,7 +19,9 @@ xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:shape="rectangle"> - + diff --git a/res/layout/arrow_toast.xml b/res/layout/arrow_toast.xml index 9a6f8c35bd..88a92eb565 100644 --- a/res/layout/arrow_toast.xml +++ b/res/layout/arrow_toast.xml @@ -27,15 +27,13 @@ android:gravity="center" android:padding="16dp" android:background="@drawable/arrow_toast_rounded_background" - android:elevation="2dp" - android:outlineProvider="none" + android:elevation="@dimen/arrow_toast_elevation" android:textColor="@color/arrow_tip_view_content" android:textSize="14sp"/> diff --git a/res/layout/system_shortcut.xml b/res/layout/system_shortcut.xml index de091c51c7..331d2be3aa 100644 --- a/res/layout/system_shortcut.xml +++ b/res/layout/system_shortcut.xml @@ -18,7 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" android:layout_width="@dimen/bg_popup_item_width" - android:layout_height="@dimen/bg_popup_item_height" + android:layout_height="wrap_content" + android:minHeight="@dimen/bg_popup_item_height" android:elevation="@dimen/deep_shortcuts_elevation" android:background="@drawable/middle_item_primary" android:theme="@style/PopupItem" > diff --git a/res/layout/system_shortcut_content.xml b/res/layout/system_shortcut_content.xml new file mode 100644 index 0000000000..feab13d318 --- /dev/null +++ b/res/layout/system_shortcut_content.xml @@ -0,0 +1,47 @@ + + + + + + + + diff --git a/res/layout/work_apps_paused.xml b/res/layout/work_apps_paused.xml index ec34b47364..79bce70287 100644 --- a/res/layout/work_apps_paused.xml +++ b/res/layout/work_apps_paused.xml @@ -28,7 +28,7 @@ android:layout_marginTop="40dp" android:text="@string/work_apps_paused_title" android:textAlignment="center" - android:textSize="22sp" /> + android:textSize="18sp" /> 8dp 2dp + 2dp 10dp @@ -241,6 +242,7 @@ 2dp 216dp 56dp + 12dp 6dp 16dp @@ -333,4 +335,5 @@ 48dp 32dp 8dp +