summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/FastBitmapDrawable.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2016-02-05 14:47:50 -0800
committerAdam Cohen <adamcohen@google.com>2016-02-17 10:41:46 -0800
commit119e8982ab6a0cf00e31e8744f27b72ba8bf7b20 (patch)
tree6a9c238c1895223cd473e9ba30349b62c17a1509 /src/com/android/launcher3/FastBitmapDrawable.java
parentcc3a37dbb5f49c7efa3c24513c00f76574455adf (diff)
downloadandroid_packages_apps_Trebuchet-119e8982ab6a0cf00e31e8744f27b72ba8bf7b20.tar.gz
android_packages_apps_Trebuchet-119e8982ab6a0cf00e31e8744f27b72ba8bf7b20.tar.bz2
android_packages_apps_Trebuchet-119e8982ab6a0cf00e31e8744f27b72ba8bf7b20.zip
First pass at new FolderIcon visual treatment
-> Modeled as a set of items around a circle -> Modulate the radius and icon size as number of items grow -> Clip the icons by a circular clip aligned to the background drawable Remaining issues -> Probably want to move to a programmaticly drawn circle + shadow -> Anti-aliasing of the clipped region will need more attention -> Need to animate all items in the preview as it changes (this wasn't required before) Change-Id: I678ec605f6c8a34e9d7e4aec4e9583e36a9ef394
Diffstat (limited to 'src/com/android/launcher3/FastBitmapDrawable.java')
-rw-r--r--src/com/android/launcher3/FastBitmapDrawable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/FastBitmapDrawable.java b/src/com/android/launcher3/FastBitmapDrawable.java
index d7f1d8677..38700805f 100644
--- a/src/com/android/launcher3/FastBitmapDrawable.java
+++ b/src/com/android/launcher3/FastBitmapDrawable.java
@@ -93,7 +93,7 @@ public class FastBitmapDrawable extends Drawable {
private static final ColorMatrix sTempBrightnessMatrix = new ColorMatrix();
private static final ColorMatrix sTempFilterMatrix = new ColorMatrix();
- private final Paint mPaint = new Paint(Paint.FILTER_BITMAP_FLAG);
+ private final Paint mPaint = new Paint(Paint.FILTER_BITMAP_FLAG | Paint.ANTI_ALIAS_FLAG);
private final Bitmap mBitmap;
private State mState = State.NORMAL;