Commit Graph

9 Commits

Author SHA1 Message Date
Jon Miranda
e4a252a16b Fade folder icon text when opening/closing.
Bug: 62065293
Bug: 35064148
Change-Id: I9c54c6d222216fa079c76a069f0ec8dd966d5bfb
2017-06-18 17:47:11 -07:00
Jon Miranda
d5fc4f309f Fix folder animation in RTL mode.
Bug: 37905379
Change-Id: I3d837753b8fd4bcd2e2c59f1aa7c62457f037de3
2017-05-09 08:02:50 -07:00
Jon Miranda
733abf02d1 Fix folder animations in spring loaded mode + polish.
* Changed interpolators.

Bug: 36653850
Bug: 35064148
Change-Id: I44a732be969582f718d7dc2f82a9f976331821cb
2017-03-29 16:42:02 -07:00
Jon Miranda
ce74d2a813 Smoother folder animation tweaks.
1. Start preview item animations later opening
2. Finish item animations sooner when closing
3. 1 & 2 allow the preview items to move as part of
   the Folder and allows for a smoother animation
4. Remove setCurrentPlayTime as it is O API.

Bug: 36522198
Bug: 35064148
Change-Id: If63d4d032078ff4e28b72a09e35da3a71f1d0e27
2017-03-23 14:04:55 -07:00
Jon Miranda
a7cddd2c96 Refactor Folder/FolderAnimationManager code.
* FolderAnimationManager is now lazy loaded.
* Extract methods to simplify code.

Bug: 35064148

Change-Id: I08a72ef19a1f21637f033059d5e228ef67135ccd
2017-03-16 12:12:46 -07:00
Jon Miranda
5f3f4d4280 Added new interpolators for preview items in large folders.
With larger folders, we want the preview items to reach their final positions faster
(when opening) and later (when closing) so that they appear aligned with the rest of
the folder items when they are both visible.

Bug: 35064148
Change-Id: I170ac2db36a3a20ebe5505711ea59e625050bc1b
2017-03-08 12:22:34 -08:00
Jon Miranda
ac3a64dbf4 Fix bug where FolderIcon is invisible when closing Folder with no animation.
When we open the Folder, we set the FolderIcon to View.INVISIBLE.
It is possible to close the Folder without animating it (ie. when apps
are being auto added / auto closed to Work Profile Folder), and so the
FolderIcon is never set to View.VISIBLE.

Bug: 35064148
Change-Id: I2fc5b7ecaceffde0a3f3875870897c18e6e8dadf
2017-03-07 09:41:20 -08:00
Jon Miranda
39f817e60a Fix bug where first page Folder text stays transparent.
This can happen where you drag a new item to a Folder that has
a full first page.

Bug: 36022385
Bug: 35064148
Change-Id: I092a79a13b7f779f09ee7a79488a16fe8bfbc2fd
2017-03-07 08:38:22 -08:00
Jon Miranda
4717011626 New folder animations.
Added FolderAnimationManager, which manages the opening
and closing animations.

All of the animations are done in the Folder.
ie. When the users taps on the FolderIcon, we immediately hide the
FolderIcon and show the Folder inits place before starting the animation.

Bug: 35064148
Change-Id: Icacdbbf78a25489f2eab4fd352f2c6ed71eb710b
2017-03-06 16:25:54 -08:00