Layout and spacing changes for AllApps/Customization drawer

- Also fixing issue where preview images in the customization drawer were not being scaled down

Change-Id: I83d1abf019d591954204b87a437eac2ff916dd54
This commit is contained in:
Winson Chung
2010-10-28 16:07:04 -07:00
parent 30110328a2
commit 7da1025bd7
20 changed files with 106 additions and 65 deletions

View File

@@ -156,12 +156,16 @@ public class PagedViewIcon extends TextView implements Checkable {
}
public void applyFromResolveInfo(ResolveInfo info, PackageManager packageManager,
PagedViewIconCache cache) {
PagedViewIconCache cache, boolean scaleUp) {
mIconCache = cache;
mIconCacheKey = info;
mHolographicOutline = mIconCache.getOutline(mIconCacheKey);
mIcon = Utilities.createIconBitmap(info.loadIcon(packageManager), mContext);
if (scaleUp) {
mIcon = Bitmap.createScaledBitmap(mIcon, mScaledIconSize,
mScaledIconSize, true);
}
setCompoundDrawablesWithIntrinsicBounds(null, new FastBitmapDrawable(mIcon), null, null);
setText(info.loadLabel(packageManager));
setTag(info);