Loading previews and holographic icons in background thread using AsyncTasks.

- Adding back animation between tabs

Change-Id: I1a49bfca4f85f579e232861aa02d08fb25d0aafc
This commit is contained in:
Winson Chung
2011-06-13 11:32:14 -07:00
parent 4b825dcd5f
commit b44b52439d
10 changed files with 449 additions and 358 deletions

View File

@@ -104,8 +104,8 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
@Override
public void setAlpha(float alpha) {
mChildren.setAlpha(alpha);
mHolographicChildren.setAlpha(1.0f - alpha);
mChildren.setAlpha(HolographicOutlineHelper.viewAlphaInterpolator(alpha));
mHolographicChildren.setAlpha(HolographicOutlineHelper.highlightAlphaInterpolator(alpha));
}
void destroyHardwareLayers() {
@@ -138,15 +138,6 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
}
}
/** Syncs the holographic icon views to the child icon views */
public void reloadHolographicIcons(boolean createHolographicOutlines) {
if (createHolographicOutlines) {
mChildren.loadHolographicOutlines();
} else {
mChildren.clearHolographicOutlines();
}
}
public boolean addViewToCellLayout(View child, int index, int childId,
PagedViewCellLayout.LayoutParams params) {
final PagedViewCellLayout.LayoutParams lp = params;