From 3a3e31c0f1b96c603a32af30c3d0c5347688c26e Mon Sep 17 00:00:00 2001 From: Bill Lin Date: Tue, 24 Mar 2020 18:35:49 +0800 Subject: [PATCH] Customize for S/W anti-aliasing of rounded corner on Redfin 1. H/W Camera center(77,77) and radius=39px, size(78x78) 2. Punch Edge (L,T,R,B): (42, 39, 120,39, 116) 3. Rounded corner edge 156x156 to prevent jegged edge 4. Redfin density ratio = 440 / 160 = 2.75 5. H/W corner radious are different between top & bottom Test: manual Bug: 143222961 Change-Id: Iad58b86101a4d5666d9aa7000d66ce33f3d40247 --- .../base/core/res/res/values/config.xml | 43 ++++++++++++++++--- .../SystemUI/res/drawable/rounded.xml | 23 ++++++++++ .../packages/SystemUI/res/values/config.xml | 22 ++++++++++ .../packages/SystemUI/res/values/dimen.xml | 37 ++++++++++++++++ 4 files changed, 119 insertions(+), 6 deletions(-) create mode 100644 redfin/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml create mode 100644 redfin/overlay/frameworks/base/packages/SystemUI/res/values/dimen.xml diff --git a/redfin/overlay/frameworks/base/core/res/res/values/config.xml b/redfin/overlay/frameworks/base/core/res/res/values/config.xml index 237a2d7..9ede3a8 100755 --- a/redfin/overlay/frameworks/base/core/res/res/values/config.xml +++ b/redfin/overlay/frameworks/base/core/res/res/values/config.xml @@ -123,12 +123,43 @@ true - - 140px - - - 28dp - true + + + true + + + + + M 41,77 a 40,40 0 1 0 80,0 40,40 0 1 0 -80,0 Z + + @left + + + + M 0.0,0.0 + h 136 + v 136 + h -136 + Z + @left + + + + 108px + + + 136px + 28dp + + 136px + + 488px diff --git a/redfin/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml b/redfin/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml new file mode 100644 index 0000000..4b7f416 --- /dev/null +++ b/redfin/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml @@ -0,0 +1,23 @@ + + + + + diff --git a/redfin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/redfin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml index 43be2f5..0c6a800 100644 --- a/redfin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml +++ b/redfin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -64,4 +64,26 @@ 0 0 + + + + M156,0 C76,4 58,5 31,31 5,58 4,76 0,156 + + true + + + + M 29,77 + a 52,52 0 1 0 104,0 + a 52,52 0 1 0 -104,0 + Z + + + + 1 + + true diff --git a/redfin/overlay/frameworks/base/packages/SystemUI/res/values/dimen.xml b/redfin/overlay/frameworks/base/packages/SystemUI/res/values/dimen.xml new file mode 100644 index 0000000..bb9b2b8 --- /dev/null +++ b/redfin/overlay/frameworks/base/packages/SystemUI/res/values/dimen.xml @@ -0,0 +1,37 @@ + + + + + 0dp + + 50px + + 1dp + + 56px + + 40px + 0px + + 156px + 156px + 156px + +