Home | History | Annotate | Download | only in cardflip

Lines Matching refs:stack

35  * these cards can be flipped from one stack to another where each flip comes with
37 * or right to left depending on which stack the animating card currently belongs to.
39 * This application demonstrates an animation where a stack of cards can either be
41 * Rotate out: Down fling on stack of cards
42 * Rotate in: Up fling on stack of cards
43 * Full rotation: Tap on stack of cards
47 * state, no new cards can be rotated to or from that stack. These changes were made to
113 * Adds a new card to the specified stack. Also performs all the necessary layout setup
116 public void addNewCard(int stack) {
118 view.updateTranslation(mStackCards.get(stack).size());
125 params.leftMargin = (stack == RIGHT_STACK ? mCardWidth : 0);
127 mStackCards.get(stack).add(view);
140 int stack = getStack(motionEvent);
141 rotateCardsFullRotation(stack, CardView.Corner.BOTTOM_LEFT);
148 int stack = getStack(motionEvent);
149 ArrayList<CardView> cardStack = mStackCards.get(stack);
152 rotateCardView(cardStack.get(size - 1), stack, v, v2);
158 /** Returns the appropriate stack corresponding to the MotionEvent. */
165 * Uses the stack parameter, along with the velocity values of the fling event
167 * new stack that the card belongs to after the animation is also determined
170 public void rotateCardView(final CardView cardView, int stack, float velocityX,
180 switch (stack) {
238 * Retrieves an animator object for each card in the specified stack that either
242 public void rotateCards (final int stack, CardView.Corner corner,
246 ArrayList <CardView> cards = mStackCards.get(stack);
254 * the cards being rotated in the current stack will overlay the cards in the
255 * other stack. After the z-ordering of all the cards is updated, a layout must
264 mIsStackEnabled[stack] = !isRotatingOut;
271 * Retrieves an animator object for each card in the specified stack to complete a
274 public void rotateCardsFullRotation (int stack, CardView.Corner corner) {
277 ArrayList <CardView> cards = mStackCards.get(stack);