summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-10-27 18:10:32 -0700
committerWinson Chung <winsonc@google.com>2010-10-27 20:26:37 -0700
commit0e41ae6433b38ab84184aec4ae55bc909a95abbb (patch)
tree0bf0cd4d5a4a7ab84149b055b5b48dc9b331d5b6 /src
parenta9abd0e0bdedb5cbbd12b84cb83037a735e79a20 (diff)
downloadandroid_packages_apps_Trebuchet-0e41ae6433b38ab84184aec4ae55bc909a95abbb.tar.gz
android_packages_apps_Trebuchet-0e41ae6433b38ab84184aec4ae55bc909a95abbb.tar.bz2
android_packages_apps_Trebuchet-0e41ae6433b38ab84184aec4ae55bc909a95abbb.zip
Increasing icons for homescreen as well as as all-apps (temporarily until we get hi-res icons).
- Also fixing spacing in the portrait mode, and using the same styles for both AllApps and workspace icons. Change-Id: I222dd5d53a39d6940a85f40b57912b69c926ffd0
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/Launcher.java6
-rw-r--r--src/com/android/launcher2/PagedViewIcon.java4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 346e472c5..961acfe80 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -992,8 +992,12 @@ public final class Launcher extends Activity
View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) {
TextView favorite = (TextView) mInflater.inflate(layoutResId, parent, false);
+ // Temporarily, we are scaling up all shortcuts on the workspace
+ int scaledSize = parent.getResources().getDimensionPixelSize(R.dimen.temp_scaled_icon_size);
+ Bitmap b = Bitmap.createScaledBitmap(info.getIcon(mIconCache), scaledSize, scaledSize, true);
+
favorite.setCompoundDrawablesWithIntrinsicBounds(null,
- new FastBitmapDrawable(info.getIcon(mIconCache)),
+ new FastBitmapDrawable(b),
null, null);
favorite.setText(info.title);
favorite.setTag(info);
diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java
index be4999d58..c59ef8014 100644
--- a/src/com/android/launcher2/PagedViewIcon.java
+++ b/src/com/android/launcher2/PagedViewIcon.java
@@ -113,7 +113,9 @@ public class PagedViewIcon extends TextView implements Checkable {
mHoloOutlineColor = a.getColor(R.styleable.PagedViewIcon_outlineColor, 0);
mCheckedBlurColor = a.getColor(R.styleable.PagedViewIcon_checkedBlurColor, 0);
mCheckedOutlineColor = a.getColor(R.styleable.PagedViewIcon_checkedOutlineColor, 0);
- mScaledIconSize = a.getDimensionPixelSize(R.styleable.PagedViewIcon_scaledIconSize, 64);
+ mScaledIconSize =
+ context.getResources().getDimensionPixelSize(R.dimen.temp_scaled_icon_size);
+
a.recycle();
if (sHolographicOutlineHelper == null) {