summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-07-31 12:01:34 -0700
committerJoe Onorato <joeo@android.com>2009-07-31 16:24:19 -0700
commitfde104bfe937d06e0f47d0c7ca7eb7a37d54905e (patch)
tree20b31f90dfeb77537a7a20e3ea87503963b6f9a1 /src/com/android
parent7404ee4a16e03dba9f026ac8c78d7cea3886260f (diff)
downloadandroid_packages_apps_Trebuchet-fde104bfe937d06e0f47d0c7ca7eb7a37d54905e.tar.gz
android_packages_apps_Trebuchet-fde104bfe937d06e0f47d0c7ca7eb7a37d54905e.tar.bz2
android_packages_apps_Trebuchet-fde104bfe937d06e0f47d0c7ca7eb7a37d54905e.zip
no texture for the all apps grid.
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/launcher2/AllAppsGridView.java42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/com/android/launcher2/AllAppsGridView.java b/src/com/android/launcher2/AllAppsGridView.java
index 7e1b54e2f..cca9ed2ef 100644
--- a/src/com/android/launcher2/AllAppsGridView.java
+++ b/src/com/android/launcher2/AllAppsGridView.java
@@ -32,10 +32,6 @@ public class AllAppsGridView extends GridView implements AdapterView.OnItemClick
private DragController mDragger;
private Launcher mLauncher;
- private Bitmap mTexture;
- private Paint mPaint;
- private int mTextureWidth;
- private int mTextureHeight;
public AllAppsGridView(Context context) {
super(context);
@@ -47,18 +43,6 @@ public class AllAppsGridView extends GridView implements AdapterView.OnItemClick
public AllAppsGridView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
-
- TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AllAppsGridView, defStyle, 0);
- final int textureId = a.getResourceId(R.styleable.AllAppsGridView_texture, 0);
- if (textureId != 0) {
- mTexture = BitmapFactory.decodeResource(getResources(), textureId);
- mTextureWidth = mTexture.getWidth();
- mTextureHeight = mTexture.getHeight();
-
- mPaint = new Paint();
- mPaint.setDither(false);
- }
- a.recycle();
}
@Override
@@ -67,32 +51,6 @@ public class AllAppsGridView extends GridView implements AdapterView.OnItemClick
setOnItemLongClickListener(this);
}
- @Override
- public void draw(Canvas canvas) {
- final Bitmap texture = mTexture;
- final Paint paint = mPaint;
-
- final int width = getWidth();
- final int height = getHeight();
-
- final int textureWidth = mTextureWidth;
- final int textureHeight = mTextureHeight;
-
- int x = 0;
- int y;
-
- while (x < width) {
- y = 0;
- while (y < height) {
- canvas.drawBitmap(texture, x, y, paint);
- y += textureHeight;
- }
- x += textureWidth;
- }
-
- super.draw(canvas);
- }
-
public void onItemClick(AdapterView parent, View v, int position, long id) {
ApplicationInfo app = (ApplicationInfo) parent.getItemAtPosition(position);
mLauncher.startActivitySafely(app.intent);