diff options
author | Winson Chung <winsonc@google.com> | 2010-12-01 22:04:44 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2010-12-02 11:08:11 -0800 |
commit | c4ebd819711e85d0430fea0fe855fd56b4154840 (patch) | |
tree | a884ee20e0600fe41e20d98c7098ac19646a3148 | |
parent | 60cd600e6bc45fc5b738f0e5dd93201e5bee6d01 (diff) | |
download | android_packages_apps_Trebuchet-c4ebd819711e85d0430fea0fe855fd56b4154840.tar.gz android_packages_apps_Trebuchet-c4ebd819711e85d0430fea0fe855fd56b4154840.tar.bz2 android_packages_apps_Trebuchet-c4ebd819711e85d0430fea0fe855fd56b4154840.zip |
Removing unnecessary workaround for padding on workspace icons.
Change-Id: I2ae6324e18db7b010c8d2ef5140e004da2f2b9f0
-rw-r--r-- | res/drawable-hdpi/focused_application_background.9.png | bin | 1454 -> 4126 bytes | |||
-rw-r--r-- | res/drawable-hdpi/pressed_application_background.9.png | bin | 46116 -> 4759 bytes | |||
-rw-r--r-- | res/drawable-mdpi/focused_application_background.9.png | bin | 1246 -> 4016 bytes | |||
-rw-r--r-- | res/drawable-mdpi/pressed_application_background.9.png | bin | 1389 -> 3975 bytes | |||
-rw-r--r-- | res/drawable/pressed_application_background.9.png | bin | 1091 -> 3778 bytes | |||
-rw-r--r-- | src/com/android/launcher2/BubbleTextView.java | 18 |
6 files changed, 0 insertions, 18 deletions
diff --git a/res/drawable-hdpi/focused_application_background.9.png b/res/drawable-hdpi/focused_application_background.9.png Binary files differindex 7bf37efed..1b1149268 100644 --- a/res/drawable-hdpi/focused_application_background.9.png +++ b/res/drawable-hdpi/focused_application_background.9.png diff --git a/res/drawable-hdpi/pressed_application_background.9.png b/res/drawable-hdpi/pressed_application_background.9.png Binary files differindex a6cbe9441..ece27fd97 100644 --- a/res/drawable-hdpi/pressed_application_background.9.png +++ b/res/drawable-hdpi/pressed_application_background.9.png diff --git a/res/drawable-mdpi/focused_application_background.9.png b/res/drawable-mdpi/focused_application_background.9.png Binary files differindex 9d09b41f1..b27d69331 100644 --- a/res/drawable-mdpi/focused_application_background.9.png +++ b/res/drawable-mdpi/focused_application_background.9.png diff --git a/res/drawable-mdpi/pressed_application_background.9.png b/res/drawable-mdpi/pressed_application_background.9.png Binary files differindex b79536a70..1fd727e9f 100644 --- a/res/drawable-mdpi/pressed_application_background.9.png +++ b/res/drawable-mdpi/pressed_application_background.9.png diff --git a/res/drawable/pressed_application_background.9.png b/res/drawable/pressed_application_background.9.png Binary files differindex b09f595b7..754af4822 100644 --- a/res/drawable/pressed_application_background.9.png +++ b/res/drawable/pressed_application_background.9.png diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java index 89a6303b4..113f35dd8 100644 --- a/src/com/android/launcher2/BubbleTextView.java +++ b/src/com/android/launcher2/BubbleTextView.java @@ -26,7 +26,6 @@ import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.text.Layout; import android.util.AttributeSet; -import android.view.View.MeasureSpec; import com.android.launcher.R; @@ -40,8 +39,6 @@ public class BubbleTextView extends CacheableTextView { static final float PADDING_H = 8.0f; static final float PADDING_V = 3.0f; - private int mAppCellWidth; - private final RectF mRect = new RectF(); private Paint mPaint; private float mBubbleColorAlpha; @@ -78,7 +75,6 @@ public class BubbleTextView extends CacheableTextView { mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); mPaint.setColor(bubbleColor); mBubbleColorAlpha = Color.alpha(bubbleColor) / 255.0f; - mAppCellWidth = (int) res.getDimension(R.dimen.app_icon_size); final float scale = res.getDisplayMetrics().density; mCornerRadius = CORNER_RADIUS * scale; @@ -166,20 +162,6 @@ public class BubbleTextView extends CacheableTextView { } @Override - protected void onSizeChanged(int w, int h, int oldw, int oldh) { - if (w > 0 && h > 0) { - // Temporary Workaround: We need to set padding to compress the text so that we can draw - // a hotdog around it. Currently, the background images prevent us from applying the - // padding in XML, so we are doing this programmatically - int d = w - mAppCellWidth; - int pL = d - (d / 2); - int pR = d - pL; - setPadding(pL, getPaddingTop(), pR, getPaddingBottom()); - } - super.onSizeChanged(w, h, oldw, oldh); - } - - @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); if (mBackground != null) mBackground.setCallback(this); |