Small changes to help AppsCustomize scrolling.

- Adding lookahead for prioritizing pages about to be visible
- Making fixed window for loaded adjacent pages
- Tweaking thread priorities on bg tasks

Change-Id: Ib2bccedb9cd7c4396ffaf8d7e1cb4820789960e5
This commit is contained in:
Winson Chung committed 2011-11-14 15:50:57 -08:00
1 parent c6f10b906f
commit 68e4c64a67
2 files changed
+72 -23

No files matched your search

@@ -156,12 +156,8 @@ public class PagedViewWidget extends LinearLayout implements Checkable {
if (preview != null) {
image.mAllowRequestLayout = false;
image.setImageDrawable(preview);
image.setAlpha(1f);
image.mAllowRequestLayout = true;
image.setAlpha(0f);
image.animate()
.alpha(1f)
.setDuration(sPreviewFadeInDuration + (index * sPreviewFadeInStaggerDuration))
.start();
}
}