From ea359c6aee44c0fe3bb94f7002c3b49208b32b7f Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 3 Aug 2011 17:06:35 -0700 Subject: Grid spacing fixes - Restoring old grid for widgets - Disabling ability to add widgets to hotseat - Updating holo colors - Updating assets Change-Id: I3a639f0afeca9463f8079eb8fbaedf295a41fa0f --- src/com/android/launcher2/PagedView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/launcher2/PagedView.java') diff --git a/src/com/android/launcher2/PagedView.java b/src/com/android/launcher2/PagedView.java index 48360feb1..24feb4148 100644 --- a/src/com/android/launcher2/PagedView.java +++ b/src/com/android/launcher2/PagedView.java @@ -432,6 +432,7 @@ public abstract class PagedView extends ViewGroup { int maxChildHeight = 0; final int verticalPadding = mPaddingTop + mPaddingBottom; + final int horizontalPadding = mPaddingLeft + mPaddingRight; // The children are given the same width and height as the workspace @@ -458,7 +459,7 @@ public abstract class PagedView extends ViewGroup { } final int childWidthMeasureSpec = - MeasureSpec.makeMeasureSpec(widthSize, childWidthMode); + MeasureSpec.makeMeasureSpec(widthSize - horizontalPadding, childWidthMode); final int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(heightSize - verticalPadding, childHeightMode); -- cgit v1.2.3