Exemple #1
0
 /** Requests this task stacks to start it's exit-recents animation. */
 public void startExitToHomeAnimation(ViewAnimation.TaskViewExitContext ctx) {
   // Stop any scrolling
   mStackScroller.stopScroller();
   mStackScroller.stopBoundScrollAnimation();
   // Animate all the task views out of view
   ctx.offscreenTranslationY =
       mLayoutAlgorithm.mViewRect.bottom
           - (mLayoutAlgorithm.mTaskRect.top - mLayoutAlgorithm.mViewRect.top);
   int childCount = getChildCount();
   for (int i = 0; i < childCount; i++) {
     DeckChildView tv = (DeckChildView) getChildAt(i);
     tv.startExitToHomeAnimation(ctx);
   }
 }