New AllAppsCustomize transitions

Change-Id: Ibefda8bf156810849c5e8f3383d49ae64a7ee08a
This commit is contained in:
Adam Cohen committed 2011-09-07 18:16:11 -07:00
1 parent 4512637a8a
commit 22f823d340
5 files changed
+143 -105

No files matched your search

@@ -40,6 +40,7 @@ public class PagedViewGridLayout extends GridLayout implements Page {
int getCellCountX() {
return mCellCountX;
}
int getCellCountY() {
return mCellCountY;
}
@@ -69,27 +70,18 @@ public class PagedViewGridLayout extends GridLayout implements Page {
return result;
}
@Override
protected boolean onSetAlpha(int alpha) {
return true;
void destroyHardwareLayer() {
setLayerType(LAYER_TYPE_NONE, null);
}
@Override
public void setAlpha(float alpha) {
setChildrenAlpha(alpha);
super.setAlpha(alpha);
}
private void setChildrenAlpha(float alpha) {
final int childCount = getChildCount();
for (int i = 0; i < childCount; i++) {
getChildAt(i).setAlpha(alpha);
}
void createHardwareLayer() {
setLayerType(LAYER_TYPE_HARDWARE, null);
}
@Override
public void removeAllViewsOnPage() {
removeAllViews();
destroyHardwareLayer();
}
@Override