Skip to content
Commit 233218f9 authored by Lyn Han's avatar Lyn Han
Browse files

Animate bubble swap for update while collapsed

On reorder:
 1) Animate bubbles to new location
 2) Remove then add views at updated index

This animation has two parts running in parallel:

1) The updated bubble
 - animates up, slightly above final position
 - scales down for emphasis
 - shows badge and dot (future cl to animate in badge as separate view)

2) The rest of stack bubbles
 - animate down, slight below final positions
 - scale down for emphasis
 - hide badge and dot

Also: once the stack changes sides, update BadgedImageView#mOnLeft
- this fixes a bug where the badge briefly appears on the previous side
before quickly correcting to the updated side.


Bug: 170267512

Test: update bubble at bottom of collapsed stack
  => updated bubble swoops in above, becomes top bubble
  => previously top bubble swoops out below, settles into new
    index with rest of stack

Test: repeat above on right side and after expanding/collapsing stack
  => no regressions

Change-Id: I146528efb1013da694698deca0059a51da70efd9
parent 9810e057
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment