From 8675afb2c4493577ca4496254c15e45b459ca5f9 Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Fri, 17 Sep 2021 21:56:54 +0800 Subject: [PATCH] Align rounded corners beside divider bar with display and task bar Use the same way to draw rounded corners beside divider bar with display and task bar to make sure all rounded corners share the same style. Bug: 196272915 Test: atest WMShellUnitTests Test: manul check the rounded corners rendered in proper position. Change-Id: I566ef5233dc345e0229fd9637c3b05705ba35864 --- .../res/drawable/split_rounded_bottom.xml | 30 ---- .../Shell/res/drawable/split_rounded_left.xml | 30 ---- .../res/drawable/split_rounded_right.xml | 30 ---- .../Shell/res/drawable/split_rounded_top.xml | 26 --- .../Shell/res/layout/split_divider.xml | 8 +- .../Shell/res/values-land/styles.xml | 14 -- .../WindowManager/Shell/res/values/styles.xml | 14 -- .../common/split/DividerRoundedCorner.java | 160 ++++++++++++++++++ .../wm/shell/common/split/DividerView.java | 1 - 9 files changed, 164 insertions(+), 149 deletions(-) delete mode 100644 libs/WindowManager/Shell/res/drawable/split_rounded_bottom.xml delete mode 100644 libs/WindowManager/Shell/res/drawable/split_rounded_left.xml delete mode 100644 libs/WindowManager/Shell/res/drawable/split_rounded_right.xml delete mode 100644 libs/WindowManager/Shell/res/drawable/split_rounded_top.xml create mode 100644 libs/WindowManager/Shell/src/com/android/wm/shell/common/split/DividerRoundedCorner.java diff --git a/libs/WindowManager/Shell/res/drawable/split_rounded_bottom.xml b/libs/WindowManager/Shell/res/drawable/split_rounded_bottom.xml deleted file mode 100644 index 18dc909ae9559..0000000000000 --- a/libs/WindowManager/Shell/res/drawable/split_rounded_bottom.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/split_rounded_left.xml b/libs/WindowManager/Shell/res/drawable/split_rounded_left.xml deleted file mode 100644 index 931cacf887cd9..0000000000000 --- a/libs/WindowManager/Shell/res/drawable/split_rounded_left.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/split_rounded_right.xml b/libs/WindowManager/Shell/res/drawable/split_rounded_right.xml deleted file mode 100644 index 54e47612faa88..0000000000000 --- a/libs/WindowManager/Shell/res/drawable/split_rounded_right.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/split_rounded_top.xml b/libs/WindowManager/Shell/res/drawable/split_rounded_top.xml deleted file mode 100644 index 9115b5a2352e8..0000000000000 --- a/libs/WindowManager/Shell/res/drawable/split_rounded_top.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/layout/split_divider.xml b/libs/WindowManager/Shell/res/layout/split_divider.xml index 94182cdba0dd9..e3be700469a73 100644 --- a/libs/WindowManager/Shell/res/layout/split_divider.xml +++ b/libs/WindowManager/Shell/res/layout/split_divider.xml @@ -24,20 +24,20 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - + + diff --git a/libs/WindowManager/Shell/res/values-land/styles.xml b/libs/WindowManager/Shell/res/values-land/styles.xml index e5707f3170d80..9eddac48e6dea 100644 --- a/libs/WindowManager/Shell/res/values-land/styles.xml +++ b/libs/WindowManager/Shell/res/values-land/styles.xml @@ -28,20 +28,6 @@ 96dp - - - - - - - -