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
This commit is contained in:
1 parent
98ed6bbec7
commit
8245a8685f
8 files changed
+343
-101
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user