From 26aa8c2496c59ae7bdeb65618e1259ff8d18a238 Mon Sep 17 00:00:00 2001 From: Thales Lima Date: Tue, 12 Apr 2022 16:18:36 +0100 Subject: [PATCH] Making tablet grid scalable and tuning size Bug: 227344807 Test: manual and HSV Change-Id: I739cd814ecb8f693b4873cd78f2e8c182538be3b --- res/xml/device_profiles.xml | 25 ++++++++++-- res/xml/paddings_6x5.xml | 76 +++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 res/xml/paddings_6x5.xml diff --git a/res/xml/device_profiles.xml b/res/xml/device_profiles.xml index dd201e556f..07ce59862b 100644 --- a/res/xml/device_profiles.xml +++ b/res/xml/device_profiles.xml @@ -145,6 +145,8 @@ launcher:numFolderColumns="3" launcher:numHotseatIcons="6" launcher:numAllAppsColumns="6" + launcher:isScalable="true" + launcher:devicePaddingId="@xml/paddings_6x5" launcher:dbFile="launcher_6_by_5.db" launcher:defaultLayoutId="@xml/default_workspace_6x5" launcher:deviceCategory="tablet" > @@ -153,14 +155,29 @@ launcher:name="Tablet" launcher:minWidthDps="900" launcher:minHeightDps="820" - launcher:minCellHeight="104" - launcher:minCellWidth="80" + launcher:minCellHeight="120" + launcher:minCellWidth="102" + launcher:minCellHeightLandscape="104" + launcher:minCellWidthLandscape="120" launcher:iconImageSize="60" launcher:iconTextSize="14" - launcher:borderSpace="16" + launcher:borderSpaceHorizontal="16" + launcher:borderSpaceVertical="64" + launcher:borderSpaceLandscapeHorizontal="64" + launcher:borderSpaceLandscapeVertical="16" + launcher:horizontalMargin="54" + launcher:horizontalMarginLandscape="120" + launcher:allAppsCellWidth="96" + launcher:allAppsCellHeight="142" + launcher:allAppsCellWidthLandscape="126" + launcher:allAppsCellHeightLandscape="126" launcher:allAppsIconSize="60" launcher:allAppsIconTextSize="14" - launcher:allAppsBorderSpace="16" + launcher:allAppsBorderSpaceHorizontal="8" + launcher:allAppsBorderSpaceVertical="16" + launcher:allAppsBorderSpaceLandscape="16" + launcher:hotseatBorderSpace="58" + launcher:hotseatBorderSpaceLandscape="50.4" launcher:canBeDefault="true" /> diff --git a/res/xml/paddings_6x5.xml b/res/xml/paddings_6x5.xml new file mode 100644 index 0000000000..a958ec7b55 --- /dev/null +++ b/res/xml/paddings_6x5.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file