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:
Michael Jurka
2012-04-18 15:25:08 -07:00
parent 336d491492
commit ee7c1d8dc2
2 changed files with 2 additions and 14 deletions
@@ -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