Files
lawnchair/tests/res/xml/valid_cell_specs_file.xml
Jordan Silva 999dd2a06f Extract cell size information to responsive grid structure
Bug: 287975993
Flag: ACONFIG com.android.launcher3.enable_responsive_workspace TEAMFOOD
Test: ResponsiveCellSpecsProviderTest
Test: DeviceProfileDumpTest
Test: DeviceProfileResponsiveDumpTest
Change-Id: I26a87d9b690fdfcff1599d862c09e97fe9f9f930
2023-11-24 12:39:36 +00:00

44 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2023 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.
-->
<cellSpecs xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- portrait -->
<specs launcher:maxAspectRatio="1.0">
<cellSpec
launcher:dimensionType="height"
launcher:maxAvailableSize="606dp">
<iconDrawablePadding launcher:fixedSize="8dp" />
<iconSize launcher:fixedSize="48dp" />
<iconTextSize launcher:fixedSize="12sp" />
</cellSpec>
<cellSpec
launcher:dimensionType="height"
launcher:maxAvailableSize="9999dp">
<iconDrawablePadding launcher:fixedSize="11dp" />
<iconSize launcher:fixedSize="52dp" />
<iconTextSize launcher:fixedSize="12sp" />
</cellSpec>
</specs>
<!-- landscape -->
<specs launcher:maxAspectRatio="10">
<cellSpec
launcher:dimensionType="height"
launcher:maxAvailableSize="9999dp">
<iconDrawablePadding launcher:fixedSize="0dp" />
<iconSize launcher:fixedSize="52dp" />
<iconTextSize launcher:fixedSize="0sp" />
</cellSpec>
</specs>
</cellSpecs>