History log of /packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
12b616c7d446d3274d16938d8bc37f5dc4bdc211 07-Feb-2017 Jon Miranda <jonmiranda@google.com> Update PreviewLayoutRule API to prepare for new folder animation.

Also created a new FeatureFlag to start building behind.

Bug: 35064148
Change-Id: I4a7d30bf1e1f49f1012eb963695d44d67096a5bc
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
d3cc05a3a8c573986d08ee293a4bb8b4534d06b2 21-Mar-2016 Adam Cohen <adamcohen@google.com> Account for disparity btw folder preview size and drawable size

-> When there is disparity between the cached icon size and the available space
in the preview, the folder preview could appear not as intended (either
overly crammed, or overly spacious)

issue 27701193

Change-Id: I9f97012ba569d1419b1e3f661cd26761b2a36285
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
efca0279eb927faebffc38c8382818df67fcd159 25-Feb-2016 Adam Cohen <adamcohen@google.com> Switch all folder preview rendering to be programmatic (ie. no assets)

-> Refactored the preview background rendering to be much more self-contained.
This cleans up a lot of code in the CellLayout, and keeps the logic in the
right place.
-> We switch to software rendering for performance and compatibility reasons.
-> Removed all assets.
-> FolderIcon accept animation includes animation of the clipped region.
-> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon
and the CellLayout. Unfortunately, CellLayout rendering is still required
to work around clipping issues (due to use of software layer). We also
need this to support folder creation feedback.

Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
4f8071b759fd54bc6d271ea450af00fe0730baea 14-Feb-2016 Adam Cohen <adamcohen@google.com> Cleaning up folder icon drawing

-> Tracking individual drawing parms for each item
-> This enables animation of the preview items as the preview changes

Change-Id: I1b8f650cb28dc09cfb921bbdc93f2a3db61178fd
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
261194387beebaa7927ec4e310274218b651494d 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage"

This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658.

Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
fc956e5a2a818c06ed3424e15b0aa20a3f604658 17-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage

Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java
119e8982ab6a0cf00e31e8744f27b72ba8bf7b20 05-Feb-2016 Adam Cohen <adamcohen@google.com> First pass at new FolderIcon visual treatment

-> Modeled as a set of items around a circle
-> Modulate the radius and icon size as number of items grow
-> Clip the icons by a circular clip aligned to the background drawable

Remaining issues
-> Probably want to move to a programmaticly drawn circle + shadow
-> Anti-aliasing of the clipped region will need more attention
-> Need to animate all items in the preview as it changes (this
wasn't required before)

Change-Id: I678ec605f6c8a34e9d7e4aec4e9583e36a9ef394
/packages/apps/Launcher3/src/com/android/launcher3/folder/ClippedFolderIconLayoutRule.java