summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-01-20 13:35:13 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-20 13:35:13 -0800
commit39e1c9d6eb70f09eac1206f70f1cae658fe08b20 (patch)
tree5a21b10fef1c2efd4b2e4d8ac7b1dde0dfa7e3d0 /src
parentb6e4709463a5af4ed5219ee33739dd225a5e59fb (diff)
parent1a94ee3a8b2f46c5b46acff15ba9d22dfca36261 (diff)
downloadandroid_packages_apps_Trebuchet-39e1c9d6eb70f09eac1206f70f1cae658fe08b20.tar.gz
android_packages_apps_Trebuchet-39e1c9d6eb70f09eac1206f70f1cae658fe08b20.tar.bz2
android_packages_apps_Trebuchet-39e1c9d6eb70f09eac1206f70f1cae658fe08b20.zip
Merge "Fix selection highligh in all apps. Selection highlight now follows the curve and uses a smaller bitmap."
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AllAppsView.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 424bc555e..999844d1e 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -134,10 +134,12 @@ public class AllAppsView extends RSSurfaceView
public static final int ROWS_PER_PAGE = 4;
public static final int ICON_WIDTH_PX = 64;
- public static final int ICON_TEXTURE_WIDTH_PX = 128;
+ public static final int ICON_TEXTURE_WIDTH_PX = 74;
+ public static final int SELECTION_TEXTURE_WIDTH_PX = 74 + 20;
public static final int ICON_HEIGHT_PX = 64;
- public static final int ICON_TEXTURE_HEIGHT_PX = 128;
+ public static final int ICON_TEXTURE_HEIGHT_PX = 74;
+ public static final int SELECTION_TEXTURE_HEIGHT_PX = 74 + 20;
public int SCREEN_WIDTH_PX;
public int SCREEN_HEIGHT_PX;
@@ -1075,8 +1077,8 @@ public class AllAppsView extends RSSurfaceView
mParams.save();
mState.save();
- mSelectionBitmap = Bitmap.createBitmap(Defines.ICON_TEXTURE_WIDTH_PX,
- Defines.ICON_TEXTURE_HEIGHT_PX, Bitmap.Config.ARGB_8888);
+ mSelectionBitmap = Bitmap.createBitmap(Defines.SELECTION_TEXTURE_WIDTH_PX,
+ Defines.SELECTION_TEXTURE_HEIGHT_PX, Bitmap.Config.ARGB_8888);
mSelectionCanvas = new Canvas(mSelectionBitmap);
setApps(null);