From 6d97d893e0dcb512a717ff1b001e16243d5b6212 Mon Sep 17 00:00:00 2001 From: Alina Zaidi Date: Mon, 22 Mar 2021 10:06:25 +0000 Subject: [PATCH] Update Pin widget dialog UI according to mocks. Test: Tested manually and RequestPinItemTest passed Bug: 182982143 Bug: 182994819 Bug: 182929673 Change-Id: I905ea0c1860d28ee9fbb456ddf6abd728b65bac4 --- AndroidManifest-common.xml | 3 +- res/drawable/add_item_dialog_background.xml | 8 ++ .../add_item_dialog_button_background.xml | 22 ++++++ res/layout/add_item_confirmation_activity.xml | 75 +++++++------------ res/layout/widget_cell_content.xml | 16 ++-- res/layout/widgets_list_row_header.xml | 3 +- res/values-night/styles.xml | 2 + res/values/dimens.xml | 6 ++ res/values/styles.xml | 6 ++ .../launcher3/dragndrop/AddItemActivity.java | 17 +++++ 10 files changed, 100 insertions(+), 58 deletions(-) create mode 100644 res/drawable/add_item_dialog_background.xml create mode 100644 res/drawable/add_item_dialog_button_background.xml diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index 4fd2e4075c..4e72260e9c 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -116,8 +116,7 @@ android:theme="@style/AppItemActivityTheme" android:excludeFromRecents="true" android:autoRemoveFromRecents="true" - android:exported="true" - android:label="@string/action_add_to_workspace" > + android:exported="true"> diff --git a/res/drawable/add_item_dialog_background.xml b/res/drawable/add_item_dialog_background.xml new file mode 100644 index 0000000000..04bde8f5a7 --- /dev/null +++ b/res/drawable/add_item_dialog_background.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/res/drawable/add_item_dialog_button_background.xml b/res/drawable/add_item_dialog_button_background.xml new file mode 100644 index 0000000000..1b4591f8c1 --- /dev/null +++ b/res/drawable/add_item_dialog_button_background.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/add_item_confirmation_activity.xml b/res/layout/add_item_confirmation_activity.xml index b1a1efe0ac..d5e7333614 100644 --- a/res/layout/add_item_confirmation_activity.xml +++ b/res/layout/add_item_confirmation_activity.xml @@ -17,70 +17,51 @@ */ --> - + + - - - - - - - - - - - - - - - + android:layout_marginVertical="16dp" /> + android:padding="8dp" + android:orientation="horizontal">