From e4d52246623b5e7a706afd5eedc3764189d3e1a5 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Thu, 17 Mar 2022 17:40:02 +0000 Subject: CDM UI cleanUp 1. Introduce some common style. 2. Make the borders full fill the view for multiple device 3. Increasing the width of cdm dilog. Test: atest CtsCompanionDeviceManagerCoreTestCases atest CtsCompanionDeviceManagerUiAutomationTestCases atest CtsOsTestCases:CompanionDeviceManagerTest Bug: 216638097 Change-Id: I848adf9287a5505882f3a9fb6c9cc45c30ae6d00 --- .../CompanionDeviceManager/res/color/selector.xml | 1 + .../res/drawable/btn_negative_multiple_devices.xml | 1 + .../res/drawable/btn_negative_top.xml | 1 + .../res/drawable/btn_positive_bottom.xml | 1 + .../res/drawable/helper_ok_button.xml | 1 + .../res/drawable/ic_apps.xml | 1 + .../res/drawable/ic_device_other.xml | 1 + .../res/drawable/ic_notifications.xml | 1 + .../res/drawable/ic_storage.xml | 1 + .../res/drawable/ic_watch.xml | 1 + .../res/layout/activity_confirmation.xml | 57 +++++++++++---------- .../res/layout/data_transfer_confirmation.xml | 50 +++++++------------ .../res/layout/helper_confirmation.xml | 17 ++++--- .../res/layout/list_item_device.xml | 1 + .../res/layout/list_item_permission.xml | 8 ++- .../res/layout/vendor_header.xml | 7 ++- .../CompanionDeviceManager/res/values/styles.xml | 58 ++++++++++++++++++---- .../CompanionDeviceActivity.java | 4 +- .../CompanionDeviceDiscoveryService.java | 3 +- 19 files changed, 133 insertions(+), 82 deletions(-) diff --git a/packages/CompanionDeviceManager/res/color/selector.xml b/packages/CompanionDeviceManager/res/color/selector.xml index 56e5dca0f72f..aebc5d5adf6e 100644 --- a/packages/CompanionDeviceManager/res/color/selector.xml +++ b/packages/CompanionDeviceManager/res/color/selector.xml @@ -1,3 +1,4 @@ + + + - + + - + - + + android:layout_marginTop="16dp"> @@ -111,18 +104,28 @@