From 074c7291a989a9c67edeb956d42151e1d66284dd Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Thu, 26 Aug 2021 12:13:49 +0800 Subject: [PATCH] Update divider bar layout to match stage split design Bug: 197361088 Bug: 196272915 Test: manual Change-Id: Ic2fed9c6ef5d8004f922d766c7e3d3170846041d --- .../res/color/split_divider_background.xml | 19 +++++++++++++++++++ .../Shell/res/layout/docked_stack_divider.xml | 2 +- .../Shell/res/layout/split_divider.xml | 3 +-- .../Shell/res/values-land/dimens.xml | 4 ++++ .../Shell/res/values-land/styles.xml | 1 + .../WindowManager/Shell/res/values/colors.xml | 1 - libs/WindowManager/Shell/res/values/dimen.xml | 4 ++++ .../WindowManager/Shell/res/values/styles.xml | 1 + .../shell/common/split/DividerHandleView.java | 18 ++++++++++-------- 9 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 libs/WindowManager/Shell/res/color/split_divider_background.xml diff --git a/libs/WindowManager/Shell/res/color/split_divider_background.xml b/libs/WindowManager/Shell/res/color/split_divider_background.xml new file mode 100644 index 0000000000000..84f4fdff4e1ad --- /dev/null +++ b/libs/WindowManager/Shell/res/color/split_divider_background.xml @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/layout/docked_stack_divider.xml b/libs/WindowManager/Shell/res/layout/docked_stack_divider.xml index ed5d2e1b49f5f..d732b01ce106e 100644 --- a/libs/WindowManager/Shell/res/layout/docked_stack_divider.xml +++ b/libs/WindowManager/Shell/res/layout/docked_stack_divider.xml @@ -22,7 +22,7 @@ + android:background="@color/split_divider_background"/> + android:id="@+id/docked_divider_background"/> + 2dp 16dp + + 3dp + 72dp diff --git a/libs/WindowManager/Shell/res/values-land/styles.xml b/libs/WindowManager/Shell/res/values-land/styles.xml index 863bb69d40342..9eddac48e6dea 100644 --- a/libs/WindowManager/Shell/res/values-land/styles.xml +++ b/libs/WindowManager/Shell/res/values-land/styles.xml @@ -19,6 +19,7 @@ 10dp match_parent center_horizontal + @color/split_divider_background