diff options
author | Michael Jurka <mikejurka@google.com> | 2011-02-01 17:53:59 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-02-02 22:51:29 -0800 |
commit | 8245a8685fc9f4802c9fa29a989854b2522fc588 (patch) | |
tree | c5e66168f9a0c311a61505ff879eecbe73a8fcea /src/com/android/launcher2/PagedViewIcon.java | |
parent | 98ed6bbec7ea8776c2a0b76429e47c2c7fc523e5 (diff) | |
download | android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.tar.gz android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.tar.bz2 android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.zip |
Adding hardware layers to All Apps
- splitting up the "holo" outlines and the icons into separate views
- enabling hardware layers on each of the views
Diffstat (limited to 'src/com/android/launcher2/PagedViewIcon.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewIcon.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java index 0af7b8aa3..702e227d5 100644 --- a/src/com/android/launcher2/PagedViewIcon.java +++ b/src/com/android/launcher2/PagedViewIcon.java @@ -65,6 +65,8 @@ public class PagedViewIcon extends CachedTextView implements Checkable { private int mHoloBlurColor; private int mHoloOutlineColor; + HolographicPagedViewIcon mHolographicOutlineView; + private static final HandlerThread sWorkerThread = new HandlerThread("pagedviewicon-helper"); static { sWorkerThread.start(); @@ -90,7 +92,7 @@ public class PagedViewIcon extends CachedTextView implements Checkable { public void run() { icon.mHolographicOutline = holographicOutline; icon.mIconCache.addOutline(icon.mIconCacheKey, holographicOutline); - icon.invalidate(); + icon.getHolographicOutlineView().invalidate(); } }); } @@ -127,6 +129,15 @@ public class PagedViewIcon extends CachedTextView implements Checkable { setFocusable(true); setBackgroundDrawable(null); + mHolographicOutlineView = new HolographicPagedViewIcon(context, this); + } + + protected HolographicPagedViewIcon getHolographicOutlineView() { + return mHolographicOutlineView; + } + + protected Bitmap getHolographicOutline() { + return mHolographicOutline; } private void queueHolographicOutlineCreation() { |