New AllAppsCustomize transitions

Change-Id: Ibefda8bf156810849c5e8f3383d49ae64a7ee08a
This commit is contained in:
Adam Cohen
2011-09-01 17:22:18 -07:00
parent 4512637a8a
commit 22f823d340
5 changed files with 143 additions and 105 deletions

View File

@@ -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