From d927819de229d733adb47bab33d18cdcf4a17405 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Mon, 21 Mar 2022 21:52:35 +0000 Subject: Update Computer dialog UI 1. Replaced the three dots button to info icon 2. set tint color for header image button and application icon 3. Make sure only set tint color if application provides the metadata. 4. Including App name in the more info dialog. 5. Change the Ok button to Back Test: atest CtsCompanionDeviceManagerCoreTestCases atest CtsCompanionDeviceManagerUiAutomationTestCases atest CtsOsTestCases:CompanionDeviceManagerTest Bug: 216638097 Change-Id: Idba23ebc5cc21fc35676b0cccdb8d5b6ddf7af0a --- .../res/drawable/helper_back_button.xml | 23 ++++++++++++++++ .../res/drawable/helper_ok_button.xml | 23 ---------------- .../res/drawable/ic_info.xml | 26 ++++++++++++++++++ .../res/layout/helper_confirmation.xml | 6 ++--- .../res/layout/vendor_header.xml | 2 +- .../CompanionDeviceManager/res/values/strings.xml | 20 +++----------- .../CompanionDeviceManager/res/values/styles.xml | 7 ++--- .../CompanionDeviceActivity.java | 16 ++++++----- .../CompanionVendorHelperDialogFragment.java | 31 +++++++++++----------- .../com/android/companiondevicemanager/Utils.java | 12 +++++++++ 10 files changed, 99 insertions(+), 67 deletions(-) create mode 100644 packages/CompanionDeviceManager/res/drawable/helper_back_button.xml delete mode 100644 packages/CompanionDeviceManager/res/drawable/helper_ok_button.xml create mode 100644 packages/CompanionDeviceManager/res/drawable/ic_info.xml diff --git a/packages/CompanionDeviceManager/res/drawable/helper_back_button.xml b/packages/CompanionDeviceManager/res/drawable/helper_back_button.xml new file mode 100644 index 000000000000..8e92051faf6c --- /dev/null +++ b/packages/CompanionDeviceManager/res/drawable/helper_back_button.xml @@ -0,0 +1,23 @@ + + + + + + + \ No newline at end of file diff --git a/packages/CompanionDeviceManager/res/drawable/helper_ok_button.xml b/packages/CompanionDeviceManager/res/drawable/helper_ok_button.xml deleted file mode 100644 index 8e92051faf6c..000000000000 --- a/packages/CompanionDeviceManager/res/drawable/helper_ok_button.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/packages/CompanionDeviceManager/res/drawable/ic_info.xml b/packages/CompanionDeviceManager/res/drawable/ic_info.xml new file mode 100644 index 000000000000..d9f6a2720ab6 --- /dev/null +++ b/packages/CompanionDeviceManager/res/drawable/ic_info.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/packages/CompanionDeviceManager/res/layout/helper_confirmation.xml b/packages/CompanionDeviceManager/res/layout/helper_confirmation.xml index a22ca941c5eb..a9ace44d49b8 100644 --- a/packages/CompanionDeviceManager/res/layout/helper_confirmation.xml +++ b/packages/CompanionDeviceManager/res/layout/helper_confirmation.xml @@ -59,9 +59,9 @@ android:gravity="end">