summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Separating methods for updating the model to a sepatate class." into ↵TreeHugger Robot2017-02-161-1/+1
|\ | | | | | | ub-launcher3-master
| * Separating methods for updating the model to a sepatate class.Sunny Goyal2017-02-161-1/+1
| | | | | | | | | | | | | | Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
* | Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-161-6/+8
| | | | | | | | | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* | Remove unused View parameter from ofFloat method.Jon Miranda2017-02-061-2/+2
|/ | | | Change-Id: I5fabd5c78de52ba68b67e0b1bd7208f4d1f7cbea
* Reset initial animation values before completing reorder animation.Jon Miranda2017-01-041-0/+1
| | | | | | In some reorder cases, the icons would stop in a transient position. Change-Id: I9d358e74ab403989929dee87542d3dde78c2f229
* Merge "Fix widget reorder animations in multi-window mode." into ↵Jonathan Miranda2016-12-301-21/+41
|\ | | | | | | ub-launcher3-master
| * Fix widget reorder animations in multi-window mode.Jon Miranda2016-12-201-21/+41
| | | | | | | | | | | | | | | | | | | | The original animation assumed that the views are not translated and not scaled. In multi-window mode this assumption is no longer valid, because app widgets are scaled and translated to fit center within their cells. Bug: 32176631 Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38
* | Removing all compatibility code below LollipopSunny Goyal2016-12-161-3/+0
|/ | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-masterJonathan Miranda2016-12-151-3/+2
|\
| * Restore original scaleRectAboutCenter method.Jon Miranda2016-12-151-3/+2
| | | | | | | | Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
* | Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-151-17/+6
|/ | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* Smooth animation when dropping a widget in multi-window mode.Jon Miranda2016-12-141-5/+10
| | | | | | | | | | Factored in app widget scaling in methods related to estimating widget size and positions. ie. Dropping a widget that needs to be resized to fit in the workspace. Bug: 32176631 Change-Id: I106fe12041565a090047f146a07d4bc80a074b4a
* Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" ↵Sunny Goyal2016-12-121-39/+45
|\ | | | | | | into ub-launcher3-master
| * Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-39/+45
| | | | | | | | | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* | Scale widgets when dragging and dropping in multi-window mode.Jon Miranda2016-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change mimics the non-MW mode behavior when dragging and dropping widgets by taking the app widget scale into consideration. This ensures a consistant drag and drop experience between MW mode and non-MW mode. * Uses cell data (cell height/width, spanX/Y) to get the expected widget sizes. * Scales sizes when necessary. Bug: 32176631 Change-Id: Icdaf73ecd89a30e57fe7f405292d793f2d6a3ee8
* | Scale widgets in multi-window mode.Jon Miranda2016-11-231-2/+14
|/ | | | | | | | | To keep this CL small and focused, I'm going to create a separate CL that handles the scaling for the widget in drag and drop mode. Bug: 32176631 Change-Id: Id6557d070edb664aa1f4851de7abf494cf8a0677
* Removing widgetGap and heightGap from cellLayoutSunny Goyal2016-11-201-84/+30
| | | | | | This values are always set to 0 Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
* Hide workspace text in multi-window mode.Jon Miranda2016-11-151-1/+3
| | | | | | | | | * Vertically centers workspace icons. * New iconDisplay value so shortcut text is not overriden. Bug: 32176631 Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
* Removing some deprecated code around page layersSunny Goyal2016-10-261-10/+0
| | | | | | | | | 1) setChildrenDrawnWithCacheEnabled: deprecated 2) Removing custom logic based on isHardwareAccelerated. This check was not being used consistantly everywhere Bug: 29761236 Change-Id: Ic4a9c764f154497e376e37de2351fe04d1b48500
* Merge "Mark cells as unoccupied in onDragStart instead of startDrag." into ↵Tony Wickham2016-10-191-4/+0
|\ | | | | | | ub-launcher3-master
| * Mark cells as unoccupied in onDragStart instead of startDrag.Tony Wickham2016-10-181-4/+0
| | | | | | | | | | | | | | | | | | | | Also move cleanup (resetting variables to null) to onDragEnd instead of onDropCompleted. These changes are necessary because pre-drags (for apps with shortcuts) don't call onDragStart or onDropCompleted. Bug: 32246571 Change-Id: Ib18fac64555e9158b776f9c12afc2cb807b3c355
* | resolve merge conflicts of 2fd0208 to ub-launcher3-masterTony Wickham2016-10-121-1/+1
|\ \ | |/ |/| | | Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90
| * Use Launcher.getLauncher(Context) instead of type-casting.Tony2016-10-071-1/+1
| | | | | | | | | | Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
* | Code sanitizationHyunyoung Song2016-10-061-2/+2
|/ | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* Some optimizations in blur outline generatorSunny Goyal2016-09-021-0/+1
| | | | | | | | | 1) Using ALPHA_8 as the start and end bitmap. This removes one extra bitmap generation step 2) Using ByteBuffer on ALPHA_8 bitmap for clipAlpha. This allows us to use byteArray instead of intArray for representing pixels Change-Id: I1b654c439fd491b6b91180ddc562bb97fad857aa
* Removing wrong dead code around direction matchingSunny Goyal2016-08-181-6/+3
| | | | Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298
* Moving the state changes during drag-n-drop from startDrag to onDragStartSunny Goyal2016-08-151-3/+5
| | | | | | | This will allow drag controller to optinally defer drag, based on some threshold, by simply deferring the callback onDragStart Change-Id: I17c06a15e2092b9797c7e57529b12a53d2acae6e
* Fixing issue with shadow drawing over search bar.Winson2016-07-201-1/+2
| | | | | | - Adding notion of clip-against view for click shadow alignment. Bug: 30255227 Change-Id: Id5716a3484051a55690025d61f709e3d96cbe024
* Moving the QSB out of the cell layout to the Drag layerSunny Goyal2016-07-131-4/+0
| | | | | | | | This allows better edge matching for the QSB. The QSB position is kept synchronized with the page scroll and all-apps transition. But its not visible in spring loaded and overview mode Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
* Allowing the first screen to expand to the screen edgeSunny Goyal2016-06-061-13/+19
| | | | | This allows the QSB to extend all the way to the edge Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f
* Moving the QSB to the workspace grid.Sunny Goyal2016-05-271-1/+1
| | | | | | | | | | | | The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
* Refactoring out grid occupancy management in a separate classSunny Goyal2016-05-271-243/+126
| | | | Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2
* Simplifying view cluster by using a single int flag instead of 4 booleansSunny Goyal2016-05-111-65/+24
| | | | | | Also fixing the bug where dirty flgas were never being set to false Change-Id: Idbb16d07bef5a157502e1652bd1beb33ff39faaa
* Merge "Stop animating highlighted page border in spring-loaded mode." into ↵Tony Wickham2016-04-071-1/+2
|\ | | | | | | ub-launcher3-calgary
| * Stop animating highlighted page border in spring-loaded mode.Tony Wickham2016-04-041-1/+2
| | | | | | | | | | | | | | | | It looked weird, because the scrim cutout happens immediately and the border flickered into place shortly after. Bug: 27135377 Change-Id: Iff861db73c438c7dabccd6ed7c4ee38dbeb77ea1
* | Fix a couple polish bugs with new folder previewsAdam Cohen2016-04-011-5/+10
|/ | | | | | | | | | -> Don't reuse the same background object for the folder create preview since this can cause interruptions in the animations for previous creation previews. -> When drawing the background to preview creation, don't draw the stroke above the icon since the icon is not yet contained by the folder. Change-Id: Ib666dc2453df465b342c02f3bd109b553a769dcc
* Switch all folder preview rendering to be programmatic (ie. no assets)Adam Cohen2016-03-031-70/+47
| | | | | | | | | | | | | | | -> 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
* Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies ↵Sunny Goyal2016-02-231-1/+3
| | | | | | | | breakage" This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658. Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
* Reverting refactoring of Folder and FolderIcon to avoid dependencies breakageSunny Goyal2016-02-171-3/+1
| | | | Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
* Refactor FolderIcon to separate the preview effect into it's own classAdam Cohen2016-02-121-4/+5
| | | | | | | -> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
* Merge "Making some view properties exported. These will be visible in ↵Sunny Goyal2016-02-111-0/+6
|\ | | | | | | hierarchy viewer" into ub-launcher3-calgary
| * Making some view properties exported.Sunny Goyal2016-02-091-0/+6
| | | | | | | | | | | | These will be visible in hierarchy viewer Change-Id: I940724a7f61d67b8502d77be203a94875bc92668
* | Tweak spring-loaded workspace.Tony Wickham2016-02-081-2/+5
|/ | | | | | | | | | | | | - No page indicators in spring-loaded mode - Don’t move workspace up as high - Scale workspace at 90% instead of 80% on phones - Increase speed of workspace -> spring-loaded -> workspace - Widgets were being scaled down twice when dragging from widget picker - Don't scale up icons when dragging (scaling other stuff down is enough) - Make scrim less dark and panels more transparent - Thin white border around page instead of highlight when hovering Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
* Added config_springLoadWorkspace to enable/disable spring-loaded workspace.Tony Wickham2015-12-041-0/+8
| | | | | | | | - Added side hints back - Only scale down icons if spring-loaded - Only show App Info drop target if spring-loaded Change-Id: I4b0dddccbe0e80b7ceb6b7266fc527f757744148
* Merge "Add appropriate (tiny) offset to widget drops so they land ↵Tony Wickham2015-12-041-5/+12
|\ | | | | | | | | | | | | | | | | correctly." into ub-launcher3-burnaby-polish am: 8db5d7ca60 * commit '8db5d7ca60e79f007bfce7952c15c74d0ee44bc0': Add appropriate (tiny) offset to widget drops so they land correctly.
| * Add appropriate (tiny) offset to widget drops so they land correctly.Tony Wickham2015-12-031-5/+12
| | | | | | | | | | | | | | Also removed some unused parameters I found on the way. Bug: 25191623 Change-Id: Ib9a30db106467c114cc8b54a5b13ed3e88162d56
* | Merge "Skip to the end of the folder open animation in battery saver mode." ↵Tony Wickham2015-11-251-5/+1
|\| | | | | | | | | | | | | | | | | into ub-launcher3-burnaby-polish am: 6e83dc4031 * commit '6e83dc4031b78ac6e65102b2d936e9e769686fec': Skip to the end of the folder open animation in battery saver mode.
| * Skip to the end of the folder open animation in battery saver mode.Tony Wickham2015-11-121-5/+1
| | | | | | | | | | Bug: 25666809 Change-Id: I867d56a34fc5e0ad6aaabd8b6df47be05ec31966
* | Don\'t add offset to CellLayout\'s fullscreen children.Tony Wickham2015-11-101-3/+8
|\| | | | | | | | | | | | | am: 26b0142543 * commit '26b01425436277447fe24d01ad50d9e64f82109e': Don't add offset to CellLayout's fullscreen children.
| * Don't add offset to CellLayout's fullscreen children.Tony Wickham2015-11-101-3/+8
| | | | | | | | | | Bug: 25411084 Change-Id: Ifbcd0a53cf04a7fc29386f4f09aaf7f972e7354a