From d8cbcc46be0ccce546073d4acfd08fbdb36c8df3 Mon Sep 17 00:00:00 2001 From: Mariia Sandrikova Date: Thu, 23 Dec 2021 17:45:44 +0000 Subject: [PATCH] [5/n] Camera Compat UI: Unify margins logic for camera and size compat controls. Before this change, margin between a hint and a camera compat control was smaller than required 8 dp while for a size compat control it was bigger than 8dp (since ag/16420818). This change makes them consistent and also simplifies layout definition for the size compat button by declaring margings explicitly rather than including them in width and height implicitly. Test: manual Bug: 206602997 Change-Id: I09839e764d2c8904954a594433888bfdc21d56ba --- .../Shell/res/layout/compat_mode_hint.xml | 2 +- .../Shell/res/layout/compat_ui_layout.xml | 10 ++++++---- libs/WindowManager/Shell/res/values/dimen.xml | 11 ++++------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml b/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml index 4ac972c6cfa7c..44b2f45052ba3 100644 --- a/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml +++ b/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml @@ -21,7 +21,7 @@ android:orientation="vertical" android:clipToPadding="false" android:paddingEnd="@dimen/compat_hint_padding_end" - android:paddingBottom="5dp" + android:paddingBottom="8dp" android:clickable="true"> diff --git a/libs/WindowManager/Shell/res/values/dimen.xml b/libs/WindowManager/Shell/res/values/dimen.xml index d338e3bd74f9c..1c19a10ab2311 100644 --- a/libs/WindowManager/Shell/res/values/dimen.xml +++ b/libs/WindowManager/Shell/res/values/dimen.xml @@ -200,11 +200,8 @@ 400dp - - 80dp - - - 64dp + + 16dp 28dp @@ -212,8 +209,8 @@ 10dp - + 7dp