summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewCellLayout.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-06-13 11:32:14 -0700
committerWinson Chung <winsonc@google.com>2011-06-23 11:26:17 -0700
commitb44b52439d155f570db7d6d0b80fdd3350e35685 (patch)
treed07c95c4a43b7bfb1504b1a521e097f238f6eb77 /src/com/android/launcher2/PagedViewCellLayout.java
parent4b825dcd5f64a5ebb60271844fbc5257374422bc (diff)
downloadandroid_packages_apps_Trebuchet-b44b52439d155f570db7d6d0b80fdd3350e35685.tar.gz
android_packages_apps_Trebuchet-b44b52439d155f570db7d6d0b80fdd3350e35685.tar.bz2
android_packages_apps_Trebuchet-b44b52439d155f570db7d6d0b80fdd3350e35685.zip
Loading previews and holographic icons in background thread using AsyncTasks.
- Adding back animation between tabs Change-Id: I1a49bfca4f85f579e232861aa02d08fb25d0aafc
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayout.java')
-rw-r--r--src/com/android/launcher2/PagedViewCellLayout.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher2/PagedViewCellLayout.java
index d7f8784a5..9c37c019f 100644
--- a/src/com/android/launcher2/PagedViewCellLayout.java
+++ b/src/com/android/launcher2/PagedViewCellLayout.java
@@ -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;