• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2023 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<workspaceSpecs xmlns:launcher="http://schemas.android.com/apk/res-auto">
18    <specs launcher:maxAspectRatio="1.05">
19        <!-- 584 grid height -->
20        <workspaceSpec
21            launcher:dimensionType="height"
22            launcher:maxAvailableSize="584dp">
23            <startPadding launcher:fixedSize="0dp" />
24            <endPadding launcher:fixedSize="32dp" />
25            <gutter launcher:fixedSize="16dp" />
26            <cellSize launcher:ofAvailableSpace="0.15808" />
27        </workspaceSpec>
28
29        <!-- 584 grid height + 28 remainder space -->
30        <workspaceSpec
31            launcher:dimensionType="height"
32            launcher:maxAvailableSize="612dp">
33            <startPadding launcher:fixedSize="0dp" />
34            <endPadding launcher:ofRemainderSpace="1" />
35            <gutter launcher:fixedSize="16dp" />
36            <cellSize launcher:fixedSize="104dp" />
37        </workspaceSpec>
38
39        <workspaceSpec
40            launcher:dimensionType="height"
41            launcher:maxAvailableSize="9999dp">
42            <startPadding launcher:fixedSize="8dp" />
43            <endPadding launcher:ofRemainderSpace="1" />
44            <gutter launcher:fixedSize="16dp" />
45            <cellSize launcher:fixedSize="104dp" />
46        </workspaceSpec>
47
48        <!--  TODO(b/241386436): other specs here for height ...  -->
49
50        <!-- Width spec is always the same -->
51        <workspaceSpec
52            launcher:dimensionType="width"
53            launcher:maxAvailableSize="9999dp">
54            <startPadding launcher:fixedSize="22dp" />
55            <endPadding launcher:fixedSize="22dp" />
56            <gutter launcher:fixedSize="16dp" />
57            <cellSize launcher:ofRemainderSpace="1" />
58        </workspaceSpec>
59    </specs>
60
61    <!-- specs from land/handheld_workspace_spec_4x4.xml -->
62    <specs launcher:maxAspectRatio="99999">
63        <!-- Height spec -->
64        <workspaceSpec
65            launcher:dimensionType="height"
66            launcher:maxAvailableSize="371dp">
67            <startPadding launcher:fixedSize="0dp" />
68            <endPadding launcher:fixedSize="24dp" />
69            <gutter launcher:fixedSize="12dp" />
70            <cellSize launcher:ofRemainderSpace="1" />
71        </workspaceSpec>
72        <workspaceSpec
73            launcher:dimensionType="height"
74            launcher:maxAvailableSize="9999dp">
75            <startPadding launcher:fixedSize="0dp" />
76            <endPadding launcher:fixedSize="34dp" />
77            <gutter launcher:fixedSize="12dp" />
78            <cellSize launcher:ofRemainderSpace="1" />
79        </workspaceSpec>
80
81        <!-- Width spec -->
82        <workspaceSpec
83            launcher:dimensionType="width"
84            launcher:maxAvailableSize="602dp">
85            <startPadding launcher:fixedSize="0dp" />
86            <endPadding launcher:fixedSize="36dp" />
87            <gutter launcher:fixedSize="12dp" />
88            <cellSize launcher:ofRemainderSpace="1" />
89        </workspaceSpec>
90        <workspaceSpec
91            launcher:dimensionType="width"
92            launcher:maxAvailableSize="716dp">
93            <startPadding launcher:fixedSize="16dp" />
94            <endPadding launcher:fixedSize="64dp" />
95            <gutter launcher:fixedSize="12dp" />
96            <cellSize launcher:ofRemainderSpace="1" />
97        </workspaceSpec>
98        <workspaceSpec
99            launcher:dimensionType="width"
100            launcher:maxAvailableSize="9999dp">
101            <startPadding launcher:fixedSize="36dp" />
102            <endPadding launcher:fixedSize="80dp" />
103            <gutter launcher:fixedSize="12dp" />
104            <cellSize launcher:ofRemainderSpace="1" />
105        </workspaceSpec>
106    </specs>
107</workspaceSpecs>
108