Merge "Reduce margin for DropTargetBar to avoid buttons to be truncated." into sc-dev

This commit is contained in:
Alina Zaidi
2021-07-01 11:10:26 +00:00
committed by Android (Google) Code Review
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -105,7 +105,8 @@ public class DropTargetBar extends FrameLayout
/ (2 * (grid.inv.numColumns + 1)))
+ grid.edgeMarginPx;
} else {
gap = grid.desiredWorkspaceLeftRightMarginPx - grid.inv.defaultWidgetPadding.right;
gap = getContext().getResources()
.getDimensionPixelSize(R.dimen.drop_target_bar_margin_horizontal);
}
lp.width = grid.availableWidthPx - 2 * gap;