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
2011-11-10 15:48:25 -08:00
parent c6f10b906f
commit 68e4c64a67
2 changed files with 72 additions and 23 deletions

View File

@@ -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();
}
}