Files
lawnchair/res/xml/spec_col_count_3_row.xml
Toni Barzic ff16a5912d Use dimen for GridSize_minDeviceWidth/Height
Makes the grid size format more flexible, as it allows the min width and
height to be easily defined either as px, or dp (which may be
preferable for upcoming desktop grids - I noticed that scaling display
size may end up with too tightly packed grid when using pixel sizes
to select the correct grid size).

Test: Existing tests
Bug: 375643744
Flag: EXEMPT cleanup

Change-Id: I09b772ece177fe0539a1ff641ff2391e88d9e289
2025-05-08 10:20:54 -07:00

34 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2025 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<GridSizeSpecs xmlns:launcher="http://schemas.android.com/apk/res-auto">
<GridSize
launcher:numGridColumns="7"
launcher:numGridRows="3"
launcher:dbFile="launcher_7_by_3.db"
launcher:defaultLayoutId="@xml/default_workspace_7x3"
launcher:minDeviceWidth="0px"
launcher:minDeviceHeight="0px"
/>
<GridSize
launcher:numGridColumns="8"
launcher:numGridRows="3"
launcher:dbFile="launcher_8_by_3.db"
launcher:defaultLayoutId="@xml/default_workspace_8x3"
launcher:minDeviceWidth="0px"
launcher:minDeviceHeight="2093px"
/>
</GridSizeSpecs>