diff options
author | Daniel Sandler <dsandler@android.com> | 2010-06-03 14:17:47 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-03 14:17:47 -0700 |
commit | 9d2b252cb77ed8f769c87263605d89d9b4f4df95 (patch) | |
tree | ac495cc460dc2612d53bf1cbea2e3bce34c961a9 /src | |
parent | 718a0a382ca96988369a4d22798aa692e71538cb (diff) | |
parent | 6662645a670b3197fb99df202a4650b946b867be (diff) | |
download | android_packages_apps_Trebuchet-9d2b252cb77ed8f769c87263605d89d9b4f4df95.tar.gz android_packages_apps_Trebuchet-9d2b252cb77ed8f769c87263605d89d9b4f4df95.tar.bz2 android_packages_apps_Trebuchet-9d2b252cb77ed8f769c87263605d89d9b4f4df95.zip |
am 6662645a: Merge "Make 2D All Apps work better in landscape and on hdpi." into froyo
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/AllApps2D.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/android/launcher2/AllApps2D.java b/src/com/android/launcher2/AllApps2D.java index 90c87fb18..86571cfc7 100644 --- a/src/com/android/launcher2/AllApps2D.java +++ b/src/com/android/launcher2/AllApps2D.java @@ -20,6 +20,8 @@ import android.content.ComponentName; import android.content.Context; import android.content.res.Resources; import android.graphics.drawable.BitmapDrawable; +import android.graphics.Bitmap; +import android.graphics.Color; import android.util.AttributeSet; import android.util.Log; import android.view.KeyEvent; @@ -49,6 +51,7 @@ public class AllApps2D DragSource { private static final String TAG = "Launcher.AllApps2D"; + private static final boolean DEBUG = false; private Launcher mLauncher; private DragController mDragController; @@ -100,7 +103,13 @@ public class AllApps2D // } final TextView textView = (TextView) convertView; + if (DEBUG) { + Log.d(TAG, "icon bitmap = " + info.iconBitmap + + " density = " + info.iconBitmap.getDensity()); + } + info.iconBitmap.setDensity(Bitmap.DENSITY_NONE); textView.setCompoundDrawablesWithIntrinsicBounds(null, new BitmapDrawable(info.iconBitmap), null, null); + textView.setBackgroundColor(Color.BLACK); textView.setText(info.title); return convertView; @@ -118,13 +127,15 @@ public class AllApps2D @Override protected void onFinishInflate() { - setBackgroundColor(0xFF000000); + setBackgroundColor(Color.BLACK); try { mGrid = (GridView)findViewWithTag("all_apps_2d_grid"); if (mGrid == null) throw new Resources.NotFoundException(); mGrid.setOnItemClickListener(this); mGrid.setOnItemLongClickListener(this); + mGrid.setBackgroundColor(Color.BLACK); + mGrid.setCacheColorHint(Color.BLACK); ImageButton homeButton = (ImageButton) findViewWithTag("all_apps_2d_home"); if (homeButton == null) throw new Resources.NotFoundException(); |