From df4b83dd9d6380ab963c62d1f9d1312efc87cb0f Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 20 Oct 2010 17:49:27 -0700 Subject: More spacing changes for AllApps. - Also testing a simple scale of existing icons in lieu of high res icons. Change-Id: Ib9758064536cd1b1704344ea885bccdc93dd3466 --- src/com/android/launcher2/AllAppsPagedView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/launcher2/AllAppsPagedView.java') diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java index 42101eb4c..5de53d80f 100644 --- a/src/com/android/launcher2/AllAppsPagedView.java +++ b/src/com/android/launcher2/AllAppsPagedView.java @@ -358,6 +358,7 @@ public class AllAppsPagedView extends PagedView layout.setCellCount(mCellCountX, mCellCountY); layout.setPadding(mPageLayoutPaddingLeft, mPageLayoutPaddingTop, mPageLayoutPaddingRight, mPageLayoutPaddingBottom); + layout.setGap(mPageLayoutWidthGap, mPageLayoutHeightGap); addView(layout); } @@ -414,7 +415,7 @@ public class AllAppsPagedView extends PagedView final int index = i - startIndex; final ApplicationInfo info = mFilteredApps.get(i); PagedViewIcon icon = (PagedViewIcon) layout.getChildAt(index); - icon.applyFromApplicationInfo(info, mPageViewIconCache); + icon.applyFromApplicationInfo(info, mPageViewIconCache, true); PagedViewCellLayout.LayoutParams params = (PagedViewCellLayout.LayoutParams) icon.getLayoutParams(); -- cgit v1.2.3