From 1fe83fe881603ef6c5df3ed8404efdfd5a2bf86c Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Mon, 9 May 2022 19:21:13 +0100 Subject: [PATCH] Tune overview icon size and paddings - Tune overview icon size and paddings across form factors - Limit handheld overview to 70% of screen width Fix: 209981696 Test: manual Change-Id: I946b9bb2e9eb05cdc1e4497b9b1267a91731a8e1 --- quickstep/res/values-sw600dp-land/dimens.xml | 3 +-- quickstep/res/values-sw600dp/dimens.xml | 12 ++++++---- quickstep/res/values-sw720dp-land/dimens.xml | 20 ++++++++++++++++ quickstep/res/values-sw720dp/dimens.xml | 8 ++++--- quickstep/res/values/dimens.xml | 16 ++++++------- .../quickstep/BaseActivityInterface.java | 24 +++++++++++-------- src/com/android/launcher3/DeviceProfile.java | 2 +- 7 files changed, 56 insertions(+), 29 deletions(-) create mode 100644 quickstep/res/values-sw720dp-land/dimens.xml diff --git a/quickstep/res/values-sw600dp-land/dimens.xml b/quickstep/res/values-sw600dp-land/dimens.xml index 2cd48d5e97..0cd9b2b700 100644 --- a/quickstep/res/values-sw600dp-land/dimens.xml +++ b/quickstep/res/values-sw600dp-land/dimens.xml @@ -15,7 +15,6 @@ */ --> + 12dp - 52dp - 38dp diff --git a/quickstep/res/values-sw600dp/dimens.xml b/quickstep/res/values-sw600dp/dimens.xml index 5153afae5c..7494683880 100644 --- a/quickstep/res/values-sw600dp/dimens.xml +++ b/quickstep/res/values-sw600dp/dimens.xml @@ -17,11 +17,13 @@ 25dp + + 48dp + 44dp 12dp - 4dp - 36dp - 60dp - 36dp + 44dp + 12dp + 28dp 36dp - 32dp + 64dp diff --git a/quickstep/res/values-sw720dp-land/dimens.xml b/quickstep/res/values-sw720dp-land/dimens.xml new file mode 100644 index 0000000000..02d11892dd --- /dev/null +++ b/quickstep/res/values-sw720dp-land/dimens.xml @@ -0,0 +1,20 @@ + + + + 20dp + diff --git a/quickstep/res/values-sw720dp/dimens.xml b/quickstep/res/values-sw720dp/dimens.xml index e381cb0911..ceaa8f866b 100644 --- a/quickstep/res/values-sw720dp/dimens.xml +++ b/quickstep/res/values-sw720dp/dimens.xml @@ -15,11 +15,13 @@ */ --> + + 48dp + 44dp 16dp + 44dp 16dp - 64dp 36dp 44dp - 44dp - 44dp + 64dp diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml index 4210052f98..3072a3ee10 100644 --- a/quickstep/res/values/dimens.xml +++ b/quickstep/res/values/dimens.xml @@ -15,8 +15,6 @@ --> - 48dp - 48dp 2dp @@ -32,18 +30,20 @@ 16dp 50dp + + + 48dp + 44dp 16dp - 0dp + 16dp + 0.7 1.1 - 48dp - 32dp 24dp - 16dp - - 16dp + 48dp + 36dp 2.25dp diff --git a/quickstep/src/com/android/quickstep/BaseActivityInterface.java b/quickstep/src/com/android/quickstep/BaseActivityInterface.java index 6745246b89..2fcd286345 100644 --- a/quickstep/src/com/android/quickstep/BaseActivityInterface.java +++ b/quickstep/src/com/android/quickstep/BaseActivityInterface.java @@ -222,32 +222,27 @@ public abstract class BaseActivityInterface