Setting alpha/hardware layers directly in All Apps
Changing it so that PagedViewCellLayout has alpha and hardware layers set directly on itself rather than its child view
This commit is contained in:
1 parent
336d491492
commit
ee7c1d8dc2
2 files changed
+2
-14
No files matched your search
@@ -86,20 +86,15 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
|
||||
return mCellHeight;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAlpha(float alpha) {
|
||||
mChildren.setAlpha(alpha);
|
||||
}
|
||||
|
||||
void destroyHardwareLayers() {
|
||||
// called when a page is no longer visible (triggered by loadAssociatedPages ->
|
||||
// removeAllViewsOnPage)
|
||||
mChildren.destroyHardwareLayer();
|
||||
setLayerType(LAYER_TYPE_NONE, null);
|
||||
}
|
||||
|
||||
void createHardwareLayers() {
|
||||
// called when a page is visible (triggered by loadAssociatedPages -> syncPageItems)
|
||||
mChildren.createHardwareLayer();
|
||||
setLayerType(LAYER_TYPE_HARDWARE, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user