Tighten up vertical spacing in landscape all apps.
Bug: 37015359 Bug: 62801588 Change-Id: Ia4bdc2c2b12647cd671cf8a3e7a8defc43863da1
This commit is contained in:
parent
c402a4663f
commit
4e358271d3
|
@ -27,7 +27,9 @@
|
|||
<!-- Dynamic grid -->
|
||||
<dimen name="dynamic_grid_overview_bar_item_width">120dp</dimen>
|
||||
<dimen name="dynamic_grid_min_page_indicator_size">48dp</dimen>
|
||||
<dimen name="folder_preview_padding">5dp</dimen>
|
||||
<dimen name="dynamic_grid_icon_drawable_padding">4dp</dimen>
|
||||
|
||||
<dimen name="folder_preview_padding">2dp</dimen>
|
||||
|
||||
<!-- Hotseat -->
|
||||
<dimen name="dynamic_grid_hotseat_land_left_nav_bar_right_padding">18dp</dimen>
|
||||
|
|
|
@ -326,7 +326,13 @@ public class DeviceProfile {
|
|||
if (isVerticalBarLayout()) {
|
||||
// Always hide the Workspace text with vertical bar layout.
|
||||
iconTextSizePx = 0;
|
||||
allAppsCellHeightPx += Utilities.calculateTextHeight(allAppsIconTextSizePx);
|
||||
iconDrawablePaddingPx = 0;
|
||||
|
||||
// Manually compute all apps cell height since workspace cells have less content.
|
||||
allAppsCellHeightPx = allAppsIconSizePx + allAppsIconDrawablePaddingPx
|
||||
+ Utilities.calculateTextHeight(allAppsIconTextSizePx)
|
||||
// Top and bottom padding is equal to the drawable padding
|
||||
+ allAppsIconDrawablePaddingPx * 2;
|
||||
}
|
||||
|
||||
cellWidthPx = iconSizePx + iconDrawablePaddingPx;
|
||||
|
|
Loading…
Reference in New Issue