summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllAppsView.java
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-01-20 13:34:30 -0800
committerJason Sams <rjsams@android.com>2010-01-20 13:34:30 -0800
commit1a94ee3a8b2f46c5b46acff15ba9d22dfca36261 (patch)
tree3c2cda29a24523366c4b6b628282b223e59b40a8 /src/com/android/launcher2/AllAppsView.java
parent37f262d924a177472957d8e68793c9433f2a2de4 (diff)
downloadandroid_packages_apps_Trebuchet-1a94ee3a8b2f46c5b46acff15ba9d22dfca36261.tar.gz
android_packages_apps_Trebuchet-1a94ee3a8b2f46c5b46acff15ba9d22dfca36261.tar.bz2
android_packages_apps_Trebuchet-1a94ee3a8b2f46c5b46acff15ba9d22dfca36261.zip
Fix selection highligh in all apps. Selection highlight now follows the curve and uses a smaller bitmap.
Diffstat (limited to 'src/com/android/launcher2/AllAppsView.java')
-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);